sensu / sensu-influxdb-handler

Sensu Go InfluxDB Metrics Handler
https://sensu.io
MIT License
14 stars 16 forks source link

Feature suggestion: Record event status to InfluxDB #27

Closed cwjohnston closed 4 years ago

cwjohnston commented 5 years ago

Expected behavior

As an operator I can configure an instance of this handler to record event statuses in InfluxDB.

Context

Sensu records an intentionally limited history of statuses for each event (entity/check pair). As an operator I would like to record these statuses in a long-term data store so I can plot statuses against other measurements.

jspaleta commented 4 years ago

just saw another request for this sort of pattern from a user in slack.

mylesw42 commented 4 years ago

This is very useful. What would be the desired workflow for this feature?

Add a new flag? Maybe "-check_result_only", and it would then only process the event.check.status field? The associated handler would not need to worry about the "has_metrics" filter.

My own personal preference is to setup the check_name as the measurement, with "entity", and "namespace" as tags, and "status" and possibly "output" as fields.

nikkictl commented 4 years ago

Closed by https://github.com/sensu/sensu-influxdb-handler/pull/34.