influxdata / influxdata/influxdb

Handle ReadHints pushed down by prometheus remote read

Open
#17,641 1 comment 0 reactions 1 assignee View on GitHub

@dgnorton is already working on this.

Since Apr 13, 2020.

1.x kind/enhancement
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Proposal:__
Make use of pushed-down ReadHints to speed up prometheus remote read query

__Current behavior:__
InfluxDB 1.x has support for prometheus remote read/write, but historically to avoid dependency it copied protobuf definition(from https://github.com/influxdata/influxdb/pull/8784).
The remote-read pb message contains label matcher and time range and that is used to filter influxdb points. But the current prometheus version has added more fields to the pb message, including ReadHints. The read hints may be used by remote storage to do more filtering and return less data.
Also the new-added streamed response type can mitigate memory usage-for now it needs to hold the whole result set in memory.

__Desired behavior:__
InfluxDB may make use of the ReadHint and handles prometheus query locally.

__Alternatives considered:__
n/a

__Use case:__

For users who use InfluxDB as prometheus remote storage, the pushed-down hints will avoid large data transformation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.