Comments (4)
I can't speak for the Python library, but at least the Go client library represents floats in a way that exactly the same IEEE-754 representation is created on the server side. The Go client would naturally use protobuf between machines, so one could easily thing the text format is just informational and for humans. The Python client, however, only speaks the text format, so arguably it's made for machines, too.
from client_python.
I see. And if there are machines reading this output - I suppose there are, right? - it cannot be polished.
from client_python.
The current output is a bit eager to use scientific notation, but we need as full precision as we can't predict user use cases (maybe they're measuring something in nanoseconds) and advertise 64bit float support.
Even if there were an output format intended entirely for humans, we'd still display as much precision as we could.
from client_python.
Understood. So this is going to stay as it currently is.
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 3
- 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
- feat: remote_write support HOT 2
- Proposal: Rework metric instantiation to get-or-set from the registry HOT 1
- Provide a way to reset a Counter metric HOT 4
- 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.