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

Exporting metrics on a default port + path? #20

Open
emschwartz opened this issue May 1, 2023 · 0 comments
Open

Exporting metrics on a default port + path? #20

emschwartz opened this issue May 1, 2023 · 0 comments
Labels
question Further information is requested

Comments

@emschwartz
Copy link
Contributor

Discussed in https://github.com/orgs/autometrics-dev/discussions/7

Originally posted by emschwartz March 7, 2023
Should autometrics libraries automatically or optionally start a server that exports metrics on a default port + path?

Prometheus and OpenTelemetry libraries in different languages seem to have a mixed view on this. Some expect you to add the listener yourself while others do it automatically.

Standardizing this across languages would help reduce the configuration needed for any additional tooling we build around autometrics. For example, we could ship a default Prometheus config and/or config files for hosted Prometheus services like Fly.io's.

That said, we might want to make this optional (though not sure if it's opt-in or opt-out). I personally find it surprising that a library I import would open an listener on a port without my explicitly telling it to.

Unfortunately, if we do this, this is another place where OpenTelemetry, OpenMetrics, and Prometheus diverge 🤦.

@emschwartz emschwartz added the question Further information is requested label May 1, 2023
@emschwartz emschwartz transferred this issue from autometrics-dev/.github May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant