-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Victor Getz
committed
Feb 5, 2024
1 parent
65e8f15
commit d6abddb
Showing
6 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
blueprints/templates/infrastructure-charts/pod-monitor-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
podMonitor: | ||
enabled: true | ||
# Default values, override them if necessary | ||
#labels: {} | ||
#annotations: {} | ||
#port: "metrics" | ||
#interval: "10s" | ||
#path: "/metrics" |
23 changes: 23 additions & 0 deletions
23
blueprints/templates/infrastructure-charts/pod-monitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if .Values.podMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "myService.fullname" $ }} | ||
{{- with .Values.podMonitor.labels }} | ||
labels: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.podMonitor.annotations }} | ||
annotations: | ||
iits-consulting.chart-creator/version: CHART_CREATOR_VERSION | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "myService.selectorLabels" . | nindent 6 }} | ||
podMetricsEndpoints: | ||
- port: {{ default "metrics" .Values.podMonitor.port }} | ||
interval: {{ default "10s" .Values.podMonitor.interval }} | ||
path: {{ default "/metrics" .Values.podMonitor.path }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters