matjaz99 / alertmonitor

Display Prometheus alerts
Apache License 2.0
6 stars 1 forks source link

Wrong status of targets with probe exporters #17

Open matjaz99 opened 2 years ago

matjaz99 commented 2 years ago

Exporters which use probing to collect metrics (such as blackbox-exporter or snmp-exporter) always return up metric with value true as long as exporter itself is running. The target API of Prometheus also returns health: up for such instances, regardless if the instance being probed is not reachable. In such cases a metric probe_success should be considered to determine the up status of target.
Alertmonitor will incorrectly consider such targets as Up, meaning that at least one exporter on this target/instance is reachable (eg. blackbox-exporter). But it is not.