Hi,
I have a tricky problem to resolve when trying to get percentage of all
the messages that flow through our system that takes more than 1 second
over a span of 30 days.
I have a volumeCounter that gives the total_volume of messages so I believe
the total number of messges will be increase(volumeCounter[30d]).
I have another counter latencyCounter that adds latency of each message .
So to get latency per message I can use
increase(latencyCounter[30d])/increase(volumeCounter[30d].
Now in the timeseries generated there are some dataPoints where the value
is >1 second. I want to get the percentage of those from the overall number
of dataPoints.
So for example in the last 30 days I send 10000 messages out of which 1000
took more than 1 second so the result of the query at that point should
return 10 .
Is there a way of achieving this in prometheus ?
Thanks
Debashish
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/b2c3481f-aa62-4bdf-a5eb-1c2fb3f9d0fb%40googlegroups.com.