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

How to add "Service Monitor"? #63

Closed
keivanipchihagh opened this issue Aug 18, 2024 · 2 comments
Closed

How to add "Service Monitor"? #63

keivanipchihagh opened this issue Aug 18, 2024 · 2 comments

Comments

@keivanipchihagh
Copy link

I want to add Service Monitor to the helm chart to make it accessible to Prometheus, but don't see how I can make it work.

@kqzh
Copy link
Contributor

kqzh commented Aug 29, 2024

hi @keivanipchihagh , you can refer to this yaml to add a serviceMonitor

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    app.kubernetes.io/component: exporter
  name: np-prometheus-nebula-stats-exporter
  namespace: prometheus-system
spec:
  endpoints:
  - bearerTokenSecret:
      key: ""
    interval: 15s
  namespaceSelector:
    any: true
  selector:
    matchLabels:
      app.kubernetes.io/component: exporter

@keivanipchihagh
Copy link
Author

Much appreciated @kqzh.
I ended up writing something similar and made it work.

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

2 participants