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

Not full metrics list #273

Open
FightingFox opened this issue Oct 23, 2023 · 1 comment
Open

Not full metrics list #273

FightingFox opened this issue Oct 23, 2023 · 1 comment

Comments

@FightingFox
Copy link

FightingFox commented Oct 23, 2023

Good day.
I use prometheus_fastapi_instrumentator, version 6.0.0.

I create test application:

from prometheus_fastapi_instrumentator import Instrumentator

Instrumentator().instrument(app).expose(app)

# My app

and i see all metrics in Prometheus.

Снимок экрана 2023-10-23 в 17 15 45

But when I use this code in big productive application (with the same structure), I not see some metrics, for example http_requests_total.

Снимок экрана 2023-10-23 в 17 17 13

In test app:

Снимок экрана 2023-10-23 в 17 12 16

In productive app:

Снимок экрана 2023-10-23 в 17 12 31

Prometheus sees both sources:

Снимок экрана 2023-10-23 в 17 18 16

Can you help me?

@FightingFox
Copy link
Author

Ok, probability prometheus_fastapi_instrumentator version 6.0.0 incompatible with FastAPI version 0.80.0. It's working with FastAPI 0.101.1.

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

No branches or pull requests

1 participant