Skip to content

Commit

Permalink
[prometheus-smartctl-exporter] Add relabelings to servicemonitor (pro…
Browse files Browse the repository at this point in the history
…metheus-community#3891)

* [prometheus-smartctl-exporter] Add relabelings to servicemonitor

Signed-off-by: nepomucen <[email protected]>

* bump chart version to 0.6.1

Signed-off-by: nepomucen <[email protected]>

* Revert "bump chart version to 0.6.1"

This reverts commit 124b85c.

Signed-off-by: nepomucen <[email protected]>

* Bump chart's minor version instead of patch version

Signed-off-by: nepomucen <[email protected]>

* Use with to control variable scoping

Signed-off-by: nepomucen <[email protected]>

---------

Signed-off-by: nepomucen <[email protected]>
  • Loading branch information
nepomucen authored and Matiasmct committed Mar 20, 2024
1 parent 5720190 commit 841a0fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-smartctl-exporter/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.6.0
version: 0.7.0

# 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
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
port: http
scheme: http
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- with .Values.serviceMonitor.relabelings }}
relabelings: {{ toYaml . | nindent 8 }}
{{- end }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-smartctl-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ serviceMonitor:
# release: prometheus-operator
interval: 60s
scrapeTimeout: 30s
# Set relabel_configs as per https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
relabelings: []

prometheusRules:
enabled: false
Expand Down

0 comments on commit 841a0fc

Please sign in to comment.