Files
truecharts/charts/stable/statping-ng/templates/_prometheusrules.tpl
T
Stavros KoisandGitHub 4aedb8eb1b feat(statping-ng): remove duplicate app and switch current to a maint… (#6523)
* feat(statping-ng): remove duplicate app and switch current to a maintained project

* add q

* update Q

* fix

* port
2023-01-19 11:08:00 +02:00

22 lines
623 B
Smarty

{{- define "statping.prometheusrule" -}}
{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: {{ include "tc.common.names.fullname" . }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
{{- with .Values.metrics.prometheusRule.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
groups:
- name: {{ include "tc.common.names.fullname" . }}
rules:
{{- with .Values.metrics.prometheusRule.rules }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end -}}