Dump a time range data from Prometheus and load to another Prometheus for query.
+------------------+ write +---------------+ dump +-----------+
| User Prometheus | -------> | Write Storage | ------> | Dump Data |
+------------------+ +---------------+ +-----------+
|
|
|
|
+------------------+ read +---------------+ load |
| Local Prometheus | -------> | Read Storage | <---------+
+------------------+ +---------------+
- Add the following configurtion to the Prometheus server
remote_write:
- url: "http://localhost:1234/write"
- Start write server.
- To dump data, run
curl http://localhost:1234/dump
- Add the following configuration to another Prometheus server
remote_read:
- url: "http://localhost:1235/read"
- Start read server with the dump data
- Access the Prometheus web for query
- Support porting TiDB metrics and showing them on Grafana.