Skip to content

Use Prometheus 2.0 #555

@jml

Description

@jml

We want to start depending on the Prometheus 2.0 code base. There are a bunch of reasons:

  • we want to better able to contribute stuff back upstream
  • we want the latest & greatest features
    • new rules format
    • better staleness handling

The main sticking point is that Cortex's storage is pretty intimately tied with Prometheus 1.0's storage system (@tomwilkie, @juliusv, please correct me if I'm wrong), and Prometheus 2.0 completely changes this.

The protobufs all look stable. A bunch of internal Go interfaces have also changed (Querier, SeriesIterator, etc.).

I think a sensible approach would be to:

  • fork Prometheus 1.0's storage package
  • use that within Cortex
  • switch everything else to use Prometheus 2.0

I expect that there will be many changes that are connected (the new query engine seems bound up with the new storage system, and I haven't explored what needs to happen there), but guess that the above is a broadly OK strategy.

Thoughts?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions