Skip to content

Prometheus service endpoint name can't resolve by coredns service #24

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

Open
sdmoradi opened this issue Aug 2, 2022 · 1 comment
Open

Comments

@sdmoradi
Copy link

sdmoradi commented Aug 2, 2022

Hi Bibinwilson,
I deploy kubernetes-prometheus repository on my local cluster then below error occurred in Prometheus-dashboard.

Prometheus UI error in targets:

Get "http://kube-state-metrics.kube-system.svc.cluster.local:8080/metrics": dial tcp: lookup kube-state-metrics.kube-system.svc.cluster.local on 10.96.0.10:53: no such host

@sdmoradi
Copy link
Author

sdmoradi commented Aug 2, 2022

I solved this issue by modifying endpoint name from "kube-state-metrics.kube-system.svc.cluster.local" to "prometheus-service" in config-map.yaml file.

105       - job_name: 'kube-state-metrics'
106         static_configs:
107           - targets: ['prometheus-service:8080']

This issue resolved in this pull request: #25

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

1 participant