Create prometheus alert for absent metrics

Prerequisites prometheus package installed prometheus-alertmanager package installed node-exporter deployed on target device: this alert is using the node-exporter in order to use node_filesystem_avail_bytes metrics. Create an Alerting Rule in Prometheus PromQL expression to detect missing mountpoints Make sure to test your query on /explore tab. You can use metric node_filesystem_avail_bytes to detect specific mountpoint (e.g. /mnt/data) on specific instance (e.g vm-name:9100): node_filesystem_avail_bytes{instance="vm-name:9100",mountpoint="/mnt/data"} ⚠ Any missing mountpoints for an instance might be due to default regexp value of the argument --collector....

January 3, 2025 · 2 min