Skip to content

Commit

Permalink
simple-app 0.11.5: Add support for monitoring.googleapis.com/v1 `Po…
Browse files Browse the repository at this point in the history
…dMonitoring`
  • Loading branch information
elephantum committed Apr 16, 2024
1 parent d1167c5 commit 9841e6b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/simple-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.11.5

* Add support for `monitoring.googleapis.com/v1` `PodMonitoring`

# 0.11.4

* Add `.volumes[].secret` and `.volumes[].configMap` options
Expand Down
2 changes: 1 addition & 1 deletion charts/simple-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "0.11.4"
version: "0.11.5"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
16 changes: 16 additions & 0 deletions charts/simple-app/templates/podmonitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ if and .Values.gke.enabled .Values.gke.monitoring.enabled }}
apiVersion: monitoring.googleapis.com/v1
kind: PodMonitoring
metadata:
name: {{ include "simple-app.fullname" . }}
labels:
{{- include "simple-app.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "simple-app.selectorLabels" . | nindent 6 }}
endpoints:
- port: http
path: {{ .Values.gke.monitoring.path }}
interval: {{ .Values.gke.monitoring.interval }}
{{ end }}
5 changes: 5 additions & 0 deletions charts/simple-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,8 @@ gke:
enabled: false
clientID: ""
oauth2ClientSecret: ""

monitoring:
enabled: false
path: "/metrics"
interval: "30s"

0 comments on commit 9841e6b

Please sign in to comment.