In Prometheus we can use the function absent_over_time() or present_over_time() to detect missing series or gaps in metrics, which is very useful for alerting when a source stops reporting.
Does InfluxDB (v1.x) have any equivalent function or workaround to achieve the same result? I want to detect missing queries/metrics in Grafana dashboards or alerts when data is not being written.
I don’t see the direct 1-1 function but you can get to it by grouping into fixed time buckets and counting points; a count of 0 indicates missing data. Use fill() at the end of GROUP BY to control how empty buckets appear (null, previous, linear, numeric, none) so Grafana can alert on them. See more: InfluxQL functions | InfluxDB OSS v1 Documentation