Skip to content

Extend Prometheus storage interface to do multiple queries in parallel, and use that to dedupe index lookups. #967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tomwilkie opened this issue Aug 29, 2018 · 0 comments

Comments

@tomwilkie
Copy link
Contributor

tomwilkie commented Aug 29, 2018

We could notice when we're doing overlapping queries (for instance, fetching all chunk ids for a metric vs some subset) and do the filtering client side (ie

(count(max(node_cpu{job="monitoring/prom-node-exporter"}) by (cpu, node)) by (node) - sum(irate(node_cpu{job="monitoring/prom-node-exporter",mode="idle"}[1m])) by (node)) 

    / 

count(max(node_cpu{job="monitoring/prom-node-exporter"}) by (cpu, node)) by (node) * 100

fetches node_cpu{job="monitoring/prom-node-exporter"} and node_cpu{job="monitoring/prom-node-exporter",mode="idle"}, the later could be filtered client side)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant