Skip to content

Commit

Permalink
fix(logs): do not add exporters mutliple times to the pipeline (#3796)
Browse files Browse the repository at this point in the history
* fix(logs): do not add exporters mutliple times to the pipeline

Signed-off-by: Dominik Rosiek <[email protected]>

* chore: tests

Signed-off-by: Dominik Rosiek <[email protected]>

* chore: changelog

Signed-off-by: Dominik Rosiek <[email protected]>

---------

Signed-off-by: Dominik Rosiek <[email protected]>
  • Loading branch information
sumo-drosiek authored Jul 5, 2024
1 parent e52a34c commit a5d4713
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/3796.fixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix(logs): do not add exporters mutliple times to the pipeline
1 change: 1 addition & 0 deletions deploy/helm/sumologic/templates/_helpers/_logs.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Return all exporters for .Type pipeline
{{- $exporters = append $exporters $exporter -}}
{{- end -}}
{{- end -}}
{{- $exporters = uniq $exporters -}}
{{- range $_, $exporter := $exporters }}
{{ printf "- %s" $exporter }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ sumologic:
routing:
fallbackExporters:
- debug
- sumologic/test
table:
- exporter: sumologic/test
statement: route() where resource.attributes["exporter"] == "test"
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,15 @@ data:
routing/containers:
default_exporters:
- debug
- sumologic/test
table:
- exporters:
- sumologic/test
statement: route() where resource.attributes["exporter"] == "test"
routing/systemd:
default_exporters:
- debug
- sumologic/test
table:
- exporters:
- sumologic/test
Expand Down

0 comments on commit a5d4713

Please sign in to comment.