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)
- Support Unregistering discovery manager metrics HOT 4
- Add default authorization in config.file prometheus.yml HOT 1
- Incorrect sum aggregations with recording rule HOT 2
- Flaky test TestDeletedSamplesAndSeriesStillInWALAfterCheckpoint
- prometheus_target_reload_length_seconds metric is given inconsistent labels HOT 1
- HIGH-Findings in Prometheus LTS-Version 2.45.3 HOT 1
- investigate the necessity of copying a mmap-ed chunk in ChunkDiskMapper
- Add OpenTelemetry to comparison doc HOT 3
- Feature Flag "Created Timestamps Zero Injection" requires enabled "Native Histograms" HOT 8
- Copiable pressed label set buttons in Prometheus Targets UI HOT 1
- Containerized scraping HOT 2
- quay.io lists v2.51.2 but i see no 2.51.2 release (with tarballs) on github HOT 2
- inotify inode leak in file discovery HOT 3
- Need urgent help!!! Want to modify tags "keys" to lowercase dynamically scraping from Cloudwatch-Exporter in Prometheus before sending to Mimir HOT 4
- improve --rules.max-concurrent-evals description. HOT 1
- Out of order exemplars when sending metrics using OpenTelemetry spanmetrics connector
- Some aggregations and functions produce incorrect results for native histograms HOT 4
- docker image does not recognise timezone appropriately HOT 1
- OOM crashloop auto-recovery
- discovery(scaleway): instances without private IPs are not added to the target lists
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.