Aggregating over multiple series and time in Prometheus PromQL
I have some data I am querying from Prometheus, a range vector, that I am currently getting via sum by (label1, label2) (series_name)
, and as expected, it gives me the most recent results of the sums by the labels. I am trying to change it to get the results over a timeframe (let’s say 1 minute with a resolution of 5 seconds).
Prometheus promQL single label matcher empty value
I was going through promQL querying basics and noticed a statement which does not make sense.
How to filter a time series after applying aggregation in PromQL?
I have a promQL expression like this- sum(metric_1) by (label_1)
. Now, I want to filter out the output of the expression using another label label_2
. Something like this- (sum(metric_1) by (label_1)){label_2="some_value"}
. But, this is not working and is giving a parse error. How can I achieve this?
Prometheus group by wildcard substring of label
I have a set of applications which are being monitored by Prometheus. Below are sample time series of the metrics:
Why is PromQL so wrong about basic math?
I am trying to write an alert based on runaway thread growth and while playing around with PromQL. And the numbers don’t add up at all.
How to add PrometheusRule so we can get only one data in 10 min in TSDB?
Lets assume Prometheus instance is scrapping data each 15 sec
How to use only the latest value when joining metrics in Prometheus?
I’m encountering a small issue with Prometheus. I’m relatively new to it, so I’m not yet very experienced.
How can I create a query in PromQL so that it displays all the metrics that contain the xxx label?
How can I create a query in PromQL so that it displays all the metrics that contain the xxx label? I can’t find which metric the label belongs to.