{"action":"created","issue":{"url":"https://api.github.com/repos/promregator/promregator/issues/52","repository_url":"https://api.github.com/repos/promregator/promregator","labels_url":"https://api.github.com/repos/promregator/promregator/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/promregator/promregator/issues/52/comments","events_url":"https://api.github.com/repos/promregator/promregator/issues/52/events","html_url":"https://github.com/promregator/promregator/issues/52","id":320263805,"number":52,"title":"Single Target Scraping mode causes sample collision on promregator_scrape_duration_seconds","user":{"login":"eaglerainbow","id":12811079,"avatar_url":"https://avatars2.githubusercontent.com/u/12811079?v=4","gravatar_id":"","url":"https://api.github.com/users/eaglerainbow","html_url":"https://github.com/eaglerainbow","followers_url":"https://api.github.com/users/eaglerainbow/followers","following_url":"https://api.github.com/users/eaglerainbow/following{/other_user}","gists_url":"https://api.github.com/users/eaglerainbow/gists{/gist_id}","starred_url":"https://api.github.com/users/eaglerainbow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaglerainbow/subscriptions","organizations_url":"https://api.github.com/users/eaglerainbow/orgs","repos_url":"https://api.github.com/users/eaglerainbow/repos","events_url":"https://api.github.com/users/eaglerainbow/events{/privacy}","received_events_url":"https://api.github.com/users/eaglerainbow/received_events","type":"User","site_admin":false},"labels":[{"id":854703495,"url":"https://api.github.com/repos/promregator/promregator/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":854757237,"url":"https://api.github.com/repos/promregator/promregator/labels/documentation","name":"documentation","color":"f475bd","default":false},{"id":921684675,"url":"https://api.github.com/repos/promregator/promregator/labels/quality%20coverage","name":"quality coverage","color":"db4c53","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-04T12:53:20Z","updated_at":"2018-05-04T13:29:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Environment\r\nRun promregator with at least two apps using the Single Target Scraping mode with Prometheus default configuration. \r\n\r\nReproducible with 0.3.1.\r\n\r\n## Summary / Problem Statement\r\nPrometheus raises an `Error on ingesting out-of-order samples` with `num_dropped=1` on each single target.\r\n\r\n## Observed Behavior\r\n`/singleTargetMetrics/xxx/y` returns \r\n```\r\n# HELP promregator_scrape_duration_seconds Duration in seconds indicating how long scraping of all metrics took\r\n# TYPE promregator_scrape_duration_seconds gauge\r\npromregator_scrape_duration_seconds 1.761\r\n```\r\nwithout any labels.\r\n\r\n## Expected Behavior\r\nWhile not providing any labels is fine in Single Endpoint Scraping, it is not fine in case of Single Target Scraping:\r\n* There are multiple scraping durations (one per scraping request at an endpoint)\r\n* Prometheus does not like getting multiple samples from the same metric in this case, if the `job` labels are not distinct (result in the above's error message `Error on ingesting out-of-order samples`)\r\n\r\n## Additional information\r\nInitially brought up at #51. \r\n\r\nSingle Target Scraping was introduced with 0.2.0"},"comment":{"url":"https://api.github.com/repos/promregator/promregator/issues/comments/386601455","html_url":"https://github.com/promregator/promregator/issues/52#issuecomment-386601455","issue_url":"https://api.github.com/repos/promregator/promregator/issues/52","id":386601455,"user":{"login":"vervas","id":609079,"avatar_url":"https://avatars2.githubusercontent.com/u/609079?v=4","gravatar_id":"","url":"https://api.github.com/users/vervas","html_url":"https://github.com/vervas","followers_url":"https://api.github.com/users/vervas/followers","following_url":"https://api.github.com/users/vervas/following{/other_user}","gists_url":"https://api.github.com/users/vervas/gists{/gist_id}","starred_url":"https://api.github.com/users/vervas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vervas/subscriptions","organizations_url":"https://api.github.com/users/vervas/orgs","repos_url":"https://api.github.com/users/vervas/repos","events_url":"https://api.github.com/users/vervas/events{/privacy}","received_events_url":"https://api.github.com/users/vervas/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T13:29:07Z","updated_at":"2018-05-04T13:29:07Z","author_association":"NONE","body":"Makes sense. Thx again for the support!"}}
{"actor":{"display_login":"vervas"}}