inovex / mqtt_blackbox_exporter

Prometheus Exporter for MQTT monitoring
Apache License 2.0
77 stars 24 forks source link

duration metric is only available as histogram over the whole runtime of the exporter #17

Closed frittentheke closed 6 years ago

frittentheke commented 7 years ago

Currently the probeDuration metric is only available as NewHistogramVec which is never reset during the runtime of the exporter and with no sliding window. This results in strange values if there was even a brief period of long duration and makes the metric useless for triggering alerts.

Suggestions:

hikhvar commented 7 years ago

Using only the last N values etc does not help since each histogram bucket is and should be a counter. You can use the following PromQL Feature to calculate the probe duration in the last 5m: https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations

hikhvar commented 6 years ago

Can we close this issue?

frittentheke commented 6 years ago

I suppose.

arnisoph commented 6 years ago

Thanks!