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

chore: template prometheus endpoint in examples rather than hardcode #1142

Merged

Conversation

naseemkullah
Copy link
Member

Which problem is this PR solving?

  • n/a

Short description of the changes

  • Rather than hardcode the default endpoint in prometheus examples, interpolate them from where they are defined.

@codecov
Copy link

codecov bot commented Jun 4, 2020

Codecov Report

Merging #1142 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1142   +/-   ##
=======================================
  Coverage   92.30%   92.30%           
=======================================
  Files         116      116           
  Lines        3393     3393           
  Branches      685      685           
=======================================
  Hits         3132     3132           
  Misses        261      261           

…dcode

Signed-off-by: Naseem <naseem@transit.app>
@naseemkullah
Copy link
Member Author

Sorry for the force push, just cleaned up history, ready for review now.

@@ -8,7 +8,9 @@ const exporter = new PrometheusExporter(
startServer: true,
},
() => {
console.log('prometheus scrape endpoint: http://localhost:9464/metrics');
console.log(
`prometheus scrape endpoint: http://localhost:${PrometheusExporter.DEFAULT_OPTIONS.port}${PrometheusExporter.DEFAULT_OPTIONS.endpoint}`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dyladan dyladan merged commit 121b03d into open-telemetry:master Jun 4, 2020
@naseemkullah naseemkullah deleted the prom-endpoint-templating branch June 4, 2020 18:40
pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants