Comments (7)
- Does the same expression work through the web expression browser interface?
- Can you provide a prototype expression that you used in the report including a prototype of the type of metrics against which you want to execute it?
- Which revision of the server did you run this against?
from prometheus.
- Yes, and it works fine if I serialize or stagger my GETs, too.
- http://xen-10-20-2-96.int.s-cloud.net:9090/api/query?expr=AVG%28indexer_poke_duration_nanoseconds%7Bstage%3D%22overall%22%7D%29&json=JSON
- adeabca
from prometheus.
In an IM, Matt writes:
For long-standing queries, you probably want to add a rule to the rules file.
We're still in exploratory mode, but I'll definitely do this long-term. The context here is getting instantaneous values for the purposes of alerting. A "rule" is a precomputed expression? (Where does the "rule" terminology come from?)
A side-question I was going to raise later is: how do I construct an expression to get a scalar value (say average) over a certain time window? "Windowing" is exposed in the Graph UI as Range, but not in the expression grammar or query API as far as I could tell.
from prometheus.
Right, this is a known caveat still and I just didn't think anyone would hit it that early on in the experimental phase:
https://github.com/prometheus/prometheus/blob/master/rules/load.go#L25
I'll prioritize this.
from prometheus.
I just didn't think anyone would hit it that early on in the experimental phase:
:D
from prometheus.
Yeah, quite impressive, since the parsing time should be so negligibly small compared to the rest of the expression evaluation that it should be quite hard to trigger this condition under normal circumstances. In fact, I haven't managed to recreate it yet with 4 parallel curls, but they are probably just too slow. I think I'll just wrap the entire parser in a lock, since goyacc/golex don't give me much better options :-/
from prometheus.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from prometheus.
Related Issues (20)
- WebUI: Display scrapeConfigFiles content on the configuration page HOT 2
- Directory name Error "Prmetheus" instead of Prometheus in Docker Image HOT 3
- Add relabeling action that drops sample if any label matches pattern HOT 1
- Questions about custom labels for alerts HOT 1
- problem with reading data from iot-device by prometheus-endpoint
- Case insensitive FastRegexMatcher doesn't check all folds HOT 7
- PromQL, binary operators for range vectors HOT 4
- Report the use of components with vulnerabilities in prometheus HOT 1
- Histogram reuse bug in query evaluation HOT 4
- allow to specify label sets for which `keep_firing_for` applies
- an alternative to `keep_firing_for` that takes the `up`ness of metrics/targets into account
- remote write lose sample when target is unavailable
- Prometheus v2.52.0 raises "Error on ingesting samples with different value but same timestamp" for kube-state-metrics HOT 18
- Export a metric for WAL size on disk HOT 2
- Request to validate the Hashmod config HOT 1
- metric with empty label value will add a new metric record HOT 4
- CVE-2023-31484 and CVE-2023-50387 HOT 1
- PromQL(histograms): Make more use of Kahan summation for native histograms
- Visualizing tarjets "not happy" if you have more than 20 jobs defined HOT 2
- Emit a warning when `sort` is used for range queries
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.