feat(grafana): enabled/disabled configurable

!8
This commit is contained in:
2024-02-04 15:01:04 +09:30
parent c5bb46f48a
commit e0cb8f57e2
16 changed files with 43 additions and 6 deletions

View File

@ -1,3 +1,4 @@
{{ if .Values.nfc_monitoring.grafana.enabled -}}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
@ -32,3 +33,5 @@ spec:
- expr: |
sum by (namespace, job, handler, status_code) (rate(grafana_http_request_duration_seconds_count[5m]))
record: namespace_job_handler_statuscode:grafana_http_request_duration_seconds_count:rate5m
{{- end }}