Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUsing irate to see connection rate (req/sec) is not showing what is expected #2268
Comments
This comment has been minimized.
This comment has been minimized.
|
Can you share the raw data points for a 5m period in which irate is producing the wrong answer? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
That data looks like a mix of data from 2-3 exporters. Are you sure each instance represents a single haproxy? |
This comment has been minimized.
This comment has been minimized.
|
so the setup is , we have 3 haproxy containers (pods), that have same haproxy config, running under a service, There is only only one exporter scraping from the the haproxy service in openshift origin as follows
where the above ip is the haproxy service-ip that has three haproxy pods underneath. |
This comment has been minimized.
This comment has been minimized.
|
That won't work, and will have oddness as you've discovered. You need a haproxy exporter per haproxy, and you need to scrape all 3 independently.. |
brian-brazil
added
the
kind/question
label
Dec 9, 2016
This comment has been minimized.
This comment has been minimized.
|
Thanks a lot , |
brian-brazil
closed this
Dec 9, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |



sudhirpandey commentedDec 9, 2016
What did you do?
Collected metrics from front end of haproxy using haproxy exporter
What did you expect to see?
We would like to see Connectation rate , ie avg req/sec
What did you see instead? Under which circumstances?
The graphs shows connection counter total, and resets to null value in given interval
Environment
System information:
Linux 3.10.0-327.4.5.el7.x86_64 x86_64Prometheus version:
Trying to see req/sec, the interval is 5m
with irate
without irate

What i was expecting was irate would take two data points between 5min and get the difference and which then gets divided by number of seconds in 5min interval..
for exampe at timestamp t1, we have 65000request_total and at t2=t1+5min , 75000 request
i was under the impression that the req /s wold yield a data point with
(75000-65000)/300 = 33.33 req/sec.
but the numbers i am getting in the graps are way too high.. Could you please explain how is it being calculated.
A 24hr graph cycle for the request rate that i am trying to graph looks like this

Which does not make sense for me at all. By the way i have 24hr retention time. Is there any docs etcs i am missing info about.