{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1548","repository_url":"https://api.github.com/repos/coreos/prometheus-operator","labels_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1548/labels{/name}","comments_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1548/comments","events_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1548/events","html_url":"https://github.com/coreos/prometheus-operator/issues/1548","id":336734140,"node_id":"MDU6SXNzdWUzMzY3MzQxNDA=","number":1548,"title":"Ability to add custom relabeling to prometheus configuration","user":{"login":"d-ulyanov","id":3064640,"node_id":"MDQ6VXNlcjMwNjQ2NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/3064640?v=4","gravatar_id":"","url":"https://api.github.com/users/d-ulyanov","html_url":"https://github.com/d-ulyanov","followers_url":"https://api.github.com/users/d-ulyanov/followers","following_url":"https://api.github.com/users/d-ulyanov/following{/other_user}","gists_url":"https://api.github.com/users/d-ulyanov/gists{/gist_id}","starred_url":"https://api.github.com/users/d-ulyanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-ulyanov/subscriptions","organizations_url":"https://api.github.com/users/d-ulyanov/orgs","repos_url":"https://api.github.com/users/d-ulyanov/repos","events_url":"https://api.github.com/users/d-ulyanov/events{/privacy}","received_events_url":"https://api.github.com/users/d-ulyanov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-28T18:37:45Z","updated_at":"2018-07-02T21:37:43Z","closed_at":null,"author_association":"NONE","body":"**What did you do?**\r\nI would like to add some labels to targets which I have on endpoint but not on k8s service.\r\nExample:\r\nI have kubelet job (from operator examples), that scrapes kubelets. \r\nTargets have label (before relabeling) \r\n`__meta_kubernetes_endpoint_address_target_name: <myprettyhostname>`\r\n\r\n**What did you expect to see?**\r\nI would like to have this label in scraped metrics. It could be done via relabeling, but I can't configure custom relabeling for job.\r\n\r\n**What did you see instead? Under which circumstances?**\r\nIt would be great to add ability to configure relabel configs.\r\n\r\n* Kubernetes version information:\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.4\", GitCommit:\"5ca598b4ba5abb89bb773071ce452e33fb66339d\", GitTreeState:\"clean\", BuildDate:\"2018-06-06T15:22:13Z\", GoVersion:\"go1.9.6\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.4\", GitCommit:\"5ca598b4ba5abb89bb773071ce452e33fb66339d\", GitTreeState:\"clean\", BuildDate:\"2018-06-06T08:00:59Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/prometheus-operator/issues/comments/401945535","html_url":"https://github.com/coreos/prometheus-operator/issues/1548#issuecomment-401945535","issue_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1548","id":401945535,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTk0NTUzNQ==","user":{"login":"d-ulyanov","id":3064640,"node_id":"MDQ6VXNlcjMwNjQ2NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/3064640?v=4","gravatar_id":"","url":"https://api.github.com/users/d-ulyanov","html_url":"https://github.com/d-ulyanov","followers_url":"https://api.github.com/users/d-ulyanov/followers","following_url":"https://api.github.com/users/d-ulyanov/following{/other_user}","gists_url":"https://api.github.com/users/d-ulyanov/gists{/gist_id}","starred_url":"https://api.github.com/users/d-ulyanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-ulyanov/subscriptions","organizations_url":"https://api.github.com/users/d-ulyanov/orgs","repos_url":"https://api.github.com/users/d-ulyanov/repos","events_url":"https://api.github.com/users/d-ulyanov/events{/privacy}","received_events_url":"https://api.github.com/users/d-ulyanov/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T21:37:43Z","updated_at":"2018-07-02T21:37:43Z","author_association":"NONE","body":"Hi, @brancz \r\nWhat do you think about this?"}}
{"actor":{"display_login":"d-ulyanov"}}