Commit 3624739d by Christian Pieper

Update README.rst

parent e7c81db6
......@@ -32,6 +32,56 @@ For the setup M2DC provides Ansible scripts, available in a separate repository
the appropriate playbook, which installs the Ceilometer pollsters on a running
OpenStack environment.
Integration with Gnocchi
-----
Gnocchi is a very performant time series database. In order to automatically
process values from the added M2DC pollsters (for sensors of the RECS_Master)
is is required to set some parameters
**archive-policy**
For our case, we need a one-minute-resolution over 3 years of sensor values. For that purpose
we created a an appropriate archive policy. But it is not required to change
code of Gnocchi, anymore.
.. code:: bash
$ gnocchi archive-policy create m2dc-3y-1min -d granularity:1m,points:1576800 -m count -m min -m max -m mean
+---------------------+-----------------------------------------------------------------------+
| Field | Value |
+---------------------+-----------------------------------------------------------------------+
| aggregation_methods | count, max, mean, min |
| back_window | 0 |
| definition | - points: 1576800, granularity: 0:01:00, timespan: 1095 days, 0:00:00 |
| name | m2dc-3y-1min |
+---------------------+-----------------------------------------------------------------------+
**set archive-policy-rules defaults**
Using the archive-policy-rules, we define that new pollsters having the recs.* prefix
are processed using the defined archive-policy above.
.. code:: bash
$ gnocchi archive-policy-rule create -a m2dc-3y-1min -m recs.* m2dc
+---------------------+--------------+
| Field | Value |
+---------------------+--------------+
| archive_policy_name | m2dc-3y-1min |
| metric_pattern | recs.* |
| name | m2dc |
+---------------------+--------------+
$ gnocchi archive-policy-rule list
+---------+---------------------+----------------+
| name | archive_policy_name | metric_pattern |
+---------+---------------------+----------------+
| m2dc | m2dc-3y-1min | recs.* |
| default | low | * |
+---------+---------------------+----------------+
=====
Acknowledgement
=====
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment