Skip to content

Commit

Permalink
Update: Refactoring labels (#27)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault authored Jan 5, 2023
1 parent 48ebc0c commit 92e89c5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/quickwit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: quickwit
description: Open-Source & Cloud-Native Log Management at any scale.
type: application
version: 0.1.13
version: 0.2.0
appVersion: "v0.4.0"
keywords:
- quickwit
Expand Down
3 changes: 3 additions & 0 deletions charts/quickwit/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "quickwit.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.additionalLabels }}
{{ toYaml .Values.additionalLabels }}
{{- end }}
{{- end }}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions charts/quickwit/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
name: {{ include "quickwit.fullname" . }}
labels:
{{- include "quickwit.labels" . | nindent 4 }}
{{- with .Values.prometheus.monitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- path: /metrics
Expand Down
6 changes: 6 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# -- Additional labels to add to all resources
additionalLabels: {}
# app: quickwit

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down Expand Up @@ -322,6 +326,8 @@ config:
# Prometheus metrics
serviceMonitor:
enabled: false
# -- Additional labels to add to monitoring resources
additionalLabels: {}
interval: 60s
scrapeTimeout: 10s
metricRelabelings: []
Expand Down

0 comments on commit 92e89c5

Please sign in to comment.