aws-logging-monitoring/monitoring/gke-metrics-agent.yaml [478:520]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            kubernetes_sd_configs:
            - role: endpoints
            metric_relabel_configs:
            - action: replace
              source_labels:
              - namespace
              target_label: exported_namespace
            - action: labeldrop
              regex: namespace
            relabel_configs:
            - action: keep
              regex: true
              source_labels:
              - __meta_kubernetes_service_annotation_monitoring_gke_io_scrape
            - action: replace
              regex: (.+)
              source_labels:
              - __meta_kubernetes_service_annotation_monitoring_gke_io_path
              target_label: __metrics_path__
            - action: replace
              regex: (https?)
              source_labels:
              - __meta_kubernetes_service_annotation_monitoring_gke_io_scheme
              target_label: __scheme__
            - action: replace
              regex: ([^:]+)(?::\d+)?;(\d+)
              replacement: $$1:$$2
              source_labels:
              - __address__
              - __meta_kubernetes_service_annotation_monitoring_gke_io_port
              target_label: __address__
            - action: keep
              regex: $NODE_NAME
              source_labels:
              - __meta_kubernetes_endpoint_node_name
            - action: replace
              source_labels:
              - __meta_kubernetes_namespace
              target_label: anthos_namespace
            - action: replace
              source_labels:
              - __meta_kubernetes_pod_name
              target_label: anthos_pod
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-logging-monitoring/monitoring/gke-metrics-agent.yaml [534:576]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            kubernetes_sd_configs:
            - role: endpoints
            metric_relabel_configs:
            - action: replace
              source_labels:
              - namespace
              target_label: exported_namespace
            - action: labeldrop
              regex: namespace
            relabel_configs:
            - action: keep
              regex: true
              source_labels:
              - __meta_kubernetes_service_annotation_monitoring_gke_io_scrape
            - action: replace
              regex: (.+)
              source_labels:
              - __meta_kubernetes_service_annotation_monitoring_gke_io_path
              target_label: __metrics_path__
            - action: replace
              regex: (https?)
              source_labels:
              - __meta_kubernetes_service_annotation_monitoring_gke_io_scheme
              target_label: __scheme__
            - action: replace
              regex: ([^:]+)(?::\d+)?;(\d+)
              replacement: $$1:$$2
              source_labels:
              - __address__
              - __meta_kubernetes_service_annotation_monitoring_gke_io_port
              target_label: __address__
            - action: keep
              regex: $NODE_NAME
              source_labels:
              - __meta_kubernetes_endpoint_node_name
            - action: replace
              source_labels:
              - __meta_kubernetes_namespace
              target_label: anthos_namespace
            - action: replace
              source_labels:
              - __meta_kubernetes_pod_name
              target_label: anthos_pod
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



