github.com/GoogleCloudPlatform/opentelemetry-operations-collector@v0.0.3-0.20230814143943-2c2416e3c759/integrationtest/hostmetrics-expected.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  expected_metrics:
    16    - name: process.cpu.time
    17      value_type: Double
    18      type: Sum
    19      attributes:
    20        state: user|system|wait
    21      resource_attributes: &process_resource_attributes
    22        process.command: .*
    23        process.command_line: .*
    24        process.executable.name: .*
    25        process.executable.path: .*
    26        process.owner: .*
    27        process.parent_pid: -1|\d+
    28        process.pid: \d+
    29    - name: process.disk.io
    30      value_type: Int
    31      type: Sum
    32      attributes:
    33        direction: read|write
    34      resource_attributes: *process_resource_attributes
    35    - name: process.memory.usage
    36      value_type: Int
    37      type: Sum
    38      resource_attributes: *process_resource_attributes
    39    - name: process.memory.virtual
    40      value_type: Int
    41      type: Sum
    42      resource_attributes: *process_resource_attributes
    43    - name: system.cpu.load_average.15m
    44      value_type: Double
    45      type: Gauge
    46    - name: system.cpu.load_average.1m
    47      value_type: Double
    48      type: Gauge
    49    - name: system.cpu.load_average.5m
    50      value_type: Double
    51      type: Gauge
    52    - name: system.cpu.time
    53      value_type: Double
    54      type: Sum
    55      attributes:
    56        cpu: cpu\d+
    57        state: idle|interrupt|nice|softirq|steal|system|used|user|wait
    58    - name: system.disk.io
    59      value_type: Int
    60      type: Sum
    61      attributes:
    62        device: .*
    63        direction: read|write
    64    - name: system.disk.io_time
    65      value_type: Double
    66      type: Sum
    67      attributes:
    68        device: .*
    69    - name: system.disk.merged
    70      value_type: Int
    71      type: Sum
    72      attributes:
    73        device: .*
    74        direction: read|write
    75      only_on:
    76        - linux
    77    - name: system.disk.operation_time
    78      value_type: Double
    79      type: Sum
    80      attributes:
    81        device: .*
    82        direction: read|write
    83    - name: system.disk.operations
    84      value_type: Int
    85      type: Sum
    86      attributes:
    87        device: .*
    88        direction: read|write
    89    - name: system.disk.pending_operations
    90      value_type: Int
    91      type: Sum
    92      attributes:
    93        device: .*
    94    - name: system.disk.weighted_io_time
    95      value_type: Double
    96      type: Sum
    97      attributes:
    98        device: .*
    99      only_on:
   100        - linux
   101    - name: system.filesystem.inodes.usage
   102      value_type: Int
   103      type: Sum
   104      attributes:
   105        device: .*
   106        mode: .*
   107        mountpoint: .*
   108        state: free|reserved|used
   109        type: .*
   110      # The only_on sections in this file are taken from:
   111      # https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/cf0f006aa73571fd3f955f514161e1dd36b68250/receiver/hostmetricsreceiver/hostmetrics_receiver_test.go#L76
   112      only_on:
   113        - linux
   114        - darwin
   115        - freebsd
   116        - openbsd
   117        - solaris
   118    - name: system.filesystem.usage
   119      value_type: Int
   120      type: Sum
   121      attributes:
   122        device: .*
   123        mode: .*
   124        mountpoint: .*
   125        state: free|reserved|used
   126        type: .*
   127    - name: system.memory.usage
   128      value_type: Int
   129      type: Sum
   130      attributes:
   131        state: buffered|cached|free|slab_reclaimable|slab_unreclaimable|used
   132    - name: system.network.connections
   133      value_type: Int
   134      type: Sum
   135      attributes:
   136        protocol: tcp|udp
   137        state: CLOSE|CLOSED|CLOSE_WAIT|CLOSING|DELETE|ESTABLISHED|FIN_WAIT_1|FIN_WAIT1|FIN_WAIT_2|FIN_WAIT2|LAST_ACK|LISTEN|SYN_RECEIVED|SYN_RECV|SYN_SENT|TIME_WAIT
   138    - name: system.network.dropped
   139      value_type: Int
   140      type: Sum
   141      attributes:
   142        device: .*
   143        direction: transmit|receive
   144    - name: system.network.errors
   145      value_type: Int
   146      type: Sum
   147      attributes:
   148        device: .*
   149        direction: transmit|receive
   150    - name: system.network.io
   151      value_type: Int
   152      type: Sum
   153      attributes:
   154        device: .*
   155        direction: transmit|receive
   156    - name: system.network.packets
   157      value_type: Int
   158      type: Sum
   159      attributes:
   160        device: .*
   161        direction: transmit|receive
   162    - name: system.paging.faults
   163      value_type: Int
   164      type: Sum
   165      attributes:
   166        type: major|minor
   167      only_on:
   168        - linux
   169        - darwin
   170        - freebsd
   171        - openbsd
   172        - solaris
   173    - name: system.paging.operations
   174      value_type: Int
   175      type: Sum
   176      attributes:
   177        direction: page_in|page_out
   178        type: major|minor
   179    - name: system.paging.usage
   180      value_type: Int
   181      type: Sum
   182      attributes:
   183        device: .*
   184        state: cached|free|used
   185    - name: system.processes.count
   186      value_type: Int
   187      type: Sum
   188      attributes:
   189        status: blocked|daemon|detached|idle|locked|orphan|paging|running|sleeping|stopped|system|unknown|zombies
   190      only_on:
   191        - linux
   192        - darwin
   193        - freebsd
   194        - openbsd
   195    - name: system.processes.created
   196      value_type: Int
   197      type: Sum
   198      only_on:
   199        - linux
   200        - openbsd