feat(prometheus): rule selector configurable from values.yaml

!4
This commit is contained in:
2023-09-28 09:08:26 +09:30
parent 2371adcbc5
commit 7afc6aa515
3 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,6 @@ spec:
requests:
memory: 400Mi
ruleNamespaceSelector: {}
ruleSelector: {}
securityContext:
fsGroup: 2000
runAsNonRoot: true

View File

@ -11,7 +11,7 @@ metadata:
app.kubernetes.io/version: {{ $.Chart.Version }}
prometheus: k8s
role: alert-rules
name: thanos-rules
name: thanos-sidecar-rules
namespace: {{ .Values.nfc_monitoring.prometheus.namespace }}
spec:
groups:

View File

@ -240,6 +240,9 @@ nfc_monitoring:
retention: 24h
retentionSize: 20GB
ruleSelector:
matchLabels:
role: alert-rules
prometheus_adaptor: