Skip to content
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

No kubernetes pod metrics #7

Open
ZhenyangZhao opened this issue Jul 17, 2017 · 2 comments
Open

No kubernetes pod metrics #7

ZhenyangZhao opened this issue Jul 17, 2017 · 2 comments

Comments

@ZhenyangZhao
Copy link

ZhenyangZhao commented Jul 17, 2017

Hello @kayrus :
I found a problem on my environment. I use this repo to deploy prometheus. All is corrected but kubernetes-pod target. In prometheus-configmap.yaml kubernetes-pod target has been set.But no 'container_xxx' metrics has been shown on Prometheus. No kubernetes-pod target shown on prometheus dashboard targets page. Can u help me ?

My Environment

Kubernetes 1.7
Use `kayrus/prometheus-kubernetes` master branch

Problem Picture

image

@like-inspur
Copy link

I also meeth this problem on kubernetes 1.8,with prometheus configmap add cadvisor job like this:
- job_name: 'kubernetes-cadvisor'
metrics_path: /metrics/cadvisor
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
kubernetes_sd_configs:
- role: node
relabel_configs:
- source_labels: [address]
regex: '(.*):10250'
replacement: '${1}:10255'
target_label: address

My Environment:
kubernetes v1.8.2+coreos.0 with RBAC
prometheus v1.7.1
docker 1.13.1

Problem Picture:
3bcsj ml l wkswk w8 p

y cxt2 cmjg _s ntymq5

@zopar
Copy link

zopar commented Oct 15, 2018

Try to replace kubernetes_pod_name with pod_name in your queries and it should works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants