Skip to content

How to configure Prometheus exporter in Kubernetes? #31415

Answered by g0loob
g0loob asked this question in Q&A
Discussion options

You must be logged in to vote

The problem was that I was unaware that Prometheus CRD has a ServiceMonitor selector. By default, it only looked for ServiceMonitors which had release: prometheus label. After changing the configuration of ServiceMonitor to:

serviceMonitor:
  enabled: true

  extraLabels:
    release: prometheus

I was able to see the metrics in the UI.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by g0loob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant