Skip to content

Conversation

@gpkc
Copy link

@gpkc gpkc commented Dec 5, 2024

According to the README for the example:

Minimal example that shows usage of Prometheus client library and Prometheus FastAPI Instrumentator with FastAPI and Uvicorn where the /metrics endpoint is exposed on another port and not on the FastAPI app itself.

This suggests that the metrics should NOT be exposed in the app itself for this example. However, calling expose(app) will do exactly that. So we can just remove that call.

@gpkc gpkc changed the title Remove expose(app) from metrics-diff-port-uvicorn example docs: Remove expose(app) from metrics-diff-port-uvicorn example Dec 5, 2024
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.

1 participant