https://github.com/woodprogrammer/openmetricmigrator
This tool allows you to migrate TSDB between instances
https://github.com/woodprogrammer/openmetricmigrator
Last synced: about 1 year ago
JSON representation
This tool allows you to migrate TSDB between instances
- Host: GitHub
- URL: https://github.com/woodprogrammer/openmetricmigrator
- Owner: WoodProgrammer
- Created: 2025-03-09T02:58:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-10T05:05:10.000Z (about 1 year ago)
- Last Synced: 2025-03-10T05:28:29.972Z (about 1 year ago)
- Language: Go
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Open Metric Converter Prometheus
OpenMetricMigrator is a tool designed to migrate and transform OpenMetrics data efficiently. It simplifies the process of converting metric formats and moving data between monitoring systems.
## Features
- Convert OpenMetrics data to various formats
- Seamlessly migrate metrics between monitoring platforms
- Easy configuration with minimal setup
- High performance and scalable
## Installation
To install OpenMetricMigrator, clone the repository and build the project:
```sh
# Clone the repository
git clone https://github.com/WoodProgrammer/OpenMetricMigrator.git
cd OpenMetricMigrator
go build -o opm .
mv opm /usr/local/bin
```
Alternatively, you can install it using Go:
```sh
go install github.com/WoodProgrammer/OpenMetricMigrator@latest
```
## Usage
Run the tool with the required options:
```sh
./openmetricmigrator --input input-file.prom --output output-file.prom --targetdir target-dir
```
### Available Flags
```sh
CLI tool to export Prometheus data in OpenMetrics format
Usage:
openmetricmigrator [flags]
Flags:
-d, --directory string Data directory to export (default "data")
-e, --end string End timestamp (epoch) (default "0")
-h, --help help for openmetricmigrator
-H, --host string Prometheus host (default "localhost")
-m, --metrictype string Type of metrics like counter|gauge (default "counter")
-P, --port string Prometheus port (default "9090")
-q, --query string PromQL query
-s, --start string Start timestamp (epoch) (default "0")
-t, --step string Query step (default "15s")
-T, --targetdir string Target prometheus data directory
```
## Example
Convert an OpenMetrics file to a Prometheus-compatible format:
```sh
./openmetricmigrator -H localhost -P 9090 -s 1741484483 -e 1741488083 -q 'up{job="prometheus"}'
```
## Contributing
Contributions are welcome! Feel free to submit issues or pull requests to improve the tool.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contact
For any questions or feedback, feel free to open an issue on GitHub.
## TO DO ;
* Adjustable command args
* Enrich configuration details
* E2E Automated tests for per release