How can I plot the reciprocal of a value in Grafana?
How can I plot the
1/series in Grafana? The docs show
scale, which allows multiplying by a constant, and
divideSeries which allows you to divide two series by each other, but there doesn't seem to be a way to divide a constant by a series.
See also questions close to this topic
Grafana singlestat dashboard based on previous average number
i have a dashboard that shows a sum of requests/sec with from a windows performance monitor collected by prometheus. sum(Total_Query_Received_persec)
I would like to see any issues right away if those request/sec drop ( which will indicate an issue) So the singlestat panel could change color if the number of request/sec is 50% less than the same number collected 10 minutes ago (for example), change panel coloring to yellow and if the number is 80% less than 10 minutes ago change color to Red. I know that you can configure this based on thresholds, but not sure if there is a way to query that info in the metric.
Is this possible at all? Thanks
how to set time range in grafana dashboard from text panels
I have a scenario where I want to create a text panel in Grafana Dashboard, having some js and HTML. Now I want a way to set time range from that only.
I am aware that to get time range we can use code like below
var timeRange = angular.element('grafana-app').injector().get('timeSrv').timeRange();
But I want to set time.
Grafana panel - graph units mismatch
Here the graph 1 is from a parent where the memory limit is 110000MB, I converted to GB and it is seen as 107.42GB
Graph 2 and 3 are for the same child with memory limit pointing to parent's memory limit. But the used memory is different for parent and child.
The memory limit in graph 2 should be 107 GB as that of graph 1, but in grafana it displays as MB. On sending it in MB range ie 110000 MB, it displays 110GB as in graph 3. I verified my calculations and they are all right, would this be a bug in Grafana?
Need an equivalent prometheus query for graphite query in grafana
I am trying to convert a graphite-grafana query to prometheus-grafana query. Graphite query looks like this --> alias(sumSeries(exclude(exclude(.counters.xxxxxxx.xxx_connector.receive.from_xxx.xxx..count, '700'), '710')), 'Received from XXX')
And in prometheus I have a metric "xxxxxxx_xxx_connector_receive_from_xxx" which has to be used in the query.
I have tried using rate() and increase() for 1 minute window but I am unable to see the exact results. Is there any other way to write the query?
Counting the number of consecutive points where each series in a set are all defined
If I had two (or more...) "sparse" series (i.e. not necessarily defined at every instant) and a particular time range, what trick could I use to find the largest number of defined data points within a "synchronized interval" (i.e. where all of the series are either defined or undefined)?
e.g. for the following three series:
t: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ---------------------------------------------------- s0: 1 - - 1 6 - 2 - 2 8 - 9 0 - - - s1: 3 - - 4 0 - 3 2 3 3 - 1 1 - - 7 s2: 1 - - 5 9 - 2 4 - 3 - 2 4 4 - - ^-----------------^ ^--------^ count: 1........2..3.... 1.....2.
we would find a maximum of 4 data points that were defined within a "synchronized interval."