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: requests:
memory: 400Mi memory: 400Mi
ruleNamespaceSelector: {} ruleNamespaceSelector: {}
ruleSelector: {}
securityContext: securityContext:
fsGroup: 2000 fsGroup: 2000
runAsNonRoot: true runAsNonRoot: true

View File

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

View File

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