TABLE OF CONTENTS


Change/increase Prometheus scrape timeout

spec:
  features:
    monitoring:
      values:
        prometheus:
          config:
            scrapeTimeout: 60s

Customize Alert rules

spec:
  features:
    monitoring:
      values:
        alertmanager:
          alerts:
          - alert: PrometheusTargetDown
             expr: "100 * (up{job=~"cluster-.*"} == 0) / (up{job=~"cluster-.*"}) > 0"
             for: 10m
             labels:
               kublr_space: demo
               kublr_cluster: kcp-demo
               severity: warning
             annotations:
               summary: 'Prometheus targets down!'
               description: '{{ "{{" }} printf "%0.00f" $value {{ "}}" }}% of the Prometheus job are down!'

Customize OIDC Roles name for access

spec:
  features:
    monitoring:
      values:
        grafana[prometheus/alertmanager]:
          authentication:
            oidc:
              role: "admin"