{"action":"closed","issue":{"url":"https://api.github.com/repos/Jimdo/prometheus_client_php/issues/68","repository_url":"https://api.github.com/repos/Jimdo/prometheus_client_php","labels_url":"https://api.github.com/repos/Jimdo/prometheus_client_php/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/Jimdo/prometheus_client_php/issues/68/comments","events_url":"https://api.github.com/repos/Jimdo/prometheus_client_php/issues/68/events","html_url":"https://github.com/Jimdo/prometheus_client_php/issues/68","id":301156762,"number":68,"title":"Allow setting value of counter metrics","user":{"login":"leedm777","id":133579,"avatar_url":"https://avatars1.githubusercontent.com/u/133579?v=4","gravatar_id":"","url":"https://api.github.com/users/leedm777","html_url":"https://github.com/leedm777","followers_url":"https://api.github.com/users/leedm777/followers","following_url":"https://api.github.com/users/leedm777/following{/other_user}","gists_url":"https://api.github.com/users/leedm777/gists{/gist_id}","starred_url":"https://api.github.com/users/leedm777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leedm777/subscriptions","organizations_url":"https://api.github.com/users/leedm777/orgs","repos_url":"https://api.github.com/users/leedm777/repos","events_url":"https://api.github.com/users/leedm777/events{/privacy}","received_events_url":"https://api.github.com/users/leedm777/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T19:43:24Z","updated_at":"2018-03-19T21:34:09Z","closed_at":"2018-03-19T21:34:09Z","author_association":"NONE","body":"I have the need for counter metrics that are set explicitly, instead of being incremented. I don't have access to the system tracking the metric, I only have whatever the current value is. One good example of this is to provide an `uptime` metric.\r\n\r\n```php\r\n$u = getCurrentUptime();\r\n$uptime = $registry->registerCounter($ns, 'uptime_seconds_total', 'Current uptime in seconds');\r\n$uptime->set($u);\r\n```"}}
{"actor":{"display_login":"bracki"}}