-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add telemetry agent and local backend collector for testing
- Loading branch information
Showing
11 changed files
with
684 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM otel/opentelemetry-collector-contrib:latest | ||
|
||
# Define an argument for the config file path | ||
ARG CONFIG_FILE=otel-collector-config.yaml | ||
|
||
# Copy the config file into the container | ||
COPY ${CONFIG_FILE} /otel-collector-config.yaml | ||
|
||
# Expose the necessary ports (health check, grpc, and http ports) | ||
EXPOSE 13134 4319 4316 | ||
|
||
# Set the command to run the collector with the config file | ||
CMD ["--config", "/otel-collector-config.yaml"] |
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,34 @@ | ||
extensions: | ||
health_check: | ||
endpoint: 0.0.0.0:13134 | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:4316 | ||
http: | ||
endpoint: 0.0.0.0:4319 | ||
|
||
exporters: | ||
logging: | ||
verbosity: detailed | ||
|
||
processors: | ||
batch: | ||
|
||
service: | ||
extensions: [health_check] | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [logging] | ||
metrics: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [logging] | ||
logs: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [logging] |
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,5 @@ | ||
from .telemetry_agent import ( | ||
TelemetryAgentConfig, | ||
TelemetryAgentExporter, | ||
TelemetryCollectorConfig, | ||
) |
Oops, something went wrong.