helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Support for prometheusRule

Open reefland opened this issue 1 year ago • 3 comments

Details

I would like the common chart to be able to support prometheusRule, which goes nicely with the existing serviceMonitor.

Example:

# -- Enable and configure Prometheus Rules for the chart under this key.
prometheusRule:
  enabled: true
  labels: {}
  # -- Configure additionial rules for the chart under this key.
  rules:
    - alert: SonarrDown
      annotations:
      description: Sonarr service is down.
      summary: Sonarr is down.
      expr: |
        sonarr_system_status == 0
        for: 5m
        labels:
          severity: critical

Anything else you would like to add:

Additional Information:

reefland avatar Apr 13 '23 13:04 reefland

Hi! Thanks for the feature request! I will add this to the rewrite that I am working on. Unfortunately time has not been on my side so progress has been a bit slower than I'd hoped.

bjw-s avatar May 08 '23 09:05 bjw-s

I wonder if it's better to allow for this https://github.com/bjw-s/helm-charts/issues/314 ?

onedr0p avatar Apr 15 '24 14:04 onedr0p

Not sure if it helps but I had intended to PR this back and just never got around to it

template: https://github.com/MacroPower/helm-charts/commit/441a2cffe7b0d5984e1120a16f19cbf29cdfcd30

tests: https://github.com/MacroPower/helm-charts/commit/b5bc4565c6e51d77ba9a10a32284382826d1e8fe

usage: https://github.com/MacroPower/helm-charts/commit/262eb7ce0c227c8564f5371de7507fe51563b893

MacroPower avatar May 05 '24 17:05 MacroPower