{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/2262","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/2262/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/2262/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/2262/events","html_url":"https://github.com/prometheus/prometheus/issues/2262","id":194070914,"number":2262,"title":"Recycled IP causes wrong metrics","user":{"login":"NoumanSaleem","id":694071,"avatar_url":"https://avatars.githubusercontent.com/u/694071?v=3","gravatar_id":"","url":"https://api.github.com/users/NoumanSaleem","html_url":"https://github.com/NoumanSaleem","followers_url":"https://api.github.com/users/NoumanSaleem/followers","following_url":"https://api.github.com/users/NoumanSaleem/following{/other_user}","gists_url":"https://api.github.com/users/NoumanSaleem/gists{/gist_id}","starred_url":"https://api.github.com/users/NoumanSaleem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoumanSaleem/subscriptions","organizations_url":"https://api.github.com/users/NoumanSaleem/orgs","repos_url":"https://api.github.com/users/NoumanSaleem/repos","events_url":"https://api.github.com/users/NoumanSaleem/events{/privacy}","received_events_url":"https://api.github.com/users/NoumanSaleem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T14:56:26Z","updated_at":"2016-12-07T15:14:38Z","closed_at":null,"body":"**What did you do?**\r\nDuring a load test, we had new instances launch which were given IPs previously seen and scraped by Prometheus.\r\n\r\nOur scrape configuration uses Consul and assigns the `name` label to `__meta_consul_service`. The issue is that the name label was not updated to reflect the new service running at that scrape target, and caused inconsistencies in metrics.\r\n\r\n**What did you expect to see?**\r\nNot sure, maybe the name label to be updated? I guess I'm not 100% sure if this issue resides with Prometheus, or possibly Consul was at fault for not updating the service. Just wanted to open this issue in case others had encountered this.\r\n\r\n**Environment**\r\n- System information: \r\n  Linux 3.13.0-93-generic x86_64\r\n- Prometheus version: \r\n  prometheus, version 1.1.1 (branch: master, revision: 24db241bd556fd45854dd310692ac291de7d24e1)\r\n  build user:       root@90d3f69e2d67\r\n  build date:       20160907-09:42:10\r\n  go version:       go1.6.3\r\n- Prometheus configuration file:\r\n\r\n```\r\nglobal:\r\n  scrape_interval:     1m\r\n  evaluation_interval: 1m\r\n\r\nscrape_configs:\r\n  - job_name: 'service'\r\n    consul_sd_configs:\r\n    - server: 172.17.42.1:8500\r\n    relabel_configs:\r\n      - source_labels: [__meta_consul_tags]\r\n        regex: ',((api|data)-service),'\r\n        action: keep\r\n      - source_labels: [__meta_consul_service_address, __meta_consul_service_port]\r\n        separator: ':'\r\n        target_label: __address__\r\n      - source_labels: [__meta_consul_service]\r\n        target_label: name\r\n      - source_labels: [__meta_consul_tags]\r\n        target_label: tags\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/265473178","html_url":"https://github.com/prometheus/prometheus/issues/2262#issuecomment-265473178","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/2262","id":265473178,"user":{"login":"NoumanSaleem","id":694071,"avatar_url":"https://avatars.githubusercontent.com/u/694071?v=3","gravatar_id":"","url":"https://api.github.com/users/NoumanSaleem","html_url":"https://github.com/NoumanSaleem","followers_url":"https://api.github.com/users/NoumanSaleem/followers","following_url":"https://api.github.com/users/NoumanSaleem/following{/other_user}","gists_url":"https://api.github.com/users/NoumanSaleem/gists{/gist_id}","starred_url":"https://api.github.com/users/NoumanSaleem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoumanSaleem/subscriptions","organizations_url":"https://api.github.com/users/NoumanSaleem/orgs","repos_url":"https://api.github.com/users/NoumanSaleem/repos","events_url":"https://api.github.com/users/NoumanSaleem/events{/privacy}","received_events_url":"https://api.github.com/users/NoumanSaleem/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T15:14:38Z","updated_at":"2016-12-07T15:14:38Z","body":"@brian-brazil sounds like Prometheus handles this then? Good to hear. I wish I had collected more info for this issue, including monitoring it to see if it resolved itself.\r\n\r\nDoes that mean the metrics for those 5 minutes will be lost? Is it preferable to instead include the `name` label in the exported metrics themselves, instead of having them in scrape config?"}}
{"actor":{"display_login":"NoumanSaleem"}}