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 upio_kubernetes_pod_name Missing in new cluster #2232
Comments
This comment has been minimized.
This comment has been minimized.
|
The label |
This comment has been minimized.
This comment has been minimized.
|
That worked! Do you know if there exists a document on what was renamed in the new version(s)? |
This comment has been minimized.
This comment has been minimized.
|
Also, I'm trying to get metrics for
Is there something I can add to my scrape job to associate that data, or perhaps a way to join via query? |
This comment has been minimized.
This comment has been minimized.
|
IIRC metrics from cadvisor we're namespaced by the kubelet and that namespacing has been removed, unfortunately there is no explicit documentation of this breaking change in any of the kubernetes/cadvisor changelogs. The |
This comment has been minimized.
This comment has been minimized.
|
Aside from that I recommend having a look at the new sample kubernetes config, as there was a small fix recently. And you don't need a separate job configuration for the node-exporter, you can skip that section and just add a service in kubernetes that selects them, then the endpoints discovery will automatically pick it up. |
This comment has been minimized.
This comment has been minimized.
|
Would I still need to run the node-exporter daemon set? |
This comment has been minimized.
This comment has been minimized.
|
Yes, the node-exporter as a |
This comment has been minimized.
This comment has been minimized.
|
Is there any way to scrape |
This comment has been minimized.
This comment has been minimized.
|
As there are essentially unlimited paths of pod creation we choose to only allow |
This comment has been minimized.
This comment has been minimized.
|
This helps my basic understanding. I think there are some very valuable metrics not being tracked in the case of deployments. For instance, I may be able to see how many pods are currently running, but what I might not see is that my deployment is trying to schedule more pods.
If i'm simply looking at a graph of pods that exist, I may not notice anything is off, but having access to a metric for desired pods, current pods, up to date pods and available pods gives me a much better understanding of what my application is trying to do. If I have an application that has 200 desired pods, but only 100 available, that might mean there is an issue scheduling pods (maybe host machine is out of cpu/memory) and I can take action on metrics like that. Not sure if the service setup you mention gives way to such metrics. |
This comment has been minimized.
This comment has been minimized.
|
You can get all the information you are looking for regarding deployments using kube-state-metrics. |
This comment has been minimized.
This comment has been minimized.
|
We installed the kube-state-metrics deployment and service, but we're not seeing the metrics come back from prometheus. Here's the configmap section for the service-endpoints:
Does that seem proper? |
This comment has been minimized.
This comment has been minimized.
|
Sorry, we found the issue was with |
ericuldall
closed this
Dec 6, 2016
pipo02mix
referenced this issue
Mar 21, 2019
Open
all containers are names "io_kubernetes_container_name" #115
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. |
ericuldall commentedNov 28, 2016
What did you do?
Installed prometheus on a new GKE Cluster
What did you expect to see?
Same behavior as the first cluster I installed it on
What did you see instead? Under which circumstances?
The io_kubernetes_pod_name label is nowhere to be found
Environment
New env is GKE 1.4
Old env is GKE 1.3
System information:
Runs from prom/prometheus Docker image
Prometheus version:
GKE 1.4 is running prom 1.4
GKE 1.3 is running prom 1.0.1
Prometheus configuration file:
The query is not returning io_kubernetes_container_name on the new 1.4 cluster. Any idea why?