[bitnami/mariadb] add support for PrometheusRules (#8505)

This commit is contained in:
ioachim-hub
2021-12-29 12:16:26 +02:00
committed by GitHub
parent a4dbbbae79
commit 6b538f5263
4 changed files with 90 additions and 38 deletions

View File

@@ -1129,6 +1129,30 @@ metrics:
## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
##
labels: {}
## Prometheus Operator PrometheusRule configuration
##
prometheusRule:
## @param metrics.prometheusRule.enabled if `true`, creates a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
##
enabled: false
## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
##
namespace: ""
## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
##
additionalLabels: {}
## @param metrics.prometheusRule.rules Prometheus Rule definitions
## - alert: MariaDB-Down
## expr: absent(up{job="mariadb"} == 1)
## for: 5m
## labels:
## severity: warning
## service: mariadb
## annotations:
## message: 'MariaDB instance {{ $labels.instance }} is down'
## summary: MariaDB instance is down
##
rules: []
## @section NetworkPolicy parameters