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

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
@dmathieu dmathieu force-pushed the otel-collector-example-metrics branch from 694a129 to 88f18af Compare August 28, 2023 10:24
@dmathieu dmathieu force-pushed the otel-collector-example-metrics branch from 88f18af to c1f7f61 Compare August 28, 2023 10:29
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
27 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
MrAlias added a commit that referenced this pull request Sep 9, 2023
@MrAlias MrAlias added this to the v1.18.0/v0.41.0 milestone Sep 9, 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.

None yet

4 participants