{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2051","repository_url":"https://api.github.com/repos/coreos/prometheus-operator","labels_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2051/labels{/name}","comments_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2051/comments","events_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2051/events","html_url":"https://github.com/coreos/prometheus-operator/issues/2051","id":373864102,"node_id":"MDU6SXNzdWUzNzM4NjQxMDI=","number":2051,"title":"After upgrading to 0.24.0 pod names was removed from metrics","user":{"login":"olvesh","id":220643,"node_id":"MDQ6VXNlcjIyMDY0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/220643?v=4","gravatar_id":"","url":"https://api.github.com/users/olvesh","html_url":"https://github.com/olvesh","followers_url":"https://api.github.com/users/olvesh/followers","following_url":"https://api.github.com/users/olvesh/following{/other_user}","gists_url":"https://api.github.com/users/olvesh/gists{/gist_id}","starred_url":"https://api.github.com/users/olvesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olvesh/subscriptions","organizations_url":"https://api.github.com/users/olvesh/orgs","repos_url":"https://api.github.com/users/olvesh/repos","events_url":"https://api.github.com/users/olvesh/events{/privacy}","received_events_url":"https://api.github.com/users/olvesh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-25T09:51:11Z","updated_at":"2018-10-30T07:42:06Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**What did you do?**\r\nUpgraded to 0.24.0 from 0.23.2\r\n\r\n**What did you expect to see?**\r\nMetrics still be labeled as before\r\n\r\n**What did you see instead? Under which circumstances?**\r\nThe same unchanged service monitor changed behavior and stopped adding the `pod` label to our metrics.\r\n\r\n**Environment**\r\n\r\n* Prometheus Operator version:\r\n0.24.0\r\n\r\n* Kubernetes version information:\r\n\r\n```Client Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.3\", GitCommit:\"2bba0127d85d5a46ab4b778548be28623b32d0b0\", GitTreeState:\"clean\", BuildDate:\"2018-05-21T09:17:39Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10+\", GitVersion:\"v1.10.7-gke.6\", GitCommit:\"06898a4d0f2b96f82b43d9e59fa2825bd3d616a2\", GitTreeState:\"clean\", BuildDate:\"2018-10-02T17:32:01Z\", GoVersion:\"go1.9.3b4\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n* Kubernetes cluster kind: \r\nGKE\r\n\tinsert how you created your cluster: kops, bootkube, tectonic-installer, etc.\r\n\r\n\r\nhttps://github.com/coreos/prometheus-operator/compare/release-0.23...release-0.24\r\nI see some changes regarding the `pod` and `node` label. It seems that e.g. \r\n```\r\n{\r\n  {Key: \"source_labels\", Value: []string{\"__meta_kubernetes_endpoint_address_target_kind\", \"__meta_kubernetes_endpoint_address_target_name\"}},\r\n  {Key: \"separator\", Value: \";\"},\r\n  {Key: \"regex\", Value: \"Pod;(.*)\"},\r\n  {Key: \"replacement\", Value: \"${1}\"},\r\n  {Key: \"target_label\", Value: \"pod\"},\r\n}\r\n```\r\nshould compose a pod label, but these meta labels are not added. Must I upgrade Prometheus to get to them?\r\n\r\nI have tried to use relabelings on endpoints like:\r\n```\r\n  endpoints:\r\n    - targetPort: 9102\r\n      interval: 15s\r\n      relabelings:\r\n        - source_labels: ['__meta_kubernetes_pod_name']\r\n          targetLabel: pod\r\n```\r\nBut the resulting prometheus config strips source_labels when doing this..\r\n```\r\n  - separator: ;\r\n    regex: (.*)\r\n    target_label: pod\r\n    replacement: $1\r\n    action: replace\r\n```\r\n\r\nIf I do something the wrong way, please advice me how to correct.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/prometheus-operator/issues/comments/434201140","html_url":"https://github.com/coreos/prometheus-operator/issues/2051#issuecomment-434201140","issue_url":"https://api.github.com/repos/coreos/prometheus-operator/issues/2051","id":434201140,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDIwMTE0MA==","user":{"login":"olvesh","id":220643,"node_id":"MDQ6VXNlcjIyMDY0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/220643?v=4","gravatar_id":"","url":"https://api.github.com/users/olvesh","html_url":"https://github.com/olvesh","followers_url":"https://api.github.com/users/olvesh/followers","following_url":"https://api.github.com/users/olvesh/following{/other_user}","gists_url":"https://api.github.com/users/olvesh/gists{/gist_id}","starred_url":"https://api.github.com/users/olvesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olvesh/subscriptions","organizations_url":"https://api.github.com/users/olvesh/orgs","repos_url":"https://api.github.com/users/olvesh/repos","events_url":"https://api.github.com/users/olvesh/events{/privacy}","received_events_url":"https://api.github.com/users/olvesh/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T07:42:06Z","updated_at":"2018-10-30T07:42:06Z","author_association":"CONTRIBUTOR","body":"Here you go @mxinden \r\n```yaml\r\nglobal:\r\n  evaluation_interval: 30s\r\n  scrape_interval: 30s\r\n  external_labels:\r\n    prometheus: monitoring/dt-prometheus-infra\r\n    prometheus_replica: $(POD_NAME)\r\nrule_files:\r\n- /etc/prometheus/rules/prometheus-dt-prometheus-infra-rulefiles-0/*.yaml\r\nscrape_configs:\r\n- job_name: monitoring/cloud-elastic/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - cloud\r\n  scrape_interval: 15s\r\n  metrics_path: /_prometheus/metrics\r\n  scheme: https\r\n  tls_config:\r\n    insecure_skip_verify: true\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: cloud-elastic\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_number\r\n    regex: \"9200\"\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_cloud_elastic\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: \"9200\"\r\n- job_name: monitoring/cloud-redis-redis-ha/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - cloud\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: redis-ha\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_release\r\n    regex: cloud-redis\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_name\r\n    regex: metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_cloud_redis_redis_ha\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: metrics\r\n- job_name: monitoring/cloud-redis-ring/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - default\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: redis-ring\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_release\r\n    regex: cloud-redis-ring\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_name\r\n    regex: metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_cloud_redis_ring\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: metrics\r\n- job_name: monitoring/dt-monitor-cloud/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names: []\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: .+\r\n  - action: drop\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_servicemonitor\r\n    regex: exclude\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_number\r\n    regex: \"9102\"\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_dt_monitor_cloud\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: \"9102\"\r\n- job_name: monitoring/dt-monitor-infra-nginx/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - default\r\n      - sds\r\n      - cloudconnector\r\n  scrape_interval: 30s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: nginx-ingress\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_k8s_app\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: metrics\r\n- job_name: monitoring/dt-monitor-infra-operators/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names: []\r\n  scrape_interval: 30s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_tier\r\n    regex: operator\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_k8s_app\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: metrics\r\n- job_name: monitoring/dt-prometheus-infra/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 30s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: prometheus\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_chart\r\n    regex: prometheus-0.0.51\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_prometheus\r\n    regex: dt-prometheus-infra\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: http\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: http\r\n- job_name: monitoring/dt-prometheus-infra-alertmanager/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 30s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_alertmanager\r\n    regex: dt-prometheus-infra\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: alertmanager\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_chart\r\n    regex: alertmanager-0.1.7\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: http\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: http\r\n- job_name: monitoring/dt-prometheus-infra-exporter-kube-dns/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - kube-system\r\n  scrape_interval: 15s\r\n  bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: exporter-kube-dns\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: kube-dns\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: http-metrics-dnsmasq\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: http-metrics-dnsmasq\r\n- job_name: monitoring/dt-prometheus-infra-exporter-kube-dns/1\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - kube-system\r\n  scrape_interval: 15s\r\n  bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: exporter-kube-dns\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: kube-dns\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: http-metrics-skydns\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: http-metrics-skydns\r\n- job_name: monitoring/dt-prometheus-infra-exporter-kube-state/0\r\n  honor_labels: true\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: exporter-kube-state\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: kube-state\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: kube-state-metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: kube-state-metrics\r\n- job_name: monitoring/dt-prometheus-infra-exporter-kubelets/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - kube-system\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_k8s_app\r\n    regex: kubelet\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: http-metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: http-metrics\r\n- job_name: monitoring/dt-prometheus-infra-exporter-kubelets/1\r\n  honor_labels: true\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - kube-system\r\n  scrape_interval: 30s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_k8s_app\r\n    regex: kubelet\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: cadvisor\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: cadvisor\r\n- job_name: monitoring/dt-prometheus-infra-exporter-kubernetes/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - default\r\n  scrape_interval: 15s\r\n  scheme: https\r\n  tls_config:\r\n    insecure_skip_verify: true\r\n    ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\r\n  bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: apiserver\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_provider\r\n    regex: kubernetes\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: https\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: https\r\n- job_name: monitoring/dt-prometheus-infra-exporter-node/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: exporter-node\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: node-exporter\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: metrics\r\n- job_name: monitoring/dt-prometheus-infra-pushgateway/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 60s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: dt-prometheus-infra\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: pushgateway\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: http\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_dt_prometheus_infra_pushgateway\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: http\r\n- job_name: monitoring/identity/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - default\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: identity\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_name\r\n    regex: identity-http\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_identity\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: identity-http\r\n- job_name: monitoring/nsqd/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - default\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: nsqd\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_name\r\n    regex: internal\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_nsqd\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: internal\r\n- job_name: monitoring/prometheus-stackdriver-exporter/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 60s\r\n  scrape_timeout: 45s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: prometheus\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: stackdriver-exporter\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: prom-sd-exp\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_stackdriver_exporter\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: prom-sd-exp\r\n- job_name: monitoring/prometheus-stackdriver-exporter/1\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 60s\r\n  scrape_timeout: 45s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: prometheus\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: stackdriver-exporter\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: prom-sd-exp-1\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_stackdriver_exporter\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: prom-sd-exp-1\r\n- job_name: monitoring/prometheus-stackdriver-exporter/2\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 60s\r\n  scrape_timeout: 45s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: prometheus\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: stackdriver-exporter\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: prom-sd-exp-2\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_stackdriver_exporter\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: prom-sd-exp-2\r\n- job_name: monitoring/prometheus-stackdriver-exporter/3\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 60s\r\n  scrape_timeout: 45s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: prometheus\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: stackdriver-exporter\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: prom-sd-exp-3\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_stackdriver_exporter\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: prom-sd-exp-3\r\n- job_name: monitoring/prometheus-stackdriver-exporter/4\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - monitoring\r\n  scrape_interval: 60s\r\n  scrape_timeout: 45s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: prometheus\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: stackdriver-exporter\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: prom-sd-exp-4\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_stackdriver_exporter\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: prom-sd-exp-4\r\n- job_name: monitoring/redis/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - default\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: redis\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_tier\r\n    regex: database\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_name\r\n    regex: metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_redis\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: metrics\r\n- job_name: monitoring/sds-etcd/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - sds\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_component\r\n    regex: sds-etcd-etcd\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_endpoint_port_name\r\n    regex: etcd-client\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_sds_etcd\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: etcd-client\r\n- job_name: monitoring/sds-redis-ring/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - sds\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: redis-ring\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_release\r\n    regex: sds-redis-ring\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_name\r\n    regex: metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_sds_redis_ring\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: metrics\r\n- job_name: monitoring/sensor-manager-redis-ha/0\r\n  honor_labels: false\r\n  kubernetes_sd_configs:\r\n  - role: endpoints\r\n    namespaces:\r\n      names:\r\n      - sds\r\n  scrape_interval: 15s\r\n  relabel_configs:\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_app\r\n    regex: redis-ha\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_service_label_release\r\n    regex: sensor-manager\r\n  - action: keep\r\n    source_labels:\r\n    - __meta_kubernetes_pod_container_port_name\r\n    regex: metrics\r\n  - source_labels:\r\n    - __meta_kubernetes_namespace\r\n    target_label: namespace\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Node;(.*)\r\n    replacement: ${1}\r\n    target_label: node\r\n  - source_labels:\r\n    - __meta_kubernetes_endpoint_address_target_kind\r\n    - __meta_kubernetes_endpoint_address_target_name\r\n    separator: ;\r\n    regex: Pod;(.*)\r\n    replacement: ${1}\r\n    target_label: pod\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: service\r\n  - source_labels:\r\n    - __meta_kubernetes_service_name\r\n    target_label: job\r\n    replacement: ${1}\r\n  - source_labels:\r\n    - __meta_kubernetes_service_label_sensor_manager_redis_ha\r\n    target_label: job\r\n    regex: (.+)\r\n    replacement: ${1}\r\n  - target_label: endpoint\r\n    replacement: metrics\r\nalerting:\r\n  alert_relabel_configs:\r\n  - action: labeldrop\r\n    regex: prometheus_replica\r\n  alertmanagers:\r\n  - path_prefix: /\r\n    scheme: http\r\n    kubernetes_sd_configs:\r\n    - role: endpoints\r\n      namespaces:\r\n        names:\r\n        - monitoring\r\n    relabel_configs:\r\n    - action: keep\r\n      source_labels:\r\n      - __meta_kubernetes_service_name\r\n      regex: dt-prometheus-infra-alertmanager\r\n    - action: keep\r\n      source_labels:\r\n      - __meta_kubernetes_endpoint_port_name\r\n      regex: http\r\n```"}}
{"actor":{"display_login":"olvesh"}}