We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The scaffolded helm chart (./scaffold/templates/chart) should be able to optionally render a PodMonitor object such as
PodMonitor
{{- if .Values.metrics.podMonitor.enabled }} apiVersion: monitoring.coreos.com/v1 kind: PodMonitor metadata: name: {{ include "xxx.fullname" . }} labels: {{- include "xxx.labels" . | nindent 4 }} spec: namespaceSelector: matchNames: - {{ .Release.Namespace }} selector: matchLabels: {{- include "xxx.selectorLabels" . | nindent 6 }} podMetricsEndpoints: - port: metrics {{- end }}
and a PrometheusRule object such as
PrometheusRule
{{- if and .Values.metrics.prometheusRule.enabled .Values.metrics.prometheusRule.rules }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ include "xxx.fullname" . }} labels: {{- include "xxx.labels" . | nindent 4 }} spec: groups: - name: {{ include "xxx.name" . }} rules: {{- toYaml .Values.metrics.prometheusRule.rules | nindent 4 }} {{- end }}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The scaffolded helm chart (./scaffold/templates/chart) should be able to optionally render a
PodMonitor
object such asand a
PrometheusRule
object such asThe text was updated successfully, but these errors were encountered: