prometheusrule.yaml 521 B

1234567891011121314151617181920212223
  1. {{- with .Values.prometheusRule }}
  2. {{- if .enabled }}
  3. apiVersion: monitoring.coreos.com/v1
  4. kind: PrometheusRule
  5. metadata:
  6. name: {{ include "tempo.fullname" $ }}
  7. {{- with .namespace }}
  8. namespace: {{ . }}
  9. {{- end }}
  10. {{- with .annotations }}
  11. annotations:
  12. {{- toYaml . | nindent 4 }}
  13. {{- end }}
  14. labels:
  15. {{- include "tempo.labels" (dict "ctx" $) | nindent 4 }}
  16. {{- with .labels }}
  17. {{- toYaml . | nindent 4 }}
  18. {{- end }}
  19. spec:
  20. groups:
  21. {{- toYaml .groups | nindent 4 }}
  22. {{- end }}
  23. {{- end }}