Skip to content

Commit

Permalink
Add conditional phlare annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
domust committed Oct 6, 2023
1 parent 9c80f06 commit 90f2350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/castai-kvisor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
prometheus.io/scrape: "true"
prometheus.io/port: "{{.Values.metrics.scrapePort}}"
{{- end }}
{{- if .Values.metrics.phlareEnabled }}
phlare.grafana.com/scrape: "true"
phlare.grafana.com/port: "{{ .Values.metrics.scrapePort }}"
{{- end }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/castai-kvisor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,5 @@ serviceAccount:

metrics:
enabled: true
phlareEnabled: false
scrapePort: "6060"

0 comments on commit 90f2350

Please sign in to comment.