Comments (7)
Are you doing anything that'd make /proc inaccessible?
from client_python.
Not that I’d know of.
They’re run using runit
and inside envconsul
. The latter is the only recent change I can think of. Other than that, it’s regular processes in an LXC container with a distinct user.
Are you saying that /proc
problems are the only possible reason why those metrics might be missing?
from client_python.
With the current implementation, yes. We read from /proc/self/stat.
from client_python.
I've added a
with open("/proc/self/stat", "rb") as f:
print(f.read())¬
block to the app's startup and before calling generate_latest(core.REGISTRY)
and in both cases I get a legit-looking output back.
I suppose it's too late at that point anyway because something goes wrong write registering metrics?
from client_python.
OK it was /proc
but not the self thing (free -m stopped working too). Seems like procfs crashed and I needed to reboot the container.
It may be nice if the docs mentioned this error case? Or a log message a la “could not access XYZ, process metrics won't be collected”?
from client_python.
I don't think we need to document that if kernel is hosed things will break. We don't log as that could get spammy in other circumstances.
from client_python.
OK. Maybe if someone runs into it, they find this ticket. :)
from client_python.
Related Issues (20)
- CustomCollector shows duplicate metrics HOT 1
- https://github.com/prometheus/client_python.git HOT 1
- Use of `MmapedDict` results in fd leaks (resource leaks) HOT 1
- installed package name doesnt match
- Using None as a label value breaks exposure of all metrics
- UTF-8: Implement support in Python client library
- Empty /metrics body using multiprocessing on FastAPI HOT 1
- ASGI mounted to FastAPI mounts metrics to `/metrics/` instead of `/metrics` HOT 6
- Gauge 'track_inprogress' function not working HOT 2
- Network scanners report issues because all HTTP methods are supported HOT 1
- tests/test_asgi.py failures with python 3.12 HOT 2
- real reference for API HOT 3
- Histogram without label creates histogram_*.db even without data HOT 3
- _count Histogram metrics in multirprocess mode HOT 1
- Exclude PID labels in multiprocess mode HOT 2
- Metric for label set has incorrect name exposed in multiprocess mode
- Timestamp comparison is wrong
- Why is the restriction on name in class MetricWrapperBase to comply with the METRIC-NAME-RE rule?
- Corrupted file error in multiprocessing mode HOT 2
- How to reset the Counter Variable to zero after it is changed to certain value.? HOT 1
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 client_python.