{"action":"opened","issue":{"url":"https://api.github.com/repos/prometheus/pushgateway/issues/232","repository_url":"https://api.github.com/repos/prometheus/pushgateway","labels_url":"https://api.github.com/repos/prometheus/pushgateway/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/pushgateway/issues/232/comments","events_url":"https://api.github.com/repos/prometheus/pushgateway/issues/232/events","html_url":"https://github.com/prometheus/pushgateway/issues/232","id":390625119,"node_id":"MDU6SXNzdWUzOTA2MjUxMTk=","number":232,"title":"Collect the same metric  with same name and same label values","user":{"login":"tony810430","id":14329393,"node_id":"MDQ6VXNlcjE0MzI5Mzkz","avatar_url":"https://avatars2.githubusercontent.com/u/14329393?v=4","gravatar_id":"","url":"https://api.github.com/users/tony810430","html_url":"https://github.com/tony810430","followers_url":"https://api.github.com/users/tony810430/followers","following_url":"https://api.github.com/users/tony810430/following{/other_user}","gists_url":"https://api.github.com/users/tony810430/gists{/gist_id}","starred_url":"https://api.github.com/users/tony810430/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony810430/subscriptions","organizations_url":"https://api.github.com/users/tony810430/orgs","repos_url":"https://api.github.com/users/tony810430/repos","events_url":"https://api.github.com/users/tony810430/events{/privacy}","received_events_url":"https://api.github.com/users/tony810430/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-13T10:58:41Z","updated_at":"2018-12-13T10:58:41Z","closed_at":null,"author_association":"NONE","body":"It seems that they were stored by different key, from labels in url path, but they both generated the same MetricFamily, and it led to this error. Am I right and is this the expected behavior? Thanks.\r\n\r\n## Bug Report\r\n**What did you do?**\r\n```\r\n$ cat <<EOF | curl -X POST --data-binary @- http://127.0.0.1:9091/metrics/job/some_job/tag/val1\r\n> # TYPE some_metric counter\r\n> some_metric 1\r\n> EOF\r\n\r\n$ cat <<EOF | curl -X POST --data-binary @- http://127.0.0.1:9091/metrics/job/some_job\r\n> # TYPE some_metric counter\r\n> some_metric{tag=\"val1\"} 42\r\n> EOF\r\n```\r\n**What did you expect to see?**\r\n`some_metric` is updated correctly.\r\n\r\n**What did you see instead? Under which circumstances?**\r\nhttp://127.0.0.1:9091/metrics crushed\r\n```\r\nAn error has occurred while serving metrics:\r\n\r\ncollected metric \"some_metric\" { label:<name:\"instance\" value:\"\" > label:<name:\"job\" value:\"some_job\" > label:<name:\"tag\" value:\"val1\" > counter:<value:1 > } was collected before with the same name and label values\r\n```\r\n**Environment**\r\nlatest docker version\r\n"}}
{"actor":{"display_login":"tony810430"}}