-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vpa: Pod Monitors for prometheus metrics (#1222)
* Pod Monitors for prometheus metrics * bump version and update docs * Fix Readme * Add more docs and new version * Add more docs and new version * Update stable/vpa/values.yaml Co-authored-by: Andrew Suderman <[email protected]> * Update stable/vpa/values.yaml Co-authored-by: Andrew Suderman <[email protected]> * Change format for clarity * Change format for clarity - lint * Once more readme update * Fixes CI checks --------- Co-authored-by: Andrew Suderman <[email protected]>
- Loading branch information
1 parent
b96c157
commit 2edc105
Showing
5 changed files
with
69 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{- if .Values.recommender.podMonitor }} | ||
{{- if and .Values.recommender.enabled .Values.recommender.podMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: {{ include "vpa.fullname" . }}-recommender | ||
{{- with .Values.recommender.podMonitor.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.recommender.podMonitor.labels }} | ||
labels: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
podMetricsEndpoints: | ||
- interval: 30s | ||
path: /metrics | ||
port: metrics | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: recommender | ||
{{- include "vpa.selectorLabels" . | nindent 6 }} | ||
{{- end }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{- if .Values.updater.podMonitor }} | ||
{{- if and .Values.updater.enabled .Values.updater.podMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: {{ include "vpa.fullname" . }}-updater | ||
{{- with .Values.updater.podMonitor.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.updater.podMonitor.labels }} | ||
labels: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
podMetricsEndpoints: | ||
- interval: 30s | ||
path: /metrics | ||
port: metrics | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: updater | ||
{{- include "vpa.selectorLabels" . | nindent 6 }} | ||
{{- end }} | ||
{{- 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