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

Scaphandre does not see other namespaces, only the one its deployed in #392

Open
smaitra53 opened this issue Sep 26, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@smaitra53
Copy link

Bug description

Deployed on rke cluster, the scaphandre pod is deployed using helm as described and the prometheus and grafana pods are deployed using kube-prometheus-stack. All three are deployed in monitoring namespace. When I go to grafana dashboard, I can only see monitoring namespace. Other namespaces are missing.

To Reproduce

  1. Install prometheus and grafana on the cluster:
    helm install kube-prometheus-stack prometheus-community/kube-prometheus-stack --namespace monitoring

  2. In order for scaphandre to "see" the prometheus, add release: kube-prometheus-stack in helm/scaphandre/templates/servicemonitor.yaml

otherwise, scaph metrics are not visible on grafana

  1. deploy scaphandre
    helm install scaphandre helm/scaphandre --set serviceMonitor.enabled=true --set serviceMonitor.namespace=xyz --set serviceMonitor.interval=30s --namespace monitoring

  2. go to grafana, select scaph_process_power_consumption_microwatts{namespace="xyz"}

  3. No data

Expected behavior

expected scaph process metrics for pods/containers in the "xyz" namespace

Environment

Linux 5.15.0-119-generic #129~20.04.1-Ubuntu SMP Wed Aug 7 13:07:13 UTC 2024 x86_64 x86_64 x86_64
GNU/Linux

@smaitra53 smaitra53 added the bug Something isn't working label Sep 26, 2024
@bpetit bpetit added this to General Oct 17, 2024
@bpetit bpetit moved this to Triage in General Oct 17, 2024
@bpetit
Copy link
Contributor

bpetit commented Nov 2, 2024

Hi @smaitra53

So do you suggest release: kube-prometheus-stack to the service monitor ?

@rossf7 @mmadoo and other k8s advanced users, do you have any suggestion regarding this ? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triage
Development

No branches or pull requests

2 participants