Skip to content
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

Collector example: add metrics and use official port #4466

Merged
merged 13 commits into from
Sep 7, 2023
Merged

Collector example: add metrics and use official port #4466

merged 13 commits into from
Sep 7, 2023

Conversation

dmathieu
Copy link
Member

This updates the Otel Collector example to also configure and emit metrics, as we currently don't have any running example to send metrics through OTLP.

It also changes the default port to 4317, which is the default OTLP port.
See https://github.com/open-telemetry/opentelemetry-proto/blob/main/docs/specification.md#otlpgrpc-default-port

@dmathieu dmathieu added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Aug 28, 2023
example/otel-collector/main.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #4466 (2db68c5) into main (76c370f) will increase coverage by 0.0%.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #4466   +/-   ##
=====================================
  Coverage   81.3%   81.3%           
=====================================
  Files        220     220           
  Lines      17670   17670           
=====================================
+ Hits       14378   14380    +2     
+ Misses      2992    2990    -2     
  Partials     300     300           

@pellared pellared merged commit 6eedabf into open-telemetry:main Sep 7, 2023
26 checks passed
@dmathieu dmathieu deleted the otel-collector-example-metrics branch September 7, 2023 09:10
MrAlias added a commit to MrAlias/opentelemetry-go that referenced this pull request Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants