-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add prometheus exporter env vars #1021
Conversation
| 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 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we use the same port across instrumentations? This port is from the JS SDK.
https://github.com/prometheus/prometheus/wiki/Default-port-allocations
https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-exporter-prometheus
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
Once merged I will update https://github.com/prometheus/prometheus/wiki/Default-port-allocations to reflect that the port applies to all OTEL SDKs. |
There was a problem hiding this 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 <[email protected]>
5d42f68
to
3015c5d
Compare
@bogdandrutu rebased |
Signed-off-by: Bogdan Drutu <[email protected]>
Signed-off-by: Bogdan Drutu <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Bogdan Drutu <[email protected]>
Signed-off-by: Pavol Loffay [email protected]
Changes
Add prometheus exporter env vars.
Related issues
open-telemetry/opentelemetry-java-instrumentation#385