Skip to content

Commit

Permalink
[prometheus] feat: add otlp configuration to prometheus.yml (#5179)
Browse files Browse the repository at this point in the history
Signed-off-by: Dustin Jenkins <djenkins.cadc@gmail.com>
Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com>
Co-authored-by: MH <zanhsieh@gmail.com>
Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 18, 2025
1 parent 8056636 commit 4891a71
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: prometheus
appVersion: v3.1.0
version: 27.0.0
version: 27.1.0
kubeVersion: ">=1.19.0-0"
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus/templates/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ data:
{{ $root.Values.server.exemplars | toYaml | indent 8 }}
{{- end }}
{{- end }}
{{- if $root.Values.server.otlp }}
otlp:
{{ $root.Values.server.otlp | toYaml | indent 8 }}
{{- end }}
{{- if $root.Values.scrapeConfigFiles }}
scrape_config_files:
{{ toYaml $root.Values.scrapeConfigFiles | indent 4 }}
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,13 @@ server:
tsdb: {}
# out_of_order_time_window: 0s

## https://prometheus.io/docs/guides/opentelemetry
##
otlp: {}
# promote_resource_attributes: []
# keep_identifying_resource_attributes: false
# translation_strategy: NoUTF8EscapingWithSuffixes

## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#exemplars
## Must be enabled via --enable-feature=exemplar-storage
##
Expand Down

0 comments on commit 4891a71

Please # to comment.