-
Notifications
You must be signed in to change notification settings - Fork 185
feat(routing): Migrate routing processor to connector for metrics collection #4025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| chore(deps): Migrate routing processor to routing connector for metrics collection | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| routing/default: | ||
| default_pipelines: | ||
| - metrics/sumologic/default | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-default | ||
| {{- end }} | ||
| table: | ||
| - statement: route() where resource.attributes["job"] == "apiserver" | ||
| pipelines: | ||
| - metrics/apiserver | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-http | ||
| {{- end }} | ||
| - statement: route() where resource.attributes["job"] == "coredns" | ||
| pipelines: | ||
| - metrics/control_plane | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-http | ||
| {{- end }} | ||
| - statement: route() where resource.attributes["job"] == "kube-etcd" | ||
| pipelines: | ||
| - metrics/control_plane | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-http | ||
| {{- end }} | ||
| - statement: route() where resource.attributes["job"] == "kube-controller-manager" | ||
| pipelines: | ||
| - metrics/controller | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-http | ||
| {{- end }} | ||
| - statement: route() where resource.attributes["job"] == "kubelet" | ||
| pipelines: | ||
| - metrics/kubelet | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-http | ||
| {{- end }} | ||
| - statement: route() where resource.attributes["job"] == "node-exporter" | ||
| pipelines: | ||
| - metrics/node | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-http | ||
| {{- end }} | ||
| - statement: route() where resource.attributes["job"] == "kube-scheduler" | ||
| pipelines: | ||
| - metrics/scheduler | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-http | ||
| {{- end }} | ||
| - statement: route() where resource.attributes["job"] == "kube-state-metrics" | ||
| pipelines: | ||
| - metrics/state | ||
| {{- if eq .Values.debug.metrics.metadata.print true }} | ||
| - metrics/debug | ||
| {{- end }} | ||
| {{- if eq (include "sumologic-mock.forward-metrics-metadata" .) "true" }} | ||
| - metrics/sumologic/sumologic-mock-http | ||
| {{- end }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -462,11 +462,14 @@ sumologic: | |
| fallbackExporters: [] | ||
| table: [] | ||
| ## - | ||
| ## ## exporter is name of the exporter | ||
| ## exporter: sumologic/otlp | ||
| ## ## statement is an OTTL condition which defines what data should be send to the exporter | ||
| ## ## see routing processor documentation for more details: | ||
| ## ## https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/aee4b75100530bce7edbf736fbcf76ac4f6ced6d/processor/routingprocessor/README.md#tech-preview-opentelemetry-transformation-language-statements-as-routing-conditions | ||
| ## ## exporters is an array of the exporter | ||
| ## exporters: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a breaking change and is not necessary see - https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/4012/files#r2481804958 |
||
| ## - sumologic/otlp | ||
| ## ## statement is an OTTL condition which defines what data should be sent to the exporters | ||
| ## ## see routing connector documentation for more details: | ||
| ## ## https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/aee4b75100530bce7edbf736fbcf76ac4f6ced6d/connector/routingconnector | ||
| ## routing connector expects you to define a pipeline, but here the user can just mention the exporter. | ||
| ## The helm deployment would convert exporters into correct pipelines and configure the connectors. | ||
|
Comment on lines
+471
to
+472
|
||
| ## statement: "" | ||
|
|
||
| ## Fields to be created at Sumo Logic to ensure logs are tagged with | ||
|
|
@@ -764,6 +767,8 @@ sumologic: | |
| ## The type of source we send to in Sumo. The possible values are http and otlp. | ||
| ## Consult the documentation for more information. | ||
| sourceType: otlp | ||
| ## In order to use routing connectors, please enable this flag. | ||
| # useRoutingConnectors: true | ||
|
|
||
| ### Traces configuration | ||
| ## Set the enabled flag to false to disable traces from instrumentation ingestion. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| sumologic: | ||
| ipv6mode: true | ||
| metrics: | ||
| sourceType: http | ||
| useRoutingConnectors: true | ||
| metadata: | ||
| metrics: | ||
| autoscaling: | ||
| enabled: false | ||
| debug: | ||
| metrics: | ||
| metadata: | ||
| print: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changelog entry uses 'chore(deps)' prefix but this is a feature addition ('feat'), not a dependency update. Based on the PR title 'feat(routing): Migrate routing processor to connector for metrics collection', the changelog should use 'feat(routing)' instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dhruv-shah-sumo Please make the changelog text same as PR title