-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate #1056
Comments
It looks like you have a |
i did, return no data |
kube_pod_info{node!="",cluster!=""} return many |
container_cpu_usage_seconds_total{container!="POD",image!="",job="kubelet",metrics_path="/metrics/cadvisor", cluster!=""} |
It seems that your cluster is not configured correctly and you have |
thanks ,i got it ,yes ,i did cluster label to kube-state-metrics, i did the same to kubelet, but it not works , |
I have the same issue where CPU usage is not working anymore on grafana |
Hi, I'm not sure but I think this issue was fixed in : It seems that the record node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate was replaced by node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate |
I am also facing same issue sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster="$cluster", namespace="$namespace"}) / sum(kube_pod_container_resource_requests{job="kube-state-metrics", cluster="$cluster", namespace="$namespace", resource="cpu"}) Does not return data |
+1 the same thing
|
When querying |
Hi there, Prometheus stack chart : kube-prometheus-stack-43.1.1, App Version: 0.61.1 To me, it was related to this issue : k3s-io/k3s#5782 Workaround : I removed the # Extract from file : prometheus-stack-kube-prom-k8s.rules.yaml
- name: k8s.rules
rules:
- expr: >-
sum by (cluster, namespace, pod, container) (
irate(container_cpu_usage_seconds_total{job="kubelet", metrics_path="/metrics/cadvisor", image!=""}[5m])
) * on (cluster, namespace, pod) group_left(node) topk by (cluster,
namespace, pod) (
1, max by(cluster, namespace, pod, node) (kube_pod_info{node!=""})
)
record: >-
node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate This file has to be modified as well : |
This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions. |
Hi @fguiet I've already removed the label However, i still have issues for memory dashboard which basically use metric Example: From prometheus, there is no cluster, container or image labels for this metric. Did you face this issue as well and if yes, how did you fix it? Similar issue with dashboards using fs metrics (and probably a lot of other metrics from cadvisor): Thanks |
FWIW this has been addressed in later versions of Rancher Server 2.6.11 along upgrading k8s to |
Same for me, did you found it finally? Using the last helm chart of prometheus stack |
I'm hitting this as well. any ideas? |
same issue here |
if you have included this in the values of prometheus : before: kubelet: After (This works): for me I have disabled http in service-monitor for kubelt then I research it and foud that kublelt hhtp shoulbe enabled that is http:true |
I'm facing this same issue, reported here. Removed container!="" and image!="" from prometheus-stack-kube-prom-k8s.rules.yaml worked. |
Thanks to @gustavofbreunig. Removing all This is my fork if any one wants to check it. |
Related issue: google/cadvisor#3336 |
It was a rancher issue, corrected on proceed to close the issue |
Also related details if you are on Docker-Desktop: docker/for-mac#6969 Edit: ....or potentially just using the docker driver for minikube or Docker Desktop or really anything that involves Docker. |
This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions. |
This issue was closed because it has not had any activity in the last 120 days. Please reopen if you feel this is still valid. |
this record rule is not work in promethues ,if i change on(cluster, namespace, pod) is on( namespace, pod),it works
Prometheus Operator version:
release-0.6
Kubernetes version information:
kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.14", GitCommit:"89182bdd065fbcaffefec691908a739d161efc03", GitTreeState:"clean", BuildDate:"2020-12-18T12:11:25Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.14", GitCommit:"89182bdd065fbcaffefec691908a739d161efc03", GitTreeState:"clean", BuildDate:"2020-12-18T12:02:35Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
The text was updated successfully, but these errors were encountered: