Comments (3)
@rajeshdhanda I'm experiencing the same issue. It seems that the issue is known. Check out the comment in main.py:
# Starlette will call app.build_middleware_stack() with every new middleware
# added, which will call all this again, which will make the registry
# complain about duplicated metrics.
#
# The Python Prometheus client currently doesn't seem to have a way to
# verify if adding a metric will cause errors or not, so the only way to
# handle it seems to be with this try block.
If I'm reading this right, then it looks like each middleware will call to add each metric. Adding the first instance of the metrics should be fine. The subsequent calls from each middleware should raise an exception, but I think that exception is not happening in our case. Will continue to dig.
from prometheus-fastapi-instrumentator.
Hi guys, I also have a question about the http_requests_total. As i understanding, this metric is a counter and the value should always increase, but when i execute query http_requests_total in prometheus dashboard, the graph is like below:
Is the graph normal or not? For my perception the line should always have an increasing trend instead of decreasing.
from prometheus-fastapi-instrumentator.
Hi folks, does someone have solution for this? I'm observing the same issue
from prometheus-fastapi-instrumentator.
Related Issues (20)
- Not full metrics list HOT 1
- FastAPI app with many routers HOT 3
- Instrumentator middleware includes BackgroundTask duration in http request latency metrics HOT 2
- How to properly initialize modified_status when throwing exception
- Default metrics are gone when adding a custom instrumentation HOT 3
- Allow for custom dynamic labels on default metrics HOT 1
- Remove FastAPI in favor of Starlette HOT 3
- Upgrade fastapi version to support >100.0 HOT 5
- Metrics disappear when setting PROMETHEUS_MULTIPROC_DIR HOT 2
- Security Concern HOT 3
- Inprogress metrics ignore namespace and subsystem
- Setting the `PROMETHEUS_MULTIPROC_DIR` is not mentioned in the docs
- Instrument latency without streaming duration HOT 1
- FastAPI ^0.110 and on_event HOT 3
- trio / anyio support
- [TypeError("'ObjectId' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')] HOT 1
- Any reason why the very similar function `reset_prometheus` is copy&pasted multiple times in your tests? HOT 1
- What are untemplated routes/requests?
- Inheritance in metric_namespace and metric_subsystem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-fastapi-instrumentator.