Comments (3)
That's intended behavior. We do support days, weeks, and years (which stdlib time
does not) but only support a single unit argument. This is not likely to change.
from common.
That issue comes from a code working with Prometheus configuration file parsing and rendering, but not a part of Prometheus itself. We pass string
s across API boundaries, not time.Duration
, and both client (which uses time.Duration
internally) and server (which uses model.Duration
) should play nicely with each other. Will you accept a change if it is strictly backward-compatible with current implementation?
from common.
I believe we're all consistent in this these days, and as Fabian says it's not planned to extend this syntax.
from common.
Related Issues (20)
- Support environment variable for log level and format
- New release? HOT 3
- Implement changes needed to support UTF-8 metric and label names in Prometheus
- OAuth 2 client_secret should be optional
- LabelSet.String sorts incorrectly HOT 2
- Authorization credentials should be optional
- Update expfmt/text_parse.go to support the new UTF-8 syntax HOT 14
- SigV4 panics on GET requests / requests with nil body
- web: Support jwt/bearer token auth
- Breaking change in 0.48.0 HOT 10
- Version bump in prometheus/common breaks client_golang build HOT 3
- Prometheus failing to reload Probe TLS cert and key from disk HOT 2
- Prevent incompatibility issues between common and dependent repositories HOT 5
- OpenMetrics: _total suffix repeated multiple times HOT 7
- "error encoding and sending metric family" on HTTP/2 HEAD request
- Can client.key be removed as its giving security blocker in security scan? HOT 1
- Support for: INFO type
- Support for configuring ciphersuites in tls_config
- `FmtText` was removed between v0.42.0 and v0.53.0 HOT 1
- Consolidate content type and content encoding functions in prometheus/common HOT 9
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 common.