{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/pushgateway/issues/19","repository_url":"https://api.github.com/repos/prometheus/pushgateway","labels_url":"https://api.github.com/repos/prometheus/pushgateway/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/pushgateway/issues/19/comments","events_url":"https://api.github.com/repos/prometheus/pushgateway/issues/19/events","html_url":"https://github.com/prometheus/pushgateway/issues/19","id":56372414,"node_id":"MDU6SXNzdWU1NjM3MjQxNA==","number":19,"title":"Allow timeout for metrics","user":{"login":"matthiasr","id":131590,"node_id":"MDQ6VXNlcjEzMTU5MA==","avatar_url":"https://avatars1.githubusercontent.com/u/131590?v=4","gravatar_id":"","url":"https://api.github.com/users/matthiasr","html_url":"https://github.com/matthiasr","followers_url":"https://api.github.com/users/matthiasr/followers","following_url":"https://api.github.com/users/matthiasr/following{/other_user}","gists_url":"https://api.github.com/users/matthiasr/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasr/subscriptions","organizations_url":"https://api.github.com/users/matthiasr/orgs","repos_url":"https://api.github.com/users/matthiasr/repos","events_url":"https://api.github.com/users/matthiasr/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasr/received_events","type":"User","site_admin":false},"labels":[{"id":214808838,"node_id":"MDU6TGFiZWwyMTQ4MDg4Mzg=","url":"https://api.github.com/repos/prometheus/pushgateway/labels/feature%20request","name":"feature request","color":"009800","default":false},{"id":77611127,"node_id":"MDU6TGFiZWw3NzYxMTEyNw==","url":"https://api.github.com/repos/prometheus/pushgateway/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":{"login":"beorn7","id":5609886,"node_id":"MDQ6VXNlcjU2MDk4ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/5609886?v=4","gravatar_id":"","url":"https://api.github.com/users/beorn7","html_url":"https://github.com/beorn7","followers_url":"https://api.github.com/users/beorn7/followers","following_url":"https://api.github.com/users/beorn7/following{/other_user}","gists_url":"https://api.github.com/users/beorn7/gists{/gist_id}","starred_url":"https://api.github.com/users/beorn7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorn7/subscriptions","organizations_url":"https://api.github.com/users/beorn7/orgs","repos_url":"https://api.github.com/users/beorn7/repos","events_url":"https://api.github.com/users/beorn7/events{/privacy}","received_events_url":"https://api.github.com/users/beorn7/received_events","type":"User","site_admin":false},"assignees":[{"login":"beorn7","id":5609886,"node_id":"MDQ6VXNlcjU2MDk4ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/5609886?v=4","gravatar_id":"","url":"https://api.github.com/users/beorn7","html_url":"https://github.com/beorn7","followers_url":"https://api.github.com/users/beorn7/followers","following_url":"https://api.github.com/users/beorn7/following{/other_user}","gists_url":"https://api.github.com/users/beorn7/gists{/gist_id}","starred_url":"https://api.github.com/users/beorn7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorn7/subscriptions","organizations_url":"https://api.github.com/users/beorn7/orgs","repos_url":"https://api.github.com/users/beorn7/repos","events_url":"https://api.github.com/users/beorn7/events{/privacy}","received_events_url":"https://api.github.com/users/beorn7/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2015-02-03T12:40:23Z","updated_at":"2018-10-02T09:31:42Z","closed_at":"2016-06-13T12:24:12Z","author_association":"NONE","body":"In some scenarios, a client will stop pushing metrics because it has gone away. Currently every node needs to be deleted explicitly or the last value will stick around forever. It would be good to be able to configure a timeout after which a metric is considered stale and removed. I think it would be best if the client could specify this.\n"},"comment":{"url":"https://api.github.com/repos/prometheus/pushgateway/issues/comments/426209846","html_url":"https://github.com/prometheus/pushgateway/issues/19#issuecomment-426209846","issue_url":"https://api.github.com/repos/prometheus/pushgateway/issues/19","id":426209846,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjIwOTg0Ng==","user":{"login":"fvigotti","id":1241975,"node_id":"MDQ6VXNlcjEyNDE5NzU=","avatar_url":"https://avatars3.githubusercontent.com/u/1241975?v=4","gravatar_id":"","url":"https://api.github.com/users/fvigotti","html_url":"https://github.com/fvigotti","followers_url":"https://api.github.com/users/fvigotti/followers","following_url":"https://api.github.com/users/fvigotti/following{/other_user}","gists_url":"https://api.github.com/users/fvigotti/gists{/gist_id}","starred_url":"https://api.github.com/users/fvigotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvigotti/subscriptions","organizations_url":"https://api.github.com/users/fvigotti/orgs","repos_url":"https://api.github.com/users/fvigotti/repos","events_url":"https://api.github.com/users/fvigotti/events{/privacy}","received_events_url":"https://api.github.com/users/fvigotti/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T09:31:42Z","updated_at":"2018-10-02T09:31:42Z","author_association":"NONE","body":"@juliusv yes the statefulset ie: mysql, jenkins, etc export their metrics using standard patterns as being long running services, but the job in preDestroy( which trigger snapshot-backup + some checks , then push the metrics about the backup/destroy process, and the statefulset which yeah is long running but it's going to close..so I can't wait the next prometheus scrape interval.. ) , or some sidecar pod with a bash script that performs backups, different/custom healthcheks those are better exported using PGW with a simple curl without having to integrate node exporter textfiles or web services in every sidecar , \r\n\r\nI'm saing that not because I'm looking for advices on how I setup metrics ( even if advices are always welcome :) ) , but to show you how I use the PGW and why I'm also interested in TTL, to me seems that the design that you have in mind for the PGW is a very limited use case and you don't want to extend it to not create possible anti-patterns that's also way I'm telling you my use case to let you decide if mine is an anti-pattern or not.. \r\nI use tens of software I'm not subscribed to all those mailing lists ,  I found a discussion about TTL and I've contributed If I find some time I'll partecipate to the mailing list or if you want you can reference this thread, I've found already my *inelegant* solution ( published in the gist ) but wanted to give my 2cents advice.. "}}
{"actor":{"display_login":"fvigotti"}}