github.com/GoogleCloudPlatform/opentelemetry-operations-collector@v0.0.3-0.20230814143943-2c2416e3c759/integrationtest/agentmetrics-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: system.cpu.load_average.15m
    17      value_type: Double
    18      type: Gauge
    19    - name: system.cpu.load_average.1m
    20      value_type: Double
    21      type: Gauge
    22    - name: system.cpu.load_average.5m
    23      value_type: Double
    24      type: Gauge
    25    - name: system.cpu.time
    26      value_type: Double
    27      type: Sum
    28      attributes:
    29        cpu: \d*
    30        state: idle|interrupt|nice|softirq|steal|system|used|user|wait
    31    - name: system.cpu.utilization
    32      value_type: Double
    33      type: Gauge
    34      attributes:
    35        cpu: \d*
    36        state: idle|interrupt|nice|softirq|steal|system|used|user|wait
    37    - name: system.filesystem.inodes.usage
    38      value_type: Int
    39      type: Gauge
    40      attributes:
    41        device: .*
    42        mode: .*
    43        mountpoint: .*
    44        state: free|reserved|used
    45        type: .*
    46      # The only_on sections in this file are taken from:
    47      # https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/cf0f006aa73571fd3f955f514161e1dd36b68250/receiver/hostmetricsreceiver/hostmetrics_receiver_test.go#L76
    48      only_on:
    49        - linux
    50        - darwin
    51        - freebsd
    52        - openbsd
    53        - solaris
    54    - name: system.filesystem.usage
    55      value_type: Int
    56      type: Gauge
    57      attributes:
    58        device: .*
    59        mode: .*
    60        mountpoint: .*
    61        state: free|reserved|used
    62        type: .*
    63    - name: system.disk.average_operation_time
    64      value_type: Double
    65      type: Sum
    66      attributes:
    67        device: .*
    68        direction: read|write
    69    - name: system.disk.io_time
    70      value_type: Double
    71      type: Sum
    72      attributes:
    73        device: .*
    74    - name: system.disk.merged
    75      value_type: Int
    76      type: Sum
    77      attributes:
    78        device: .*
    79        direction: read|write
    80      only_on:
    81        - linux
    82    - name: system.disk.operations
    83      value_type: Int
    84      type: Sum
    85      attributes:
    86        device: .*
    87        direction: read|write
    88    - name: system.disk.operation_time
    89      value_type: Double
    90      type: Sum
    91      attributes:
    92        device: .*
    93        direction: read|write
    94    - name: system.disk.pending_operations
    95      value_type: Int
    96      type: Gauge
    97      attributes:
    98        device: .*
    99    - name: system.filesystem.utilization
   100      value_type: Double
   101      type: Gauge
   102      attributes:
   103        device: .*
   104        mode: .*
   105        mountpoint: .*
   106        state: free|reserved|used
   107        type: .*
   108    - name: system.disk.read_io
   109      value_type: Int
   110      type: Sum
   111      attributes:
   112        device: .*
   113    - name: system.disk.weighted_io_time
   114      value_type: Double
   115      type: Sum
   116      attributes:
   117        device: .*
   118      only_on:
   119        - linux
   120    - name: system.disk.write_io
   121      value_type: Int
   122      type: Sum
   123      attributes:
   124        device: .*
   125    - name: system.network.dropped
   126      value_type: Int
   127      type: Sum
   128      attributes:
   129        device: .*
   130        direction: transmit|receive
   131    - name: system.network.errors
   132      value_type: Int
   133      type: Sum
   134      attributes:
   135        device: .*
   136        direction: transmit|receive
   137    - name: system.network.packets
   138      value_type: Int
   139      type: Sum
   140      attributes:
   141        device: .*
   142        direction: transmit|receive
   143    - name: system.network.io
   144      value_type: Int
   145      type: Sum
   146      attributes:
   147        device: .*
   148        direction: transmit|receive
   149    - name: system.memory.usage
   150      value_type: Int
   151      type: Gauge
   152      attributes:
   153        state: buffered|cached|free|slab_reclaimable|slab_unreclaimable|used
   154    - name: system.memory.utilization
   155      value_type: Double
   156      type: Gauge
   157      attributes:
   158        state: buffered|cached|free|slab_reclaimable|slab_unreclaimable|used
   159    - name: system.network.connections
   160      value_type: Int
   161      type: Gauge
   162      attributes:
   163        protocol: tcp|udp
   164        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
   165    - name: system.processes.count
   166      value_type: Int
   167      type: Gauge
   168      attributes:
   169        status: blocked|daemon|detached|idle|locked|orphan|paging|running|sleeping|stopped|system|unknown|zombies
   170      only_on:
   171        - linux
   172        - darwin
   173        - freebsd
   174        - openbsd
   175    - name: process.cpu.time
   176      value_type: Double
   177      type: Sum
   178      attributes:
   179        command: .*
   180        command_line: .*
   181        owner: .*
   182        pid: \d+
   183        state: user|system|wait
   184    - name: process.disk.read_io
   185      value_type: Int
   186      type: Sum
   187      attributes:
   188        command: .*
   189        command_line: .*
   190        owner: .*
   191        pid: \d+
   192    - name: process.disk.write_io
   193      value_type: Int
   194      type: Sum
   195      attributes:
   196        command: .*
   197        command_line: .*
   198        owner: .*
   199        pid: \d+
   200    - name: system.processes.created
   201      value_type: Int
   202      type: Sum
   203      only_on:
   204        - linux
   205        - openbsd
   206    - name: process.memory.usage
   207      value_type: Int
   208      type: Gauge
   209      attributes:
   210        command: .*
   211        command_line: .*
   212        owner: .*
   213        pid: \d+
   214    - name: process.memory.virtual
   215      value_type: Int
   216      type: Gauge
   217      attributes:
   218        command: .*
   219        command_line: .*
   220        owner: .*
   221        pid: \d+
   222    - name: system.paging.faults
   223      value_type: Int
   224      type: Sum
   225      attributes:
   226        type: major|minor
   227      only_on:
   228        - linux
   229        - darwin
   230        - freebsd
   231        - openbsd
   232        - solaris
   233    - name: system.paging.usage
   234      value_type: Int
   235      type: Gauge
   236      attributes:
   237        device: .*
   238        state: cached|free|used
   239    - name: system.paging.operations
   240      value_type: Int
   241      type: Sum
   242      attributes:
   243        direction: page_in|page_out
   244        type: major|minor
   245    - name: system.paging.utilization
   246      value_type: Double
   247      type: Gauge
   248      attributes:
   249        device: .*
   250        state: free|used