{"id":26823812,"url":"https://github.com/woodprogrammer/openmetricmigrator","last_synced_at":"2025-03-30T09:16:51.470Z","repository":{"id":281592210,"uuid":"945266272","full_name":"WoodProgrammer/OpenMetricMigrator","owner":"WoodProgrammer","description":"This tool allows you to migrate TSDB between instances","archived":false,"fork":false,"pushed_at":"2025-03-10T05:05:10.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T05:28:29.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WoodProgrammer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-09T02:58:58.000Z","updated_at":"2025-03-10T04:42:09.000Z","dependencies_parsed_at":"2025-03-10T20:01:44.119Z","dependency_job_id":null,"html_url":"https://github.com/WoodProgrammer/OpenMetricMigrator","commit_stats":null,"previous_names":["woodprogrammer/openmetricmigrator"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoodProgrammer%2FOpenMetricMigrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoodProgrammer%2FOpenMetricMigrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoodProgrammer%2FOpenMetricMigrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoodProgrammer%2FOpenMetricMigrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WoodProgrammer","download_url":"https://codeload.github.com/WoodProgrammer/OpenMetricMigrator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246296579,"owners_count":20754635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-30T09:16:50.947Z","updated_at":"2025-03-30T09:16:51.463Z","avatar_url":"https://github.com/WoodProgrammer.png","language":"Go","readme":"\u003cdiv\u003e\u003cimg src=\"docs/img/image.png\" width=\"100\"/\u003e\u003ch1\u003eOpen Metric Converter Prometheus\u003c/h1\u003e\u003c/div\u003e\n\nOpenMetricMigrator 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.\n\n## Features\n\n- Convert OpenMetrics data to various formats\n- Seamlessly migrate metrics between monitoring platforms\n- Easy configuration with minimal setup\n- High performance and scalable\n\n## Installation\n\nTo install OpenMetricMigrator, clone the repository and build the project:\n\n```sh\n# Clone the repository\ngit clone https://github.com/WoodProgrammer/OpenMetricMigrator.git\ncd OpenMetricMigrator\n\ngo build -o opm .\n\nmv opm /usr/local/bin\n```\n\nAlternatively, you can install it using Go:\n\n```sh\ngo install github.com/WoodProgrammer/OpenMetricMigrator@latest\n```\n\n## Usage\n\nRun the tool with the required options:\n\n```sh\n./openmetricmigrator --input input-file.prom --output output-file.prom --targetdir target-dir\n```\n\n### Available Flags\n\n\n```sh\n\nCLI tool to export Prometheus data in OpenMetrics format\n\nUsage:\n  openmetricmigrator [flags]\n\nFlags:\n  -d, --directory string    Data directory to export (default \"data\")\n  -e, --end string          End timestamp (epoch) (default \"0\")\n  -h, --help                help for openmetricmigrator\n  -H, --host string         Prometheus host (default \"localhost\")\n  -m, --metrictype string   Type of metrics like counter|gauge (default \"counter\")\n  -P, --port string         Prometheus port (default \"9090\")\n  -q, --query string        PromQL query\n  -s, --start string        Start timestamp (epoch) (default \"0\")\n  -t, --step string         Query step (default \"15s\")\n  -T, --targetdir string    Target prometheus data directory\n\n```\n\n## Example\n\nConvert an OpenMetrics file to a Prometheus-compatible format:\n\n```sh\n./openmetricmigrator -H localhost -P 9090 -s 1741484483 -e 1741488083 -q 'up{job=\"prometheus\"}'\n```\n\n## Contributing\n\nContributions are welcome! Feel free to submit issues or pull requests to improve the tool.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any questions or feedback, feel free to open an issue on GitHub.\n\n## TO DO ;\n\n* Adjustable command args\n* Enrich configuration details\n* E2E Automated tests for per release\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodprogrammer%2Fopenmetricmigrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoodprogrammer%2Fopenmetricmigrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodprogrammer%2Fopenmetricmigrator/lists"}