rancher-charts/charts/rancher-windows-exporter/100.0.0/templates/prometheusrule.yaml

13 lines
514 B
YAML

{{- if and .Values.prometheusRule .Values.clients }}{{- if and .Values.prometheusRule.enabled .Values.clients.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels: {{ include "windowsExporter.labels" . | nindent 4 }}
name: {{ template "windowsExporter.name" . }}
namespace: {{ template "windowsExporter.namespace" . }}
spec:
groups:
- name: windows-exporter-relabel.rules
rules:
{{- include "windowsExporter.renamedMetricsRules" . | nindent 4 -}}
{{- end }}{{- end }}