{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1879","repository_url":"https://api.github.com/repos/coreos/prometheus-operator","labels_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1879/labels{/name}","comments_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1879/comments","events_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1879/events","html_url":"https://github.com/coreos/prometheus-operator/pull/1879","id":359134089,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0Njk5MTcy","number":1879,"title":"pkg/prometheus: Allow configuration of relabel_configs per ServiceMonitor","user":{"login":"crandles","id":190343,"node_id":"MDQ6VXNlcjE5MDM0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/190343?v=4","gravatar_id":"","url":"https://api.github.com/users/crandles","html_url":"https://github.com/crandles","followers_url":"https://api.github.com/users/crandles/followers","following_url":"https://api.github.com/users/crandles/following{/other_user}","gists_url":"https://api.github.com/users/crandles/gists{/gist_id}","starred_url":"https://api.github.com/users/crandles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandles/subscriptions","organizations_url":"https://api.github.com/users/crandles/orgs","repos_url":"https://api.github.com/users/crandles/repos","events_url":"https://api.github.com/users/crandles/events{/privacy}","received_events_url":"https://api.github.com/users/crandles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-11T16:54:47Z","updated_at":"2018-11-12T15:14:28Z","closed_at":"2018-09-24T08:04:52Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/coreos/prometheus-operator/pulls/1879","html_url":"https://github.com/coreos/prometheus-operator/pull/1879","diff_url":"https://github.com/coreos/prometheus-operator/pull/1879.diff","patch_url":"https://github.com/coreos/prometheus-operator/pull/1879.patch"},"body":"I need access to various kubernetes meta labels (container name, node name, etc), more than just pod or service labels."},"comment":{"url":"https://api.github.com/repos/coreos/prometheus-operator/issues/comments/437917215","html_url":"https://github.com/coreos/prometheus-operator/pull/1879#issuecomment-437917215","issue_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/1879","id":437917215,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzkxNzIxNQ==","user":{"login":"shahaf600","id":24480420,"node_id":"MDQ6VXNlcjI0NDgwNDIw","avatar_url":"https://avatars3.githubusercontent.com/u/24480420?v=4","gravatar_id":"","url":"https://api.github.com/users/shahaf600","html_url":"https://github.com/shahaf600","followers_url":"https://api.github.com/users/shahaf600/followers","following_url":"https://api.github.com/users/shahaf600/following{/other_user}","gists_url":"https://api.github.com/users/shahaf600/gists{/gist_id}","starred_url":"https://api.github.com/users/shahaf600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahaf600/subscriptions","organizations_url":"https://api.github.com/users/shahaf600/orgs","repos_url":"https://api.github.com/users/shahaf600/repos","events_url":"https://api.github.com/users/shahaf600/events{/privacy}","received_events_url":"https://api.github.com/users/shahaf600/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T15:14:28Z","updated_at":"2018-11-12T15:14:28Z","author_association":"NONE","body":"Hi,\r\nI deployed this servicemonitor and it didn't create the relabel configs:\r\n```apiVersion: monitoring.coreos.com/v1\r\nkind: ServiceMonitor\r\nmetadata:\r\n  labels:\r\n    prometheus: kube-prometheus\r\n  name: nvidia-metrics-prometheus-exporter\r\n  namespace: monitoring\r\nspec:\r\n  endpoints:\r\n  - interval: 30s\r\n    path: /metrics\r\n    port: metrics\r\n  jobLabel: nvidia-metrics-prometheus-exporter\r\n  namespaceSelector:\r\n    matchNames:\r\n    - kube-system\r\n  selector:\r\n    matchLabels:\r\n      app: nvidia-exporter\r\n  relabelconfigs:\r\n  - sourceLabels:\r\n    - __meta_kubernetes_pod_node_name\r\n    targetLabel: pod_node_name```"}}
{"actor":{"display_login":"shahaf600"}}