{"action":"created","comment":{"url":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/comments/239347548","pull_request_review_id":182107294,"id":239347548,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTM0NzU0OA==","diff_hunk":"@@ -0,0 +1,328 @@\n+# Prometheus Time Series Database migration\n+This article provides a set of guidelines to migrate the time series database (TSDB from now on) from an existing Prometheus deployment to the Bitnami Kubernetes Production Runtime one.\n+\n+## Prerequisites\n+The following prerequisites should be met before starting with the migration process:\n+\n+* You ave a healthy Kubernetes cluster running.\n+* You have a Prometheus deployment that *matches the BKPR Prometheus version*, which can be obtained [here](https://github.com/bitnami/kube-prod-runtime#release-compatibility).\n+\n+This article will not cover the upgrade process of Prometheus itself. If you need to update your Prometheus deployment, check the [Prometheus docs](https://prometheus.io/docs/prometheus/latest/migration/)\n+\n+## Overview\n+\n+This chapter provides an overview of the required steps to migrate the Prometheus TSDB from an already running deployment to the BKPR Prometheus one.\n+\n+This process is meant to provide a zero downtime migration to the new StatefulSet by having two Prometheus instances running at the same time. These instances will be modified to include a sidecar container that will deploy an *rsync* client and server with access to the Prometheus data volume in order to move a Prometheus TSDB snapshot from one pod to another.\n+\n+As Prometheus doesn’t include yet a *flush* method to dump all the WAL file that is being written into a snapshot with a block format that doesn’t overlap time ranges (see [this issue](https://github.com/prometheus/tsdb/issues/346) for more context) it is necessary to sync with the Prometheus TSDB compact times, in order to ensure a minimal data loss (less than 5 minutes).","path":"docs/migration-guides/prometheus-migration.md","position":18,"original_position":18,"commit_id":"2cc1088bc0175b463065212a99db8588a212f2fd","original_commit_id":"2cc1088bc0175b463065212a99db8588a212f2fd","user":{"login":"vikram-bitnami","id":26835013,"node_id":"MDQ6VXNlcjI2ODM1MDEz","avatar_url":"https://avatars0.githubusercontent.com/u/26835013?v=4","gravatar_id":"","url":"https://api.github.com/users/vikram-bitnami","html_url":"https://github.com/vikram-bitnami","followers_url":"https://api.github.com/users/vikram-bitnami/followers","following_url":"https://api.github.com/users/vikram-bitnami/following{/other_user}","gists_url":"https://api.github.com/users/vikram-bitnami/gists{/gist_id}","starred_url":"https://api.github.com/users/vikram-bitnami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikram-bitnami/subscriptions","organizations_url":"https://api.github.com/users/vikram-bitnami/orgs","repos_url":"https://api.github.com/users/vikram-bitnami/repos","events_url":"https://api.github.com/users/vikram-bitnami/events{/privacy}","received_events_url":"https://api.github.com/users/vikram-bitnami/received_events","type":"User","site_admin":false},"body":"minimal data loss of less than 5 min -> would this be acceptable for a production cluster? If not, should we add a warning of some sort?","created_at":"2018-12-06T07:14:21Z","updated_at":"2018-12-06T07:14:21Z","html_url":"https://github.com/bitnami/kube-prod-runtime/pull/261#discussion_r239347548","pull_request_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/261","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/comments/239347548"},"html":{"href":"https://github.com/bitnami/kube-prod-runtime/pull/261#discussion_r239347548"},"pull_request":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/261"}},"in_reply_to_id":239347198},"pull_request":{"url":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/261","id":236159621,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MTU5NjIx","html_url":"https://github.com/bitnami/kube-prod-runtime/pull/261","diff_url":"https://github.com/bitnami/kube-prod-runtime/pull/261.diff","patch_url":"https://github.com/bitnami/kube-prod-runtime/pull/261.patch","issue_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues/261","number":261,"state":"open","locked":false,"title":"WIP: Add Prometheus migration guide","user":{"login":"dbarranco","id":9199512,"node_id":"MDQ6VXNlcjkxOTk1MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/9199512?v=4","gravatar_id":"","url":"https://api.github.com/users/dbarranco","html_url":"https://github.com/dbarranco","followers_url":"https://api.github.com/users/dbarranco/followers","following_url":"https://api.github.com/users/dbarranco/following{/other_user}","gists_url":"https://api.github.com/users/dbarranco/gists{/gist_id}","starred_url":"https://api.github.com/users/dbarranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbarranco/subscriptions","organizations_url":"https://api.github.com/users/dbarranco/orgs","repos_url":"https://api.github.com/users/dbarranco/repos","events_url":"https://api.github.com/users/dbarranco/events{/privacy}","received_events_url":"https://api.github.com/users/dbarranco/received_events","type":"User","site_admin":false},"body":"WiP, pending to be filled.","created_at":"2018-12-05T12:40:45Z","updated_at":"2018-12-06T07:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c1ccb0cc09a168fe0f01bae501803cf85e289d3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jjo","id":88727,"node_id":"MDQ6VXNlcjg4NzI3","avatar_url":"https://avatars2.githubusercontent.com/u/88727?v=4","gravatar_id":"","url":"https://api.github.com/users/jjo","html_url":"https://github.com/jjo","followers_url":"https://api.github.com/users/jjo/followers","following_url":"https://api.github.com/users/jjo/following{/other_user}","gists_url":"https://api.github.com/users/jjo/gists{/gist_id}","starred_url":"https://api.github.com/users/jjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjo/subscriptions","organizations_url":"https://api.github.com/users/jjo/orgs","repos_url":"https://api.github.com/users/jjo/repos","events_url":"https://api.github.com/users/jjo/events{/privacy}","received_events_url":"https://api.github.com/users/jjo/received_events","type":"User","site_admin":false},{"login":"jbianquetti-nami","id":22960194,"node_id":"MDQ6VXNlcjIyOTYwMTk0","avatar_url":"https://avatars2.githubusercontent.com/u/22960194?v=4","gravatar_id":"","url":"https://api.github.com/users/jbianquetti-nami","html_url":"https://github.com/jbianquetti-nami","followers_url":"https://api.github.com/users/jbianquetti-nami/followers","following_url":"https://api.github.com/users/jbianquetti-nami/following{/other_user}","gists_url":"https://api.github.com/users/jbianquetti-nami/gists{/gist_id}","starred_url":"https://api.github.com/users/jbianquetti-nami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbianquetti-nami/subscriptions","organizations_url":"https://api.github.com/users/jbianquetti-nami/orgs","repos_url":"https://api.github.com/users/jbianquetti-nami/repos","events_url":"https://api.github.com/users/jbianquetti-nami/events{/privacy}","received_events_url":"https://api.github.com/users/jbianquetti-nami/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/261/commits","review_comments_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/261/comments","review_comment_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues/261/comments","statuses_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/statuses/2cc1088bc0175b463065212a99db8588a212f2fd","head":{"label":"bitnami:promDocs","ref":"promDocs","sha":"2cc1088bc0175b463065212a99db8588a212f2fd","user":{"login":"bitnami","id":5446553,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NDY1NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5446553?v=4","gravatar_id":"","url":"https://api.github.com/users/bitnami","html_url":"https://github.com/bitnami","followers_url":"https://api.github.com/users/bitnami/followers","following_url":"https://api.github.com/users/bitnami/following{/other_user}","gists_url":"https://api.github.com/users/bitnami/gists{/gist_id}","starred_url":"https://api.github.com/users/bitnami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitnami/subscriptions","organizations_url":"https://api.github.com/users/bitnami/orgs","repos_url":"https://api.github.com/users/bitnami/repos","events_url":"https://api.github.com/users/bitnami/events{/privacy}","received_events_url":"https://api.github.com/users/bitnami/received_events","type":"Organization","site_admin":false},"repo":{"id":123506528,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1MDY1Mjg=","name":"kube-prod-runtime","full_name":"bitnami/kube-prod-runtime","private":false,"owner":{"login":"bitnami","id":5446553,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NDY1NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5446553?v=4","gravatar_id":"","url":"https://api.github.com/users/bitnami","html_url":"https://github.com/bitnami","followers_url":"https://api.github.com/users/bitnami/followers","following_url":"https://api.github.com/users/bitnami/following{/other_user}","gists_url":"https://api.github.com/users/bitnami/gists{/gist_id}","starred_url":"https://api.github.com/users/bitnami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitnami/subscriptions","organizations_url":"https://api.github.com/users/bitnami/orgs","repos_url":"https://api.github.com/users/bitnami/repos","events_url":"https://api.github.com/users/bitnami/events{/privacy}","received_events_url":"https://api.github.com/users/bitnami/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bitnami/kube-prod-runtime","description":"A standard runtime environment for Kubernetes","fork":false,"url":"https://api.github.com/repos/bitnami/kube-prod-runtime","forks_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/forks","keys_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/teams","hooks_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/hooks","issue_events_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues/events{/number}","events_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/events","assignees_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/assignees{/user}","branches_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/branches{/branch}","tags_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/tags","blobs_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/statuses/{sha}","languages_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/languages","stargazers_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/stargazers","contributors_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/contributors","subscribers_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/subscribers","subscription_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/subscription","commits_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/contents/{+path}","compare_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/merges","archive_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/downloads","issues_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues{/number}","pulls_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls{/number}","milestones_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/milestones{/number}","notifications_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/labels{/name}","releases_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/releases{/id}","deployments_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/deployments","created_at":"2018-03-01T23:55:06Z","updated_at":"2018-12-05T22:25:16Z","pushed_at":"2018-12-06T05:26:25Z","git_url":"git://github.com/bitnami/kube-prod-runtime.git","ssh_url":"git@github.com:bitnami/kube-prod-runtime.git","clone_url":"https://github.com/bitnami/kube-prod-runtime.git","svn_url":"https://github.com/bitnami/kube-prod-runtime","homepage":"","size":9432,"stargazers_count":49,"watchers_count":49,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":9,"open_issues":34,"watchers":49,"default_branch":"master"}},"base":{"label":"bitnami:master","ref":"master","sha":"512b0bae1f9917936e7ddbe73dc4dac3f49737a4","user":{"login":"bitnami","id":5446553,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NDY1NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5446553?v=4","gravatar_id":"","url":"https://api.github.com/users/bitnami","html_url":"https://github.com/bitnami","followers_url":"https://api.github.com/users/bitnami/followers","following_url":"https://api.github.com/users/bitnami/following{/other_user}","gists_url":"https://api.github.com/users/bitnami/gists{/gist_id}","starred_url":"https://api.github.com/users/bitnami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitnami/subscriptions","organizations_url":"https://api.github.com/users/bitnami/orgs","repos_url":"https://api.github.com/users/bitnami/repos","events_url":"https://api.github.com/users/bitnami/events{/privacy}","received_events_url":"https://api.github.com/users/bitnami/received_events","type":"Organization","site_admin":false},"repo":{"id":123506528,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1MDY1Mjg=","name":"kube-prod-runtime","full_name":"bitnami/kube-prod-runtime","private":false,"owner":{"login":"bitnami","id":5446553,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NDY1NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5446553?v=4","gravatar_id":"","url":"https://api.github.com/users/bitnami","html_url":"https://github.com/bitnami","followers_url":"https://api.github.com/users/bitnami/followers","following_url":"https://api.github.com/users/bitnami/following{/other_user}","gists_url":"https://api.github.com/users/bitnami/gists{/gist_id}","starred_url":"https://api.github.com/users/bitnami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitnami/subscriptions","organizations_url":"https://api.github.com/users/bitnami/orgs","repos_url":"https://api.github.com/users/bitnami/repos","events_url":"https://api.github.com/users/bitnami/events{/privacy}","received_events_url":"https://api.github.com/users/bitnami/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bitnami/kube-prod-runtime","description":"A standard runtime environment for Kubernetes","fork":false,"url":"https://api.github.com/repos/bitnami/kube-prod-runtime","forks_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/forks","keys_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/teams","hooks_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/hooks","issue_events_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues/events{/number}","events_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/events","assignees_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/assignees{/user}","branches_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/branches{/branch}","tags_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/tags","blobs_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/statuses/{sha}","languages_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/languages","stargazers_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/stargazers","contributors_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/contributors","subscribers_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/subscribers","subscription_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/subscription","commits_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/contents/{+path}","compare_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/merges","archive_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/downloads","issues_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues{/number}","pulls_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls{/number}","milestones_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/milestones{/number}","notifications_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/labels{/name}","releases_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/releases{/id}","deployments_url":"https://api.github.com/repos/bitnami/kube-prod-runtime/deployments","created_at":"2018-03-01T23:55:06Z","updated_at":"2018-12-05T22:25:16Z","pushed_at":"2018-12-06T05:26:25Z","git_url":"git://github.com/bitnami/kube-prod-runtime.git","ssh_url":"git@github.com:bitnami/kube-prod-runtime.git","clone_url":"https://github.com/bitnami/kube-prod-runtime.git","svn_url":"https://github.com/bitnami/kube-prod-runtime","homepage":"","size":9432,"stargazers_count":49,"watchers_count":49,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":9,"open_issues":34,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/261"},"html":{"href":"https://github.com/bitnami/kube-prod-runtime/pull/261"},"issue":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues/261"},"comments":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/bitnami/kube-prod-runtime/statuses/2cc1088bc0175b463065212a99db8588a212f2fd"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"vikram-bitnami"}}