Comments (7)
Working on this, will try to come with a PR.
from thanos.
@KingRebo38 What's the query are you running in Ruler?
We are thinking about detecting the resolution rather than setting up the flag manually.
A ruler instance level flag might not work well if you have other rules which don't need 5m resolution
from thanos.
@yeya24 The Queries are something like this:
rules:
- expr: increase(kong_http_requests_total[14d])
record: kong_http_requests_total:rate:14d
- expr: increase(kong_http_requests_total[30d])
record: kong_http_requests_total:rate:30d
...
and so on
I also think the instance level flag might cause some issues, but for now I would solve it by sharding the ruler instances.
from thanos.
@KingRebo38 you can optimize these rules by reusing data from others.
rules:
- expr: increase(kong_http_requests_total[1d])
record: kong_http_requests_total:rate:1d
- expr: sum_over_time(kong_http_requests_total:rate:1d[14d]) # sum the 1d-rate over 14d
record: kong_http_requests_total:rate:14d
- expr: sum_over_time(kong_http_requests_total:rate:1d[28d]) # sum the 1d-rate over 28d
record: kong_http_requests_total:rate:28d
With this you basically have your own downsampling. As long as they are part of the same rule group, evaluation order is respected.
Edit: Ah, if your raw resolution retention is 7 days it won't work :(
from thanos.
@KingRebo38 does it work if you set max resource resolution to auto
?
from thanos.
@douglascamata If I set it to auto, it defaults to the raw data
from thanos.
You can try then setting --query-range.request-downsampled
on your Query Frontend.
from thanos.
Related Issues (20)
- Thanos queries taking too long HOT 2
- Subject: Thanos Compactor Fails to Delete Downsampling Data, Resulting in Disk Space Overfill HOT 12
- Can't add Thanos stores from other EKS clusters
- sidecar, stores, and query container memory spikes HOT 4
- Query frontend,store: redis config sends "default" instead of username HOT 2
- Website does not have the correct trademark disclaimer
- Store Gateway query minio for index file with illegal characters (backslash) HOT 4
- Compactor:ThanosCompactHasNotRun HOT 1
- Compactor & Store pod has Permission denied for block HOT 1
- Can the Compactor deduplicate data for Prometheus TSDB blocks stored on disk?
- REST API For update Rules HOT 4
- Thanos Compactor Fails to Delete Downsampling Data & Thanos Store failed to block
- Support for /api/v1/targets/metadata HOT 1
- offset table size exceeds 4 bytes & symbol table size exceeds 4 bytes || Thanos Compactor error HOT 1
- Broken dependency on github.com/grpc-ecosystem/go-grpc-middleware HOT 1
- compactor: Irregular compaction and downsampling HOT 4
- go-grpc-prometheus is deprecated
- Compactor: Workload identity stopped working after upgrade to v0.34.0 HOT 2
- frontend, store: query cancel floods logs with error messages related to redis cache context cancel
- Change the reflect package to an unsafe package
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 thanos.