Skip to content

Commit

Permalink
Merge pull request #80 from nlamirault/fix/prometheus-operator
Browse files Browse the repository at this point in the history
Fix labels used by Prometheus Operator to load
  • Loading branch information
rdettai committed May 6, 2024
2 parents ce94f7e + 7ca3922 commit 23fb69b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
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: Sub-second search & analytics engine on cloud storage.
type: application
version: 0.5.14
version: 0.5.15
appVersion: "v0.8.1"
keywords:
- quickwit
Expand Down
5 changes: 4 additions & 1 deletion charts/quickwit/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ metadata:
name: {{ include "quickwit.fullname" . }}
labels:
{{- include "quickwit.labels" . | nindent 4 }}
{{- with .Values.prometheusRule.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
groups:
- name: {{ include "quickwit.fullname" . }}
rules:
{{- toYaml .Values.prometheusRules.rules | nindent 8 }}
{{- toYaml .Values.prometheusRule.rules | nindent 8 }}
{{- end }}
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.serviceMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- path: /metrics
Expand Down
2 changes: 2 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ serviceMonitor:
# Prometheus Operator alertmanager alerts
prometheusRule:
enabled: false
# -- Additional labels to add to PrometheusRule resources
additionalLabels: {}
rules: []
# - alert: Example
# expr: metric == 1
Expand Down

0 comments on commit 23fb69b

Please sign in to comment.