Skip to content

Commit

Permalink
fix(otelcol-config): add missing extension config (#1702)
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kolberg <[email protected]>
  • Loading branch information
amdprophet authored Nov 14, 2024
1 parent b1ea0a9 commit 882f897
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/tools/otelcol-config/remote_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ func makeNewSumologicRemoteYAML(ctx *actionContext, conf ConfDir) error {
"remote_configuration_directory": remoteConfigDir,
"endpoint": DefaultSumoLogicOpampEndpoint,
},
"sumologic": map[string]any{
"installation_token": "${SUMOLOGIC_INSTALLATION_TOKEN}",
"collector_credentials_directory": "/var/lib/otelcol-sumo/credentials",
},
},
"receivers": map[string]any{
"nop": map[string]any{},
Expand All @@ -64,6 +68,10 @@ func makeNewSumologicRemoteYAML(ctx *actionContext, conf ConfDir) error {
"nop": map[string]any{},
},
"service": map[string]any{
"extensions": []string{
"sumologic",
"opamp",
},
"pipelines": map[string]any{
"metrics/default": map[string]any{
"receivers": []string{"nop"},
Expand Down
6 changes: 6 additions & 0 deletions pkg/tools/otelcol-config/remote_control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,15 @@ extensions:
opamp:
endpoint: wss://opamp-events.sumologic.com/v1/opamp
remote_configuration_directory: /etc/otelcol-sumo/opamp.d
sumologic:
collector_credentials_directory: /var/lib/otelcol-sumo/credentials
installation_token: ${SUMOLOGIC_INSTALLATION_TOKEN}
receivers:
nop: {}
service:
extensions:
- sumologic
- opamp
pipelines:
logs/default:
exporters:
Expand Down

0 comments on commit 882f897

Please sign in to comment.