{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/pushgateway/issues/60","labels_url":"https://api.github.com/repos/prometheus/pushgateway/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/pushgateway/issues/60/comments","events_url":"https://api.github.com/repos/prometheus/pushgateway/issues/60/events","html_url":"https://github.com/prometheus/pushgateway/issues/60","id":110514767,"number":60,"title":"Persisting not happen properly.","user":{"login":"bugcy013","id":729259,"avatar_url":"https://avatars.githubusercontent.com/u/729259?v=3","gravatar_id":"","url":"https://api.github.com/users/bugcy013","html_url":"https://github.com/bugcy013","followers_url":"https://api.github.com/users/bugcy013/followers","following_url":"https://api.github.com/users/bugcy013/following{/other_user}","gists_url":"https://api.github.com/users/bugcy013/gists{/gist_id}","starred_url":"https://api.github.com/users/bugcy013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugcy013/subscriptions","organizations_url":"https://api.github.com/users/bugcy013/orgs","repos_url":"https://api.github.com/users/bugcy013/repos","events_url":"https://api.github.com/users/bugcy013/events{/privacy}","received_events_url":"https://api.github.com/users/bugcy013/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-08T18:32:49Z","updated_at":"2015-10-09T12:25:21Z","closed_at":null,"body":"Hi Guys,\r\n\r\nHave tried file based persistence not happen properly. but log says persisting\r\n\r\nINFO[96978] Done checkpointing in-memory metrics and chunks in 278.893052ms.  file=persistence.go line=563\r\nINFO[97278] Checkpointing in-memory metrics and chunks...  file=persistence.go line=539\r\nINFO[97278] Done checkpointing in-memory metrics and chunks in 235.068046ms.  file=persistence.go line=563\r\n\r\nstart command ::\r\n\r\n./pushgateway -persistence.file file -persistence.interval 1m0s\r\n\r\nWhen I open actual web page I can see data.\r\n\r\n\r\nPlease let me know any further details log. etc. \r\n"},"comment":{"url":"https://api.github.com/repos/prometheus/pushgateway/issues/comments/146849812","html_url":"https://github.com/prometheus/pushgateway/issues/60#issuecomment-146849812","issue_url":"https://api.github.com/repos/prometheus/pushgateway/issues/60","id":146849812,"user":{"login":"juliusv","id":538008,"avatar_url":"https://avatars.githubusercontent.com/u/538008?v=3","gravatar_id":"","url":"https://api.github.com/users/juliusv","html_url":"https://github.com/juliusv","followers_url":"https://api.github.com/users/juliusv/followers","following_url":"https://api.github.com/users/juliusv/following{/other_user}","gists_url":"https://api.github.com/users/juliusv/gists{/gist_id}","starred_url":"https://api.github.com/users/juliusv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliusv/subscriptions","organizations_url":"https://api.github.com/users/juliusv/orgs","repos_url":"https://api.github.com/users/juliusv/repos","events_url":"https://api.github.com/users/juliusv/events{/privacy}","received_events_url":"https://api.github.com/users/juliusv/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T12:25:20Z","updated_at":"2015-10-09T12:25:20Z","body":"That looks like the data is written to the persistence file correctly.\r\n\r\nWhen you are shutting down the pushgateway and starting it up again, you are certain that you are starting it with the same persistence file flag again?\r\n\r\nNo, metrics should not disappear from the /metrics or status page once they are persisted. The persistence is only there so that you can restart the pushgateway and still retain metrics state across restarts."}}