You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
Hello,
I want to run a script periodically which will give me the cpu usage. I am using the following query on influxDb which is a sink for my heapster:
select derivative(value) from "cpu/usage_ns_cumulative" where pod_namespace='scaledemo' AND labels=~/name:locust,role:worker/ AND time > now() - 300s group by pod_namespace, labels order desc"
I have seen this issue with InfluxDB v0.8.x. One option is to setup continuous queries in InfluxDB to sample the cpu_usage periodically into a new series, and avoid derivatives(..).
Another option is to try InfluxDB v0.9. The configs on Heapster HEAD support InfluxDB v0.9. I have not seen issues with derivative with this version.
cc @piosz who is working on adding instantaneous cpu metrics.
Hello,
I want to run a script periodically which will give me the cpu usage. I am using the following query on influxDb which is a sink for my heapster:
select derivative(value) from "cpu/usage_ns_cumulative" where pod_namespace='scaledemo' AND labels=~/name:locust,role:worker/ AND time > now() - 300s group by pod_namespace, labels order desc"
Result of Query:
[
{
"columns": [
"time",
"derivative",
"pod_namespace",
"labels"
],
"name": "cpu/usage_ns_cumulative",
"points": [
[
0,
-4413325.490494297,
"scaledemo",
"name:locust,role:worker"
]
]
}
]
This gives me sometimes negative values as seen above.
Kindly suggest.
Regards,
Shilpa
The text was updated successfully, but these errors were encountered: