prometheusrules.yaml 596 B

1234567891011121314151617
  1. {{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled -}}
  2. apiVersion: monitoring.coreos.com/v1
  3. kind: PrometheusRule
  4. metadata:
  5. name: {{ template "docker-registry.fullname" . }}
  6. labels:
  7. app.kubernetes.io/component: controller
  8. {{- if .Values.metrics.prometheusRule.labels }}
  9. {{- toYaml .Values.metrics.prometheusRule.labels | nindent 4 }}
  10. {{- end }}
  11. spec:
  12. {{- if .Values.metrics.prometheusRule.rules }}
  13. groups:
  14. - name: {{ template "docker-registry.fullname" . }}
  15. rules: {{- toYaml .Values.metrics.prometheusRule.rules | nindent 4 }}
  16. {{- end }}
  17. {{- end }}