{"action":"closed","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/4562","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/4562/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/4562/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/4562/events","html_url":"https://github.com/prometheus/prometheus/issues/4562","id":355163828,"node_id":"MDU6SXNzdWUzNTUxNjM4Mjg=","number":4562,"title":"PromQL bug with query_range and metrics name change","user":{"login":"roidelapluie","id":291750,"node_id":"MDQ6VXNlcjI5MTc1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/291750?v=4","gravatar_id":"","url":"https://api.github.com/users/roidelapluie","html_url":"https://github.com/roidelapluie","followers_url":"https://api.github.com/users/roidelapluie/followers","following_url":"https://api.github.com/users/roidelapluie/following{/other_user}","gists_url":"https://api.github.com/users/roidelapluie/gists{/gist_id}","starred_url":"https://api.github.com/users/roidelapluie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roidelapluie/subscriptions","organizations_url":"https://api.github.com/users/roidelapluie/orgs","repos_url":"https://api.github.com/users/roidelapluie/repos","events_url":"https://api.github.com/users/roidelapluie/events{/privacy}","received_events_url":"https://api.github.com/users/roidelapluie/received_events","type":"User","site_admin":false},"labels":[{"id":365567473,"node_id":"MDU6TGFiZWwzNjU1Njc0NzM=","url":"https://api.github.com/repos/prometheus/prometheus/labels/component/promql","name":"component/promql","color":"0052cc","default":false},{"id":365563588,"node_id":"MDU6TGFiZWwzNjU1NjM1ODg=","url":"https://api.github.com/repos/prometheus/prometheus/labels/kind/bug","name":"kind/bug","color":"ff0000","default":false},{"id":365563606,"node_id":"MDU6TGFiZWwzNjU1NjM2MDY=","url":"https://api.github.com/repos/prometheus/prometheus/labels/priority/P1","name":"priority/P1","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-29T13:35:15Z","updated_at":"2018-09-18T09:46:13Z","closed_at":"2018-09-18T09:46:13Z","author_association":"CONTRIBUTOR","body":"## Bug Report\r\n**What did you do?**\r\n\r\n* Upgrade node_exporter\r\n* run with query_range: `sum(rate({__name__=~'node_network_receive_drop_total|node_network_receive_drop',env='prod',instance=\"nip-beprd51\"}[5m]) > 0) by(instance,cluster)`\r\n\r\n\r\n**What did you expect to see?**\r\n\r\na constant result\r\n\r\n**What did you see instead? Under which circumstances?**\r\n\r\nwhen the query range overlaps the metric name change, I git no result when we switch to the new metric\r\n\r\n**Environment**\r\n\r\n* Prometheus version:\r\n\r\nprometheus, version 2.3.2 (branch: HEAD, revision: 71af5e29e815795e9dd14742ee7725682fa14b7b)\r\n  build user:       root@5258e0bd9cc1\r\n  build date:       20180712-14:02:52\r\n  go version:       go1.10.3\r\n\r\n\r\n\r\n**Raw data**\r\n\r\n```\r\n{\"status\":\"success\",\"data\":{\"resultType\":\"matrix\",\"result\":[{\"metric\":{\"__name__\":\"node_network_receive_drop\",\"cluster\":\"default\",\"device\":\"bond0\",\"env\":\"prod\",\"instance\":\"nip-beprd51\",\"job\":\"node_exporters\"},\"values\":[[1535541130.395,\"107315172\"],[1535541160.395,\"107315217\"]]},{\"metric\":{\"__name__\":\"node_network_receive_drop_total\",\"cluster\":\"default\",\"device\":\"bond0\",\"env\":\"prod\",\"instance\":\"nip-beprd51\",\"job\":\"node_exporters\"},\"values\":[[1535541190.396,\"107315254\"],[1535541220.395,\"107315281\"],[1535541250.395,\"107315334\"],[1535541280.395,\"107315405\"],[1535541310.395,\"107315457\"],[1535541340.395,\"107315529\"],[1535541370.395,\"107315598\"],[1535541400.395,\"107315649\"],[1535541430.395,\"107315697\"]]}]}}\r\n```\r\n\r\n\r\nQuery range queries with sum() that cross 1535541430-1535541431 are stopped in the middle\r\n\r\n\r\n![query3](https://user-images.githubusercontent.com/291750/44791135-3e69b700-aba1-11e8-9f8a-4008683c0f0c.png)\r\n![query4](https://user-images.githubusercontent.com/291750/44791137-3f024d80-aba1-11e8-9e08-f138cd6755e9.png)\r\n"}}
{"actor":{"display_login":"brian-brazil"}}