Comments (6)
It's not so much the grouping or the join that creates these artifacts, but the multiplication. At least I can create the same "noisy" heatmap by multiplying with a 1
literal.
I'm confused why this is happening, as multiplication by 1 should be a no-op (and with the query linked above, it should be guaranteed that an actual 1.0
float arrives in the engine).
from prometheus.
compare (prometheus_http_request_duration_seconds_bucket)
from prometheus.
Fundamentally, I would say there must be a different code path in the PromQL engine for "sum the result of a function call" and "sum the result of a bin-op", but from the top of my head, I cannot imagine how that would happen.
from prometheus.
One possible workaround is to use something like round(_, 0.00001)
. Does this give the same result as the unmultiplied query?
compare:
round(sum by (le) (increase(prometheus_http_request_duration_seconds_bucket[1m]) * 1), 0.00001)
linksum by (le) (increase(prometheus_http_request_duration_seconds_bucket[1m]))
link
from prometheus.
We discussed on the chat-system-that-shall-not-be-named. I guess the most likely reason for this is what @bboreham said there: "At a high level, itβs likely that each new expression changes the order of evaluation, which will give different results since addition is non-commutative."
from prometheus.
Just wanted to highlight #14074, which I think could improve the optics, at some CPU cost.
I didn't understand this issue enough to make a test case.
from prometheus.
Related Issues (20)
- AquaSec metrics in Prometheus HOT 1
- Custom labels are getting lost in scrape_configs. HOT 3
- Attributes ignored when pushing data through OTLP endpoint HOT 4
- Use of plain text remote write username and password in prometheus yaml file HOT 6
- Enable prometheus rules processing in agent mode HOT 4
- upgrade the docker version to avoid vulnerability HOT 1
- Handle OTLP StartTime (similar to OpenMetrics Created timestamp)
- Warning! Detected 437.83 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results. HOT 2
- TSDB: reduce cost of multiple label selectors for the same label name
- {{!!DOWNLOAD}} + Minecraft v1.20.70.20 APK`` 2024 ((LATEST!!) UPDATED FOR IOS & ANDROID!! - PROMETHUES GITHUB
- Prometheus error HOT 1
- [Error] Setup prometheus to scrap from ms instances registered in Eureka SD with random port HOT 5
- How to deal with breakpoint in Prometheus data graph HOT 1
- After adapting Prometheus to IPv6, the file auto-discovery feature becomes invalid. HOT 4
- Crash "panic: runtime error: invalid memory address or nil pointer dereference" HOT 14
- native histograms: Implement the < and > operators to "trim" a histogram. HOT 20
- Prometheus scrape config does not support recognizing IPv6 addresses. HOT 1
- CVE of prometheus/prometheus:v2.54.0 HOT 1
- Flaky TestQuerierShouldNotFailIfOOOCompactionOccursAfterRetrievingQuerier HOT 3
- scrape (histograms): Investigate (and address) protobuf scraping performance problems 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 prometheus.