Skip to content

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

Open
@smaitra53

Description

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    • Status

      Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions