Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maximelaboisson committed Feb 5, 2025
1 parent f128ca2 commit 17ea39d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ otelcol.connector.servicegraph "default" {
{{ . | quote }},
{{- end }}
]
latency_histogram_buckets = ["0s", "0.005s", "0.01s", "0.025s", "0.05s", "0.075s", "0.1s", "0.25s", "0.5s", "0.75s", "1s", "2.5s", "5s", "7.5s", "10s"]
latency_histogram_buckets = buckets = [{{- join ", " .Values.metricsGeneration.buckets }}]

store {
ttl = "2s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ otelcol.connector.spanmetrics "default" {
namespace = "traces.spanmetrics"
{{- end }}

metrics_expiration = {{ .Values.metricsGeneration.expiration }}
metrics_flush_interval = {{ .Values.metricsGeneration.flushInterval }}

histogram {
unit = "s"

explicit {
buckets = ["0s", "0.005s", "0.01s", "0.025s", "0.05s", "0.075s", "0.1s", "0.25s", "0.5s", "0.75s", "1s", "2.5s", "5s", "7.5s", "10s"]
buckets = [{{- join ", " .Values.metricsGeneration.buckets }}]
}
}

Expand Down
6 changes: 6 additions & 0 deletions charts/grafana-sampling/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ metricsGeneration:
enabled: true
# -- Use legacy metric names that match those used by the Tempo metrics generator.
legacy: true
# -- How often to flush generated metrics.
flushInterval: "15s"
# -- Time period after which metrics are considered stale and are removed from the cache.
expiration: "0s"
# -- List of histogram buckets.
buckets: ["0s", "0.005s", "0.01s", "0.025s", "0.05s", "0.075s", "0.1s", "0.25s", "0.5s", "0.75s", "1s", "2.5s", "5s", "7.5s", "10s"]
# -- Additional dimensions to add to generated metrics.
dimensions:
- service.namespace
Expand Down

0 comments on commit 17ea39d

Please sign in to comment.