Skip to content

Commit

Permalink
[CHORE] adding extra labels to svc monitor (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolastakashi authored May 12, 2023
1 parent aa92487 commit 225f6a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cole/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: 1.2.0
version: 1.2.1

# 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
3 changes: 3 additions & 0 deletions charts/cole/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ apiVersion: monitoring.coreos.com/v1
metadata:
labels:
{{- include "cole.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "cole.fullname" . }}
spec:
endpoints:
Expand Down
3 changes: 3 additions & 0 deletions charts/cole/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ serviceMonitor:
# ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
scrapeTimeout: ""

# Additional labels
labels: {}

grafanaApiSecret:
enabled: true
labels: {}
Expand Down

0 comments on commit 225f6a6

Please sign in to comment.