Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prometheus-memcached-exporter] Fix: allow to configure extra labels … #3943

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/prometheus-memcached-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: prometheus-memcached-exporter
description: Prometheus exporter for Memcached metrics
type: application
version: 0.1.0
version: 0.2.0
appVersion: "v0.13.0"
home: https://github.com/prometheus/memcached_exporter
sources:
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus-memcached-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ include "prometheus-memcached-exporter.fullname" . }}
labels:
{{- include "prometheus-memcached-exporter.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-memcached-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ securityContext: {}
service:
type: ClusterIP
port: 9150
# Labels to append to the service
labels: {}
# Annotations to add to the service
annotations: {}

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down