[bitnami/tomcat] Add prometheusRules support (#8401)

* [bitnami/tomcat] Fix issue on network policy

* [bitnami/tomcat] bump tomcat version

* [bitnami/tomcat] Update np to use common capabilities function

* [bitnami/tomcat] Networkpolicy

* [bitnami/cassandra,etcd,influxdb,metallb,mysql,postgresql,postgresql-ha,redis] Align networkpolicy to used common function common.capabilities.networkPolicy.apiVersion

* [bitnami/tomcat] Add prometheusRules support

* [bitnami/tomcat]

fix trailing-spaces

* Update bitnami/tomcat/templates/prometheusrule.yaml

Co-authored-by: Ibone González Mauraza <gibone@vmware.com>

* Update bitnami/tomcat/templates/prometheusrule.yaml

Co-authored-by: Ibone González Mauraza <gibone@vmware.com>

* Update bitnami/tomcat/Chart.yaml

Co-authored-by: Carlos Rodríguez Hernández <carrodher1179@gmail.com>

* [bitnami/tomcat] Fix prometheusRules

Co-authored-by: Ibone González Mauraza <gibone@vmware.com>
Co-authored-by: Carlos Rodríguez Hernández <carrodher1179@gmail.com>
This commit is contained in:
bbaudelet
2021-12-16 11:03:46 +01:00
committed by GitHub
parent 99b480d0bc
commit a5486ab00d
4 changed files with 83 additions and 26 deletions

View File

@@ -631,3 +631,30 @@ metrics:
## @param metrics.podMonitor.relabelings [array] Prometheus relabeling rules
##
relabelings: []
## Custom PrometheusRule to be defined
## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
##
prometheusRule:
## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
##
enabled: false
## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
##
additionalLabels: {}
## @param metrics.prometheusRule.namespace namespace where prometheusRules resource should be created
##
namespace: ""
## @param metrics.prometheusRule.rules Create specified [Rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)
## Make sure to constraint the rules to the current tomcat service.
## rules:
## - alert: HugeReplicationLag
## expr: up{service="{{ template "common.names.fullname" . }}-metrics"} < 1
## for: 1m
## labels:
## severity: critical
## annotations:
## description: Service {{ template "common.names.fullname" . }} Tomcat is down since 1m.
## summary: Tomcat instance is down.
##
rules: []