sensu / haproxy-check

A Sensu check and metrics collector for HAProxy
MIT License
0 stars 2 forks source link

Initial Implementation #1

Closed thoward closed 2 years ago

thoward commented 2 years ago

Overview

This Sensu plugin will perform on-demand monitoring of HAProxy instances. It will collect metrics in Prometheus format, emitting them on STDOUT. Additionally, it may perform analysis to determine the health of those instances, the results of which will be presented as one or more exit status levels.

References

Prior Art:

Misc Docs:

Configuration

Required

Optional Backends

Optional Basic Auth Credentials (will be used if specified)

Optional TLS Config (will be used if tls=custom parameter specified in server uri)

NOTE: Datadog has an extensive range of options, which we might want to analyze for beyond-MVP support.

Configuration Logic & Validation

The provided URL must be validated. If supplied, the TLS options must be validated.

Metrics

All metrics should be output in Prometheus format.

MVP to light up the Sumo Logic Dashboards:

Metrics:

Tags:

NOTE: These are the tags/metrics that are seen within the Sumo Logic dashboards, which seem to be based on the Telegraf output. Probably the best place to start looking for details.

For parity w/ Datadog, here's the list of metrics they produce (also available in CSV format).

This metric name map might be useful: https://github.com/DataDog/integrations-core/blob/master/haproxy/datadog_checks/haproxy/metrics.py

Out of scope (for MVP):

echlebek commented 2 years ago

Done and dusted.