diff --git a/solutions/oss/eks-infra/v1.0.0/iac/eks-monitoring-cfn-template.json b/solutions/oss/eks-infra/v1.0.0/iac/eks-monitoring-cfn-template.json index 6539fc0fa..bc3d5ee01 100644 --- a/solutions/oss/eks-infra/v1.0.0/iac/eks-monitoring-cfn-template.json +++ b/solutions/oss/eks-infra/v1.0.0/iac/eks-monitoring-cfn-template.json @@ -1183,7 +1183,11 @@ "Fn::Join": [ "", [ - "https://s3.us-west-2.", + "https://s3.", + { + "Ref": "S3BucketRegion" + }, + ".", { "Ref": "AWS::URLSuffix" }, @@ -1425,7 +1429,7 @@ { "Ref": "EKSClusterName" }, - "\"\n o11y: \"eks-infra-v1\"\nscrape_configs:\n - job_name: kubernetes-apiservers\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: endpoints\n relabel_configs:\n - action: keep\n regex: default;kubernetes;https\n source_labels:\n - __meta_kubernetes_namespace\n - __meta_kubernetes_service_name\n - __meta_kubernetes_endpoint_port_name\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n - job_name: kubernetes-nodes\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: node\n relabel_configs:\n - action: labelmap\n regex: __meta_kubernetes_node_label_(.+)\n - replacement: kubernetes.default.svc:443\n target_label: __address__\n - regex: (.+)\n replacement: /api/v1/nodes/$1/proxy/metrics\n source_labels:\n - __meta_kubernetes_node_name\n target_label: __metrics_path__\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n - job_name: kubernetes-nodes-cadvisor\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: node\n relabel_configs:\n - action: labelmap\n regex: __meta_kubernetes_node_label_(.+)\n - replacement: kubernetes.default.svc:443\n target_label: __address__\n - regex: (.+)\n replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor\n source_labels:\n - __meta_kubernetes_node_name\n target_label: __metrics_path__\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n - job_name: kubernetes-service-endpoints\n kubernetes_sd_configs:\n - role: endpoints\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_scrape\n - action: replace\n regex: (https?)\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_scheme\n target_label: __scheme__\n - action: replace\n regex: (.+)\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_path\n target_label: __metrics_path__\n - action: replace\n regex: ([^:]+)(?::\\d+)?;(\\d+)\n replacement: $1:$2\n source_labels:\n - __address__\n - __meta_kubernetes_service_annotation_prometheus_io_port\n target_label: __address__\n - action: labelmap\n regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+)\n replacement: __param_$1\n - action: labelmap\n regex: __meta_kubernetes_service_label_(.+)\n - action: replace\n source_labels:\n - __meta_kubernetes_namespace\n target_label: kubernetes_namespace\n - action: replace\n source_labels:\n - __meta_kubernetes_service_name\n target_label: kubernetes_name\n - action: replace\n source_labels:\n - __meta_kubernetes_pod_node_name\n target_label: kubernetes_node\n - job_name: kubernetes-service-endpoints-slow\n kubernetes_sd_configs:\n - role: endpoints\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_scrape_slow\n - action: replace\n regex: (https?)\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_scheme\n target_label: __scheme__\n - action: replace\n regex: (.+)\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_path\n target_label: __metrics_path__\n - action: replace\n regex: ([^:]+)(?::\\d+)?;(\\d+)\n replacement: $1:$2\n source_labels:\n - __address__\n - __meta_kubernetes_service_annotation_prometheus_io_port\n target_label: __address__\n - action: labelmap\n regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+)\n replacement: __param_$1\n - action: labelmap\n regex: __meta_kubernetes_service_label_(.+)\n - action: replace\n source_labels:\n - __meta_kubernetes_namespace\n target_label: kubernetes_namespace\n - action: replace\n source_labels:\n - __meta_kubernetes_service_name\n target_label: kubernetes_name\n - action: replace\n source_labels:\n - __meta_kubernetes_pod_node_name\n target_label: kubernetes_node\n scrape_interval: 5m\n scrape_timeout: 30s\n - job_name: prometheus-pushgateway\n kubernetes_sd_configs:\n - role: service\n relabel_configs:\n - action: keep\n regex: pushgateway\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_probe\n - job_name: kubernetes-services\n kubernetes_sd_configs:\n - role: service\n metrics_path: /probe\n params:\n module:\n - http_2xx\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_probe\n - source_labels:\n - __address__\n target_label: __param_target\n - replacement: blackbox\n target_label: __address__\n - source_labels:\n - __param_target\n target_label: instance\n - action: labelmap\n regex: __meta_kubernetes_service_label_(.+)\n - source_labels:\n - __meta_kubernetes_namespace\n target_label: kubernetes_namespace\n - source_labels:\n - __meta_kubernetes_service_name\n target_label: kubernetes_name\n - job_name: kubernetes-pods\n kubernetes_sd_configs:\n - role: pod\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_scrape\n - action: replace\n regex: (https?)\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_scheme\n target_label: __scheme__\n - action: replace\n regex: (.+)\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_path\n target_label: __metrics_path__\n - action: replace\n regex: ([^:]+)(?::\\d+)?;(\\d+)\n replacement: $1:$2\n source_labels:\n - __address__\n - __meta_kubernetes_pod_annotation_prometheus_io_port\n target_label: __address__\n - action: labelmap\n regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)\n replacement: __param_$1\n - action: labelmap\n regex: __meta_kubernetes_pod_label_(.+)\n - action: replace\n source_labels:\n - __meta_kubernetes_namespace\n target_label: kubernetes_namespace\n - action: replace\n source_labels:\n - __meta_kubernetes_pod_name\n target_label: kubernetes_pod_name\n - action: drop\n regex: Pending|Succeeded|Failed|Completed\n source_labels:\n - __meta_kubernetes_pod_phase\n - job_name: kubernetes-pods-slow\n scrape_interval: 5m\n scrape_timeout: 30s \n kubernetes_sd_configs:\n - role: pod\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_scrape_slow\n - action: replace\n regex: (https?)\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_scheme\n target_label: __scheme__\n - action: replace\n regex: (.+)\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_path\n target_label: __metrics_path__\n - action: replace\n regex: ([^:]+)(?::\\d+)?;(\\d+)\n replacement: $1:$2\n source_labels:\n - __address__\n - __meta_kubernetes_pod_annotation_prometheus_io_port\n target_label: __address__\n - action: labelmap\n regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)\n replacement: __param_$1\n - action: labelmap\n regex: __meta_kubernetes_pod_label_(.+)\n - action: replace\n source_labels:\n - __meta_kubernetes_namespace\n target_label: namespace\n - action: replace\n source_labels:\n - __meta_kubernetes_pod_name\n target_label: pod\n - action: drop\n regex: Pending|Succeeded|Failed|Completed\n source_labels:\n - __meta_kubernetes_pod_phase \n - job_name: 'kubernetes-kubelet'\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: node\n relabel_configs:\n - action: labelmap\n regex: __meta_kubernetes_node_label_(.+)\n - target_label: __address__\n replacement: kubernetes.default.svc.cluster.local:443\n - source_labels: [__meta_kubernetes_node_name]\n regex: (.+)\n target_label: __metrics_path__\n replacement: /api/v1/nodes/$1/proxy/metrics\n - job_name: 'kubelet'\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: node\n relabel_configs:\n - action: labelmap\n regex: __meta_kubernetes_node_label_(.+)\n - target_label: __address__\n replacement: kubernetes.default.svc.cluster.local:443\n - source_labels: [__meta_kubernetes_node_name]\n regex: (.+)\n target_label: __metrics_path__\n replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor\n - job_name: serviceMonitor/default/kube-prometheus-stack-prometheus-node-exporter/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (prometheus-node-exporter);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-prometheus/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-prometheus);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_self_monitor, __meta_kubernetes_service_labelpresent_self_monitor]\n separator: ;\n regex: (true);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-web\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-web\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-operator/0\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-operator);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-kubelet/2\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics/probes\n scheme: https\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name, __meta_kubernetes_service_labelpresent_app_kubernetes_io_name]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_k8s_app, __meta_kubernetes_service_labelpresent_k8s_app]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_k8s_app]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https-metrics\n action: replace\n - source_labels: [__metrics_path__]\n separator: ;\n regex: (.*)\n target_label: metrics_path\n replacement: $1\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kubelet/1\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics/cadvisor\n scheme: https\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name, __meta_kubernetes_service_labelpresent_app_kubernetes_io_name]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_k8s_app, __meta_kubernetes_service_labelpresent_k8s_app]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_k8s_app]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https-metrics\n action: replace\n - source_labels: [__metrics_path__]\n separator: ;\n regex: (.*)\n target_label: metrics_path\n replacement: $1\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kubelet/0\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: https\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name, __meta_kubernetes_service_labelpresent_app_kubernetes_io_name]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_k8s_app, __meta_kubernetes_service_labelpresent_k8s_app]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_k8s_app]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https-metrics\n action: replace\n - source_labels: [__metrics_path__]\n separator: ;\n regex: (.*)\n target_label: metrics_path\n replacement: $1\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-state-metrics/0\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_instance, __meta_kubernetes_service_labelpresent_app_kubernetes_io_instance]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name, __meta_kubernetes_service_labelpresent_app_kubernetes_io_name]\n separator: ;\n regex: (kube-state-metrics);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-scheduler/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-kube-scheduler);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-proxy/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-kube-proxy);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-etcd/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-kube-etcd);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-controller-manager/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-kube-controller-manager);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-coredns/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-coredns);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-apiserver/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: https\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n server_name: kubernetes\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_component, __meta_kubernetes_service_labelpresent_component]\n separator: ;\n regex: (kubernetes);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_component]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-alertmanager/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-alertmanager);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_self_monitor, __meta_kubernetes_service_labelpresent_self_monitor]\n separator: ;\n regex: (true);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-web\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-web\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: 'kube-state-metrics'\n static_configs:\n - targets: ['kube-state-metrics.kube-system.svc.cluster.local:8080']\n - job_name: 'node-exporter'\n kubernetes_sd_configs:\n - role: endpoints" + "\"\n o11y: \"eks-infra-v1\"\nscrape_configs:\n - job_name: kubernetes-apiservers\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: endpoints\n relabel_configs:\n - action: keep\n regex: default;kubernetes;https\n source_labels:\n - __meta_kubernetes_namespace\n - __meta_kubernetes_service_name\n - __meta_kubernetes_endpoint_port_name\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n - job_name: kubernetes-nodes\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: node\n relabel_configs:\n - action: labelmap\n regex: __meta_kubernetes_node_label_(.+)\n - replacement: kubernetes.default.svc:443\n target_label: __address__\n - regex: (.+)\n replacement: /api/v1/nodes/$1/proxy/metrics\n source_labels:\n - __meta_kubernetes_node_name\n target_label: __metrics_path__\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n - job_name: kubernetes-nodes-cadvisor\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: node\n relabel_configs:\n - action: labelmap\n regex: __meta_kubernetes_node_label_(.+)\n - replacement: kubernetes.default.svc:443\n target_label: __address__\n - regex: (.+)\n replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor\n source_labels:\n - __meta_kubernetes_node_name\n target_label: __metrics_path__\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n - job_name: kubernetes-service-endpoints\n kubernetes_sd_configs:\n - role: endpoints\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_scrape\n - action: replace\n regex: (https?)\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_scheme\n target_label: __scheme__\n - action: replace\n regex: (.+)\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_path\n target_label: __metrics_path__\n - action: replace\n regex: ([^:]+)(?::\\d+)?;(\\d+)\n replacement: $1:$2\n source_labels:\n - __address__\n - __meta_kubernetes_service_annotation_prometheus_io_port\n target_label: __address__\n - action: labelmap\n regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+)\n replacement: __param_$1\n - action: labelmap\n regex: __meta_kubernetes_service_label_(.+)\n - action: replace\n source_labels:\n - __meta_kubernetes_namespace\n target_label: kubernetes_namespace\n - action: replace\n source_labels:\n - __meta_kubernetes_service_name\n target_label: kubernetes_name\n - action: replace\n source_labels:\n - __meta_kubernetes_pod_node_name\n target_label: kubernetes_node\n - job_name: kubernetes-service-endpoints-slow\n kubernetes_sd_configs:\n - role: endpoints\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_scrape_slow\n - action: replace\n regex: (https?)\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_scheme\n target_label: __scheme__\n - action: replace\n regex: (.+)\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_path\n target_label: __metrics_path__\n - action: replace\n regex: ([^:]+)(?::\\d+)?;(\\d+)\n replacement: $1:$2\n source_labels:\n - __address__\n - __meta_kubernetes_service_annotation_prometheus_io_port\n target_label: __address__\n - action: labelmap\n regex: __meta_kubernetes_service_annotation_prometheus_io_param_(.+)\n replacement: __param_$1\n - action: labelmap\n regex: __meta_kubernetes_service_label_(.+)\n - action: replace\n source_labels:\n - __meta_kubernetes_namespace\n target_label: kubernetes_namespace\n - action: replace\n source_labels:\n - __meta_kubernetes_service_name\n target_label: kubernetes_name\n - action: replace\n source_labels:\n - __meta_kubernetes_pod_node_name\n target_label: kubernetes_node\n scrape_interval: 5m\n scrape_timeout: 30s\n - job_name: prometheus-pushgateway\n kubernetes_sd_configs:\n - role: service\n relabel_configs:\n - action: keep\n regex: pushgateway\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_probe\n - job_name: kubernetes-services\n kubernetes_sd_configs:\n - role: service\n metrics_path: /probe\n params:\n module:\n - http_2xx\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_service_annotation_prometheus_io_probe\n - source_labels:\n - __address__\n target_label: __param_target\n - replacement: blackbox\n target_label: __address__\n - source_labels:\n - __param_target\n target_label: instance\n - action: labelmap\n regex: __meta_kubernetes_service_label_(.+)\n - source_labels:\n - __meta_kubernetes_namespace\n target_label: kubernetes_namespace\n - source_labels:\n - __meta_kubernetes_service_name\n target_label: kubernetes_name\n - job_name: kubernetes-pods\n kubernetes_sd_configs:\n - role: pod\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_scrape\n - action: replace\n regex: (https?)\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_scheme\n target_label: __scheme__\n - action: replace\n regex: (.+)\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_path\n target_label: __metrics_path__\n - action: replace\n regex: ([^:]+)(?::\\d+)?;(\\d+)\n replacement: $1:$2\n source_labels:\n - __address__\n - __meta_kubernetes_pod_annotation_prometheus_io_port\n target_label: __address__\n - action: labelmap\n regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)\n replacement: __param_$1\n - action: labelmap\n regex: __meta_kubernetes_pod_label_(.+)\n - action: replace\n source_labels:\n - __meta_kubernetes_namespace\n target_label: kubernetes_namespace\n - action: replace\n source_labels:\n - __meta_kubernetes_pod_name\n target_label: kubernetes_pod_name\n - action: drop\n regex: Pending|Succeeded|Failed|Completed\n source_labels:\n - __meta_kubernetes_pod_phase\n - job_name: kubernetes-pods-slow\n scrape_interval: 5m\n scrape_timeout: 30s \n kubernetes_sd_configs:\n - role: pod\n relabel_configs:\n - action: keep\n regex: true\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_scrape_slow\n - action: replace\n regex: (https?)\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_scheme\n target_label: __scheme__\n - action: replace\n regex: (.+)\n source_labels:\n - __meta_kubernetes_pod_annotation_prometheus_io_path\n target_label: __metrics_path__\n - action: replace\n regex: ([^:]+)(?::\\d+)?;(\\d+)\n replacement: $1:$2\n source_labels:\n - __address__\n - __meta_kubernetes_pod_annotation_prometheus_io_port\n target_label: __address__\n - action: labelmap\n regex: __meta_kubernetes_pod_annotation_prometheus_io_param_(.+)\n replacement: __param_$1\n - action: labelmap\n regex: __meta_kubernetes_pod_label_(.+)\n - action: replace\n source_labels:\n - __meta_kubernetes_namespace\n target_label: namespace\n - action: replace\n source_labels:\n - __meta_kubernetes_pod_name\n target_label: pod\n - action: drop\n regex: Pending|Succeeded|Failed|Completed\n source_labels:\n - __meta_kubernetes_pod_phase \n - job_name: 'kubernetes-kubelet'\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: node\n relabel_configs:\n - action: labelmap\n regex: __meta_kubernetes_node_label_(.+)\n - target_label: __address__\n replacement: kubernetes.default.svc.cluster.local:443\n - source_labels: [__meta_kubernetes_node_name]\n regex: (.+)\n target_label: __metrics_path__\n replacement: /api/v1/nodes/$1/proxy/metrics\n - job_name: 'kubelet'\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n kubernetes_sd_configs:\n - role: node\n relabel_configs:\n - action: labelmap\n regex: __meta_kubernetes_node_label_(.+)\n - target_label: __address__\n replacement: kubernetes.default.svc.cluster.local:443\n - source_labels: [__meta_kubernetes_node_name]\n regex: (.+)\n target_label: __metrics_path__\n replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor\n - job_name: serviceMonitor/default/kube-prometheus-stack-prometheus-node-exporter/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (prometheus-node-exporter);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-prometheus/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-prometheus);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_self_monitor, __meta_kubernetes_service_labelpresent_self_monitor]\n separator: ;\n regex: (true);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-web\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-web\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-operator/0\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: https\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-operator);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-kubelet/2\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics/probes\n scheme: https\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name, __meta_kubernetes_service_labelpresent_app_kubernetes_io_name]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_k8s_app, __meta_kubernetes_service_labelpresent_k8s_app]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_k8s_app]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https-metrics\n action: replace\n - source_labels: [__metrics_path__]\n separator: ;\n regex: (.*)\n target_label: metrics_path\n replacement: $1\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kubelet/1\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics/cadvisor\n scheme: https\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name, __meta_kubernetes_service_labelpresent_app_kubernetes_io_name]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_k8s_app, __meta_kubernetes_service_labelpresent_k8s_app]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_k8s_app]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https-metrics\n action: replace\n - source_labels: [__metrics_path__]\n separator: ;\n regex: (.*)\n target_label: metrics_path\n replacement: $1\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kubelet/0\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: https\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n insecure_skip_verify: true\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name, __meta_kubernetes_service_labelpresent_app_kubernetes_io_name]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_k8s_app, __meta_kubernetes_service_labelpresent_k8s_app]\n separator: ;\n regex: (kubelet);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_k8s_app]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https-metrics\n action: replace\n - source_labels: [__metrics_path__]\n separator: ;\n regex: (.*)\n target_label: metrics_path\n replacement: $1\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-state-metrics/0\n honor_labels: true\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_instance, __meta_kubernetes_service_labelpresent_app_kubernetes_io_instance]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name, __meta_kubernetes_service_labelpresent_app_kubernetes_io_name]\n separator: ;\n regex: (kube-state-metrics);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-scheduler/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-kube-scheduler);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-proxy/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-kube-proxy);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-etcd/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-kube-etcd);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-kube-controller-manager/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-kube-controller-manager);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-coredns/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-coredns);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-metrics\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_jobLabel]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-metrics\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n namespaces:\n own_namespace: false\n names:\n - kube-system\n - job_name: serviceMonitor/default/kube-prometheus-stack-apiserver/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: https\n authorization:\n type: Bearer\n credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token\n tls_config:\n ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n server_name: kubernetes\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_component, __meta_kubernetes_service_labelpresent_component]\n separator: ;\n regex: (kubernetes);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: https\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_component]\n separator: ;\n regex: (.+)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: https\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: serviceMonitor/default/kube-prometheus-stack-alertmanager/0\n honor_timestamps: true\n scrape_interval: 30s\n scrape_timeout: 10s\n metrics_path: /metrics\n scheme: http\n follow_redirects: true\n enable_http2: true\n relabel_configs:\n - source_labels: [job]\n separator: ;\n regex: (.*)\n target_label: __tmp_prometheus_job_name\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_label_app, __meta_kubernetes_service_labelpresent_app]\n separator: ;\n regex: (kube-prometheus-stack-alertmanager);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_release, __meta_kubernetes_service_labelpresent_release]\n separator: ;\n regex: (kube-prometheus-stack);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_service_label_self_monitor, __meta_kubernetes_service_labelpresent_self_monitor]\n separator: ;\n regex: (true);true\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_port_name]\n separator: ;\n regex: http-web\n replacement: $1\n action: keep\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Node;(.*)\n target_label: node\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_endpoint_address_target_kind, __meta_kubernetes_endpoint_address_target_name]\n separator: ;\n regex: Pod;(.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_namespace]\n separator: ;\n regex: (.*)\n target_label: namespace\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: service\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_name]\n separator: ;\n regex: (.*)\n target_label: pod\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_pod_container_name]\n separator: ;\n regex: (.*)\n target_label: container\n replacement: $1\n action: replace\n - source_labels: [__meta_kubernetes_service_name]\n separator: ;\n regex: (.*)\n target_label: job\n replacement: $1\n action: replace\n - separator: ;\n regex: (.*)\n target_label: endpoint\n replacement: http-web\n action: replace\n - source_labels: [__address__]\n separator: ;\n regex: (.*)\n modulus: 1\n target_label: __tmp_hash\n replacement: $1\n action: hashmod\n - source_labels: [__tmp_hash]\n separator: ;\n regex: \"0\"\n replacement: $1\n action: keep\n kubernetes_sd_configs:\n - role: endpoints\n kubeconfig_file: \"\"\n follow_redirects: true\n enable_http2: true\n namespaces:\n own_namespace: false\n names:\n - default\n - job_name: 'kube-state-metrics'\n kubernetes_sd_configs:\n - role: endpoints\n relabel_configs:\n - regex: (.*)\n replacement: 'kube-state-metrics.kube-system.svc.cluster.local:8080'\n target_label: instance\n action: replace\n - job_name: 'node-exporter'\n kubernetes_sd_configs:\n - role: endpoints" ] ] } @@ -1478,7 +1482,7 @@ }, "EKSClusterOIDCEndpoint": { "Type": "String", - "Description": "EKS cluster's OIDC endpoint (looks like https://oidc.eks.us-west-2.amazonaws.com/id/079E76A4184DEFA85F0000072B23E329)" + "Description": "EKS cluster's OIDC endpoint (looks like https://oidc.eks..amazonaws.com/id/079E76A4184DEFA85F0000072B23E329)" }, "EKSClusterVpcId": { "Type": "String", @@ -1502,7 +1506,11 @@ }, "S3BucketName": { "Type": "String", - "Description": "S3 bucket where CloudFormation assets are stored" + "Description": "Name of S3 bucket where CloudFormation assets are stored" + }, + "S3BucketRegion": { + "Type": "String", + "Description": "AWS region where the assets S3 bucket is located (like us-west-2)" } } }