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

     1  receivers:
     2    prometheus:
     3      config:
     4        scrape_configs:
     5        - job_name: 'nodeexporter'
     6          scrape_interval: 60s
     7          static_configs:
     8          - targets:
     9            - '127.0.0.1:9100'
    10  
    11  processors:
    12    resource:
    13      attributes:
    14      # Set `job` and `instance` resource attributes
    15      # to match up with what you would expect to see
    16      # in Prometheus server.
    17      - key: job
    18        action: upsert
    19        from_attribute: service.name
    20      - key: instance
    21        action: upsert
    22        from_attribute: service.instance.id
    23      # Google will consider metrics with `service.name` and
    24      # `service.instance.id` to be `generic_task` monitored
    25      # resource type. To get around this, and use `generic_node`,
    26      # delete the resource attributes.
    27      - key: service.name
    28        action: delete
    29      - key: service.instance.id
    30        action: delete
    31  
    32  exporters: 
    33    googlecloud:
    34  
    35  service:
    36    pipelines:
    37      metrics:
    38        receivers:
    39        - prometheus
    40        processors:
    41        - resource
    42        exporters:
    43        - googlecloud