Skip to content

promtool: Add ability to "dump" whole blocks #8281

@ArthurSens

Description

@ArthurSens

Proposal

We can dump data from Prometheus with promtool tsdb dump, but unfortunately we can only import it back in OpenMetrics format so we can't re-use this file to import that data into another Prometheus server. The proposal is to add support for creating Prometheus compatible blocks from the same format that we currently dump, so we can move data from different prometheus easily.

Use case. Why is this important?
Where I work, a decision was made in the past that we'd have one Prometheus server for each application/exporter and it's not scaling too well. We'd like to consolidate all that data into a single Prometheus that will now scrape all our metrics endpoints. We want to shut down several Prometheus, but we'd like to keep their data in our new centralized one.

With this proposal, it will be a lot easier to dump and import data from one prometheus instance to another.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions