{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2180","repository_url":"https://api.github.com/repos/coreos/prometheus-operator","labels_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2180/labels{/name}","comments_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2180/comments","events_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2180/events","html_url":"https://github.com/coreos/prometheus-operator/issues/2180","id":386165113,"node_id":"MDU6SXNzdWUzODYxNjUxMTM=","number":2180,"title":"Inconsistent job labels between prometheus-operator discovery service and kube-prometheus","user":{"login":"seanson","id":603619,"node_id":"MDQ6VXNlcjYwMzYxOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/603619?v=4","gravatar_id":"","url":"https://api.github.com/users/seanson","html_url":"https://github.com/seanson","followers_url":"https://api.github.com/users/seanson/followers","following_url":"https://api.github.com/users/seanson/following{/other_user}","gists_url":"https://api.github.com/users/seanson/gists{/gist_id}","starred_url":"https://api.github.com/users/seanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanson/subscriptions","organizations_url":"https://api.github.com/users/seanson/orgs","repos_url":"https://api.github.com/users/seanson/repos","events_url":"https://api.github.com/users/seanson/events{/privacy}","received_events_url":"https://api.github.com/users/seanson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-30T12:19:22Z","updated_at":"2018-11-30T13:55:38Z","closed_at":null,"author_association":"NONE","body":"**What did you do?**\r\n\r\nDeployed prometheus-operator with kubernetes-mixin for alerting.\r\n\r\n**What did you expect to see?**\r\n\r\nMatching job labels between prometheus-operator and kubernetes-mixin.\r\n\r\n\r\n**What did you see instead? Under which circumstances?**\r\n\r\nThe job labels provisioned by [contrib/kube-prometheus/jsonnet/kube-prometheus/kube-prometheus-bootkube.libsonnet] do not match the [upstream job selectors](https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/64a06754786ca1a28929b9fb05c381085dcdd44c/config.libsonnet), which causes alerts (like CoreDNSDown and KubeVersionMismatch) that depend on these selectors to misfire.\r\n\r\nLooking at the other configuration it looks like these are the only discovery services that append `-prometheus-discovery` and so I think the name change should happen in this repo.\r\n\r\n**Environment**\r\n\r\n* Prometheus Operator version:\r\n\r\nCurrent master (f8343b294f49c9009478138bd5572573f28811ec)\r\n\r\n* Kubernetes version information:\r\n\r\n```Client Version: version.Info{Major:\"1\", Minor:\"11\", GitVersion:\"v1.11.3\", GitCommit:\"a4529464e4629c21224b3d52edfe0ea91b072862\", GitTreeState:\"clean\", BuildDate:\"2018-09-09T18:02:47Z\", GoVersion:\"go1.10.3\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"11\", GitVersion:\"v1.11.3\", GitCommit:\"a4529464e4629c21224b3d52edfe0ea91b072862\", GitTreeState:\"clean\", BuildDate:\"2018-09-09T17:53:03Z\", GoVersion:\"go1.10.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}```\r\n\r\n* Kubernetes cluster kind: \r\n\r\nkops 1.10\r\n\r\n* Manifests:\r\nN/A\r\n\r\n* Prometheus Operator Logs:\r\nN/A"},"comment":{"url":"https://api.github.com/repos/coreos/prometheus-operator/issues/comments/443210323","html_url":"https://github.com/coreos/prometheus-operator/issues/2180#issuecomment-443210323","issue_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2180","id":443210323,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzIxMDMyMw==","user":{"login":"brancz","id":4546722,"node_id":"MDQ6VXNlcjQ1NDY3MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/4546722?v=4","gravatar_id":"","url":"https://api.github.com/users/brancz","html_url":"https://github.com/brancz","followers_url":"https://api.github.com/users/brancz/followers","following_url":"https://api.github.com/users/brancz/following{/other_user}","gists_url":"https://api.github.com/users/brancz/gists{/gist_id}","starred_url":"https://api.github.com/users/brancz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brancz/subscriptions","organizations_url":"https://api.github.com/users/brancz/orgs","repos_url":"https://api.github.com/users/brancz/repos","events_url":"https://api.github.com/users/brancz/events{/privacy}","received_events_url":"https://api.github.com/users/brancz/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T13:55:38Z","updated_at":"2018-11-30T13:55:38Z","author_association":"MEMBER","body":"I commented in #2181, could you elaborate regarding my comment either here or in #2181?"}}
{"actor":{"display_login":"brancz"}}