github.com/GoogleCloudPlatform/opentelemetry-operations-collector@v0.0.3-0.20230814143943-2c2416e3c759/integrationtest/agentmetrics-config.yaml (about)

     1  # Copyright 2022 Google LLC
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  receivers:
    16    hostmetrics:
    17      collection_interval: 1s
    18      scrapers:
    19        cpu:
    20        filesystem:
    21        load:
    22        memory:
    23        network:
    24        paging:
    25        disk:
    26        process:
    27        processes:
    28  
    29  processors:
    30    # perform custom transformations that aren't supported by the metricstransform processor
    31    agentmetrics/cloud-monitoring:
    32      # 1. combines resource process metrics into metrics with processes as labels
    33      # 2. splits "disk.io" metrics into read & write metrics
    34      # 3. creates utilization metrics from usage metrics
    35  
    36  exporters:
    37    logging:
    38    file:
    39      path: ./metrics.json
    40  
    41  service:
    42    pipelines:
    43      metrics:
    44        receivers: [hostmetrics]
    45        processors: [agentmetrics/cloud-monitoring]
    46        exporters: [file,logging]