Skip to content

Commit

Permalink
feat(helm): additional labels for ServiceMonitor (#1167)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault authored Sep 13, 2024
1 parent 72343e9 commit d0fe930
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/beyla/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: beyla
version: 1.4.0
version: 1.4.1
appVersion: 1.8.0
description: eBPF-based autoinstrumentation HTTP, HTTP2 and gRPC services, as well as network metrics.
home: https://grafana.com/oss/beyla-ebpf/
Expand Down
3 changes: 3 additions & 0 deletions charts/beyla/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
labels:
{{- include "beyla.labels" . | nindent 4 }}
app.kubernetes.io/component: metrics
{{- with .Values.serviceMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.serviceMonitor.annotations }}
annotations:
{{- tpl (toYaml . | nindent 4) $root }}
Expand Down
2 changes: 2 additions & 0 deletions charts/beyla/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ preset: application
# -- Enable creation of ServiceMonitor for scraping of prometheus HTTP endpoint
serviceMonitor:
enabled: false
# -- Add custom labels to the ServiceMonitor resource
additionalLabels: {}
# -- ServiceMonitor annotations
annotations: {}
# -- ServiceMonitor scraping endpoint.
Expand Down

0 comments on commit d0fe930

Please sign in to comment.