{"id":15978423,"url":"https://github.com/xperimental/tsdb-migrate","last_synced_at":"2026-04-26T12:32:15.958Z","repository":{"id":136249539,"uuid":"100832804","full_name":"xperimental/tsdb-migrate","owner":"xperimental","description":"Migrate Prometheus 1.x \"local storage\" to new 2.0 TSDB format.","archived":false,"fork":false,"pushed_at":"2017-10-08T19:07:32.000Z","size":9631,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T18:11:25.639Z","etag":null,"topics":["cli","database","prometheus","tool","tsdb"],"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/xperimental.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":"2017-08-20T02:15:51.000Z","updated_at":"2023-02-15T22:47:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f094ead-f7ff-46c3-adf3-3c7aebec6d3f","html_url":"https://github.com/xperimental/tsdb-migrate","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"7010553dad9e25b3d5f43dccd3a963768d3bba14"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xperimental/tsdb-migrate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xperimental%2Ftsdb-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xperimental%2Ftsdb-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xperimental%2Ftsdb-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xperimental%2Ftsdb-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xperimental","download_url":"https://codeload.github.com/xperimental/tsdb-migrate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xperimental%2Ftsdb-migrate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","database","prometheus","tool","tsdb"],"created_at":"2024-10-07T23:20:27.266Z","updated_at":"2026-04-26T12:32:15.941Z","avatar_url":"https://github.com/xperimental.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsdb-migrate\n\nThis is a command-line tool for offline migration of [Prometheus](https://prometheus.io) 1.x \"local storage\" databases to the new [TSDB](https://github.com/prometheus/tsdb) format of Prometheus 2.0 (which is not released yet).\n\n**Warning:** This is still in the very early stages, so please do not use it for anything important yet!\n\n## Installation\n\nInstall Go and then `go get` the package:\n\n```\ngo get github.com/xperimental/tsdb-migrate\n```\n\nAs this is pre-release software no binaries are provided yet.\n\n## Usage\n\n```\nUsage of tsdb-migrate:\n  -i, --input string         Directory of local storage to convert.\n  -o, --output string        Directory for new TSDB database.\n  -r, --retention duration   Retention time of new database. (default 360h0m0s)\n  -s, --start-time string    Starting time for conversion process. (default \"2016-07-18T14:37:00Z\")\n      --step-time duration   Time slice to use for copying values. (default 24h0m0s)\n```\n\n- The retention time should match the one on the old storage.\n- Long step times (such as the default) probably only work if you do not have a lot of series (still not tested on a large database).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxperimental%2Ftsdb-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxperimental%2Ftsdb-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxperimental%2Ftsdb-migrate/lists"}