helm-charts
helm-charts copied to clipboard
Support for prometheusRule
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:
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.
I wonder if it's better to allow for this https://github.com/bjw-s/helm-charts/issues/314 ?
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