autometrics-dev / autometrics-py

Easily add metrics to your code that actually help you spot and debug issues in production. Built on Prometheus and OpenTelemetry.
https://autometrics.dev
Apache License 2.0
214 stars 7 forks source link

`PROMETHEUS_URL` needs a trailing slash to work properly with examples #11

Closed brettimus closed 1 year ago

brettimus commented 1 year ago

If I do PROMETHEUS_URL=http://localhost:9092 python3 examples/docs-example.py then the urls look like http://localhost:9092graph?g0.ex....

prometheus_url.py should be able to create urls more robustly