Questions tagged [promql]
1 questions
0
votes
0 answers
PromQL range vector, but only if there's data from the start of the range? (for a new metric)
Prometheus can return all values for a time (e.g. api_counter[1h] for all values in the last hour). When the metric is new, there will not be 1 hour of data points. Is it possible to write a promql query which only returns data if there is data from…
![](../../users/profiles/8950.webp)
Amandasaurus
- 30,211
- 62
- 184
- 246