Skip to content

Rancher monitoring - Enable external metrics? #6183

Closed Answered by josh-at-straker
josh-at-straker asked this question in Q&A
Discussion options

You must be logged in to vote

I've solved this, turns out I needed to spend some more time reading the prometheus adapter helm chart.

Only when a external metric is added this way (below), is the external metrics API setup for the cluster. No other method appears to work.

TLDR; for setting up a new external metric:

prometheus-adapter:
  enabled: true
  prometheus:
    port: 9090
    url: http://rancher-monitoring-prometheus.cattle-monitoring-system.svc
  psp:
    create: true
 ### Add the below
  rules:
    default: true
    external:
      - seriesQuery: '{__name__="redis_stream_group_messages_pending", job="straker-uat-redis-stream-exporter", group="verify_consumer",  stream="verify:job:evaluate:file:fa"}'
        r…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by josh-at-straker
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