Files
libra/doc/admin_api/stats-drivers.rst
Endre Karlson 95168cb337 Document Stats scheduler better including AF and drivers
Change-Id: I83ab54d3b120404acf69539997a905eafcfd8fa5
2013-09-25 09:12:05 +02:00

67 lines
1.1 KiB
ReStructuredText

.. stats-drivers:
=============
Stats Drivers
=============
The Stats scheduler has support for multiple different drivers.
A typical driver has support for 3 different things:
* Sending a alert
* Sending a change
* Sending a delete
One can divide what a driver does into different areas:
* Alerting - Example Datadog
* Remediation - example: Database
* Stats - Example Datadog
Dummy
-----
A dummy driver which simply logs the above actions.
Database
--------
This is not a typical driver. It provides functionality such as triggering
rebuilds of failed devices, marking devices as deleted and changing node states in
the db.
Alert
*****
When receiving a alert it does the following:
# Marks the node with ERROR in the database
# Triggers a rebuild of the device (AutoFailover / AF)
Delete
******
Marks the device as DELETED in the Database
Change
******
Change the state of the device in the database
Datadog
-------
A plugin to provide functionality towards http://www.datadoghq.com/ for alerting.
Alert
*****
Send a failure alert up to Datadog
Delete
******
Send a message about a device being down / unreachable.