Document OTLP Collector setup for telemetry.#3
Document OTLP Collector setup for telemetry.#3yutongzhang-microsoft wants to merge 4 commits intor12f:user/r12f/telfrom
Conversation
Fix tests. Update doc. Minor update. Fix TS reporters. Fix TSRepoter. Fix TS reporter. minor fix. Fix example. Reverse relationship of metrics and reporter to support more types of metrics in future. Remove bydesign not working test. Fix example. Update tests. Update TS reporter and DB repoter. Update minor things. Remove no required code. Revert unexpected change. Rename and update doc.
Get os version and elastictest job id from correct place.
|
/azp run |
|
Commenter does not have sufficient privileges for PR 3 in repo r12f/sonic-mgmt |
docs/tests/telemetry.md
Outdated
| 3. [Examples](#examples) | ||
| 7. [7. Data collection](#7-data-collection) | ||
| 1. [7.1. Setup collection environment](#71-setup-collection-environment) | ||
| 2. [7.2. Verify Data Collection](#72-setup-collection-environment) |
There was a problem hiding this comment.
link should be updated to 72-verify-data-collection
docs/tests/telemetry.md
Outdated
|
|
||
| To start the collector: | ||
| ```buildoutcfg | ||
| docker run -d --name <otlp-collector> -v /data/otel-config.yaml:/etc/otel/config.yaml -p 4317:4317 -p 4318:4318 otel/opentelemetry-collector:latest --config /etc/otel/config.yaml |
There was a problem hiding this comment.
It might be helpful to mention that /data/otel-config.yaml refers to a path on the local host, and users should replace it with the path to their own configuration file. This can help prevent any issues if someone copies the command directly and the file or directory doesn’t exist.
docs/tests/telemetry.md
Outdated
| endpoint: 0.0.0.0:4318 | ||
|
|
||
| exporters: | ||
| prometheusremotewrite: |
There was a problem hiding this comment.
It might be helpful to briefly explain what prometheusremotewrite does here, so readers understand that it’s an exporter that sends metrics from the OpenTelemetry Collector to a Prometheus-compatible remote storage endpoint. A short sentence or link to documentation could make this section clearer for readers who are not familiar with Prometheus Remote Write.
There was a problem hiding this comment.
Sure, maybe I will add how Prometheus get data from otlp collector in this article later, and I will explain more detail.
|
/azp run |
|
Commenter does not have sufficient privileges for PR 3 in repo r12f/sonic-mgmt |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 3 in repo r12f/sonic-mgmt |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 3 in repo r12f/sonic-mgmt |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 3 in repo r12f/sonic-mgmt |
97e18e0 to
76070e8
Compare
|
/azp run |
|
Commenter does not have sufficient privileges for PR 3 in repo r12f/sonic-mgmt |
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation