0

I used to use prometheus-community/prometheus. Now I want to try prometheus-community/kube-prometheus-stack. I used to have this value override

serverFiles:
  alerting_rules.yml:
    groups:
      - name: node
        rules:
          - alert: InstanceDown
            expr: up == 0
            for: 5m
            labels:
              severity: critical
            annotations:
              summary: 'Instance {{ $labels.instance }} down'
              description: '{{ $labels.instance }} has been down for more than 5 minutes.'


extraScrapeConfigs: |
    - job_name: 'xxx'
      relabel_configs:
      - action: labelmap
        regex: __meta_kubernetes_pod_label_(.+)

How to convert this to kube-prometheus-stack format?

user3908406
  • 1,416
  • 1
  • 18
  • 32

0 Answers0