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

Prototype "Autometrics Admin Panel" #40

Closed brettimus closed 1 year ago

brettimus commented 1 year ago

WIP - We should first discuss and merge https://github.com/autometrics-dev/autometrics-py/pull/43

See: https://github.com/orgs/autometrics-dev/discussions/23

Try it out Locally (not working - will work again after #43 is merged)

In the parent directory of autometrics-py, clone my python-autometrics-example-fastapi:

# Clone python-autometrics-example-fastapi and check out the `admin-panel` branch
git clone git@github.com:brettimus/python-autometrics-example-fastapi.git
cd python-autometrics-example-fastapi
git checkout admin-panel

# Start the app
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn fastapi-example:app --reload --port=8080

# Then, open http://localhost:8080/autometrics/admin