process_cpu_seconds_total increasing faster than 1/s
See original GitHub issueI recently upgraded my services to Node 6 in order to start collecting process_cpu_seconds_total. I’m now graphing the results and seeing strange results. The stats seem to be claiming that Node is using 125k seconds per second, according to this Prometheus query:
irate(process_cpu_seconds_total{job="bt-actions"}[1m]) * 60
Screenshot of Grafana plot attached. Any idea what’s up? Am I querying this wrong or using the wrong units? Do you have reports from people successfully using the process_cpu_seconds_total stat?
Thanks, Jacob
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Prometheus - Convert cpu_user_seconds to CPU Usage
The container_cpu_usage_seconds_total is a counter, e.g. it increases over time. This isn't very informative for determining CPU usage at a particular time.
Read more >Exploring Prometheus Go client metrics - Povilas Versockas
process_cpu_seconds_total equals to sum of utime and stime and divide by USER_HZ. This makes sense, as dividing number of scheduler ticks by Hz( ......
Read more >How the Prometheus rate() function works | MetricFire Blog
As the name suggests, it lets you calculate the per-second average rate of how a value is increasing over a period of time....
Read more >Keeping Prometheus in Shape - Omer Levi Hevroni
An alternative is to investigate what makes scrape duration to increase. One possible reason is a resource limit – for example, not enough...
Read more >Metric and label naming - Prometheus.io
For metrics specific to an application, the prefix is usually the application name itself. ... process_cpu_seconds_total (exported by many client libraries) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This resolves our issue (using
irate
).Closing this issue then 😃