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

kube-state-metrics not showing in project configuration #5

Closed
moophlo opened this issue Sep 24, 2022 · 5 comments
Closed

kube-state-metrics not showing in project configuration #5

moophlo opened this issue Sep 24, 2022 · 5 comments

Comments

@moophlo
Copy link

moophlo commented Sep 24, 2022

I've configured coroot in a kubernetes cluster, but kube-state-metrics even if deployed is not showing in project configuration page

prometheus: ok
coroot-node-agent: 5 nodes found

NAME                 READY   UP-TO-DATE   AVAILABLE   AGE
kube-state-metrics   1/1     1            1           127m

I just followed this installation instructions:
https://coroot.com/docs/metric-exporters/kube-state-metrics/installation
Am I missing something?

@rlex
Copy link

rlex commented Sep 25, 2022

I'm gonna assume kube-state-metrics should be scraped by prometheus specified in coroot, so KSM should either have servicemonitor or annotations, depending on your prometheus setup

@apetruhin
Copy link
Member

@moophlo please check if there are any containers with id starting with /k8s/ in your prometheus:

container_resources_cpu_usage_seconds_total{container_id=~"/k8s/.*"}

@drepig
Copy link

drepig commented Nov 30, 2022

You can try another install way .. And manually set the job in promethetus

kubectl edit configmap -n istio-system prometheus

And add job.

    - job_name: 'kube-state-metrics'
      static_configs:
        - targets: ['kube-state-metrics.kube-system.svc.cluster.local:8080']

You can find kube-state-metrics in your prometheus.
image

@drepig
Copy link

drepig commented Nov 30, 2022

Add you can find your coroot is successfully deployed.

@def
Copy link
Member

def commented Feb 9, 2023

I don't see what else we can do here

@def def closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2023
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

5 participants