github.com/observiq/bindplane-agent@v1.51.0/config/google_cloud_exporter/cadvisor/config.yaml (about)

     1  receivers:
     2    prometheus:
     3      config:
     4        scrape_configs:
     5        - job_name: 'cadvisor'
     6          scrape_interval: 60s
     7          static_configs:
     8          - targets:
     9            - cadvisor:8080
    10  
    11  processors:
    12    # Detect the running containers hostname
    13    resourcedetection:
    14      detectors: ["system"]
    15      system:
    16        hostname_sources: ["os"]
    17  
    18    # Copy host.name to cadvisor.collector_hostname and then
    19    # remove the original. Google will map to "generic_task",
    20    # which drops host.name. We need to preserve the collector's
    21    # hostname in order to guarantee uniqueness.
    22    resource:
    23      attributes:
    24      - key: cadvisor.collector_hostname
    25        from_attribute: host.name
    26        action: insert
    27      - key: host.name
    28        action: delete
    29  
    30  exporters: 
    31    googlecloud:
    32      metric:
    33        prefix: workload.googleapis.com/cadvisor
    34        resource_filters:
    35          - prefix: cadvisor
    36  
    37  service:
    38    pipelines:
    39      metrics:
    40        receivers:
    41        - prometheus
    42        processors:
    43        - resourcedetection
    44        - resource
    45        exporters:
    46        - googlecloud