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

Add prometheus exporter env vars #1021

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

pavolloffay
Copy link
Member

Signed-off-by: Pavol Loffay ploffay@redhat.com

Changes

Add prometheus exporter env vars.

Related issues

open-telemetry/opentelemetry-java-instrumentation#385

| Name | Description | Default |
| ----------------------------- | --------------------------------| ---------------------------- |
| OTEL_EXPORTER_PROMETHEUS_HOST | Host of the Prometheus exporter | All addresses: "0.0.0.0" |
| OTEL_EXPORTER_PROMETHEUS_PORT | Port of the Prometheus exporter | 9496 |
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

As 9496 is reserved port in Prometheus as per above links, I think it is a bad idea to use it here by default

Copy link
Member Author

@pavolloffay pavolloffay Sep 27, 2020

Choose a reason for hiding this comment

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

My bad, I made a typo. I wanted to propose 9464 which is assigned to OTel JS exporter (see the link above). We could rename it in the p8s docs that it applies for all OTEL SDKs.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a VERY good idea :)

@pavolloffay
Copy link
Member Author

Once merged I will update https://github.com/prometheus/prometheus/wiki/Default-port-allocations to reflect that the port applies to all OTEL SDKs.

Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

Please rebase

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@pavolloffay
Copy link
Member Author

@bogdandrutu rebased

@bogdandrutu bogdandrutu merged commit f081ad5 into open-telemetry:master Oct 2, 2020
bogdandrutu added a commit to bogdandrutu/opentelemetry-specification that referenced this pull request Oct 6, 2020
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
arminru pushed a commit that referenced this pull request Oct 6, 2020
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
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

5 participants