-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2780 from lpegoraro/eng-1056-orb-policies-opentel…
…emetry-configuration feat(backend): add opentelemetry backend in orb-agent, policies.
- Loading branch information
Showing
43 changed files
with
1,737 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,5 @@ docker/otel-collector-config.yaml | |
|
||
kind/* | ||
!kind/README.md | ||
|
||
otelcol-contrib |
4 changes: 2 additions & 2 deletions
4
.idea/runConfigurations/orb_agent.xml → .idea/runConfigurations/orb_agent_visor.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package otel | ||
|
||
import ( | ||
"fmt" | ||
mqtt "github.com/eclipse/paho.mqtt.golang" | ||
"strings" | ||
) | ||
|
||
func (o *openTelemetryBackend) SetCommsClient(agentID string, client *mqtt.Client, baseTopic string) { | ||
o.mqttClient = client | ||
otelBaseTopic := strings.Replace(baseTopic, "?", "otlp", 1) | ||
o.otlpMetricsTopic = fmt.Sprintf("%s/m/%c", otelBaseTopic, agentID[0]) | ||
o.otlpTracesTopic = fmt.Sprintf("%s/t/%c", otelBaseTopic, agentID[0]) | ||
o.otlpLogsTopic = fmt.Sprintf("%s/l/%c", otelBaseTopic, agentID[0]) | ||
} |
Oops, something went wrong.