Skip to content

Commit

Permalink
fix(metrics)!: don't use _sumo_forward_
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm-sumo committed Sep 19, 2023
1 parent 13dc67d commit d406476
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 4 additions & 1 deletion deploy/helm/sumologic/conf/metrics/otelcol/processors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,15 @@ routing:
- sumologic/state
value: /prometheus.metrics.state
## custom metrics
## This entry is necessary due to a bug in routing processor that prevents the routing key from being deleted
## These entries are necessary due to a bug in routing processor that prevents the routing key from being deleted
## if the default exporter is chosen
## See: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/24644
- exporters:
- sumologic/default
value: /prometheus.metrics.applications.custom
- exporters:
- sumologic/default
value: /prometheus.metrics
{{- end }}

## Configuration for Source Processor
Expand Down
7 changes: 0 additions & 7 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1193,13 +1193,6 @@ kube-prometheus-stack:
target_label: pod
replacement: $1
action: replace
## Sets _sumo_forward_ label to true
- source_labels: [__name__]
separator: ;
regex: (.*)
target_label: _sumo_forward_
replacement: "true"
action: replace
remoteWrite:
## infrastructure metrics
- url: http://$(METADATA_METRICS_SVC).$(NAMESPACE).svc.cluster.local.:9888/prometheus.metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ data:
- exporters:
- sumologic/default
value: /prometheus.metrics.applications.custom
- exporters:
- sumologic/default
value: /prometheus.metrics
source:
collector: kubernetes
exclude:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ data:
- exporters:
- sumologic/default
value: /prometheus.metrics.applications.custom
- exporters:
- sumologic/default
value: /prometheus.metrics
source:
collector: kubernetes
exclude:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ data:
- exporters:
- sumologic/default
value: /prometheus.metrics.applications.custom
- exporters:
- sumologic/default
value: /prometheus.metrics
source:
collector: kubernetes
exclude:
Expand Down

0 comments on commit d406476

Please sign in to comment.