| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| metric_definitions: |
| |
| ############################################################################### |
| # fuchsia networking |
| # |
| ############################################################################### |
| |
| ############################################################################### |
| # socket_count_max |
| # |
| # Every minute we log the maximum number of open sockets observed on the system |
| # during the previous minute-long period. |
| ############################################################################### |
| - id: 1 |
| metric_name: socket_count_max |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: socket_count_max |
| id: 1 |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| - report_name: socket_count_per_device_max |
| id: 2 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| |
| ############################################################################### |
| # sockets_created |
| # |
| # Every minute we log the number of sockets created in the last minute. |
| ############################################################################### |
| - id: 2 |
| metric_name: sockets_created |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: sockets_created |
| id: 1 |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| - report_name: sockets_created_per_device_max |
| id: 2 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| |
| ################################################################################ |
| # sockets_destroyed |
| # |
| # Every minute we log the number of sockets destroyed in the last minute. |
| ################################################################################ |
| - id: 3 |
| metric_name: sockets_destroyed |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: sockets_destroyed |
| id: 1 |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| - report_name: sockets_destroyed_per_device_max |
| id: 2 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| |
| ################################################################################ |
| # packets_sent |
| # |
| # Every minute we log the number of packets sent in the last minute. |
| ################################################################################ |
| - id: 4 |
| metric_name: packets_sent |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: packets_sent |
| id: 1 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 16 |
| initial_step: 10 |
| step_multiplier: 2 |
| |
| ################################################################################ |
| # packets_received |
| # |
| # Every minute we log the number of packets received in the last period. |
| ################################################################################ |
| - id: 5 |
| metric_name: packets_received |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: packets_received |
| id: 1 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 16 |
| initial_step: 10 |
| step_multiplier: 2 |
| |
| ################################################################################ |
| # bytes_sent |
| # |
| # Every minute we log the number of bytes sent in the last period. |
| ################################################################################ |
| - id: 6 |
| metric_name: bytes_sent |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: bytes_sent |
| id: 1 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 16 |
| initial_step: 100 |
| step_multiplier: 10 |
| |
| ################################################################################ |
| # bytes_received |
| # |
| # Every minute we log the number of bytes received in the last period. |
| ################################################################################ |
| - id: 7 |
| metric_name: bytes_received |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: bytes_received |
| id: 1 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 16 |
| initial_step: 10 |
| step_multiplier: 2 |
| |
| ################################################################################ |
| # tcp_connections_established_total |
| # |
| # Every minute we log the number of TCP connections established at the end of |
| # the last period. |
| # |
| # Such a metric, when viewed over time, would help us understand the number of |
| # TCP connections that are building up in the system. A build-up can occur |
| # due to many long-lived sessions and/or TCP connections waiting to be |
| # purged by the stack. Such a wait occurs on passive close, waiting for |
| # application to initiate a close and on active close, waiting for certain |
| # timeouts to trigger. |
| # |
| # This is different from the socket_count metric above as the socket close |
| # and destruction triggered by the application is independent of the time TCP |
| # connections actually linger in the stack. |
| ################################################################################ |
| - id: 8 |
| metric_name: tcp_connections_established_total |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: tcp_connections_established_total |
| id: 1 |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| - report_name: tcp_connections_established_total_per_device_max |
| id: 2 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| |
| ################################################################################ |
| # tcp_connections_closed |
| # |
| # Every minute we log the number of established TCP connections that got closed |
| # because of passive or active TCP close by applications in the last minute. |
| ################################################################################ |
| - id: 9 |
| metric_name: tcp_connections_closed |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: tcp_connections_closed |
| id: 1 |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| - report_name: tcp_connections_closed_per_device_max |
| id: 2 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| |
| ################################################################################ |
| # tcp_connections_reset |
| # |
| # Every minute we log the number of established TCP connections that got aborted |
| # whenever a TCP RST was sent/received by the stack in the last period. |
| ################################################################################ |
| - id: 10 |
| metric_name: tcp_connections_reset |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: tcp_connections_reset |
| id: 1 |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| - report_name: tcp_connections_reset_per_device_max |
| id: 2 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| |
| ################################################################################ |
| # tcp_connections_timed_out |
| # |
| # Every minute we log the number of established TCP connections that got closed |
| # because of TCP keepalive timeout expiry in the last period. |
| ################################################################################ |
| - id: 11 |
| metric_name: tcp_connections_timed_out |
| metric_type: EVENT_COUNT |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| reports: |
| - report_name: tcp_connections_timed_out |
| id: 1 |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| - report_name: tcp_connections_timedout_per_device_max |
| id: 2 |
| report_type: PER_DEVICE_HISTOGRAM |
| aggregation_type: MAX |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| window_size: |
| - 1 |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 8 |
| initial_step: 25 |
| step_multiplier: 2 |
| |
| ############################################################################### |
| # dhcp_v6_configuration |
| # |
| # Every minute, if a device's DHCPv6 configuration has changed, we log the |
| # unique DHCPv6 configurations we've observed in the last minute (at most, this |
| # will be the cardinality of configuration_from_ndpra). |
| ############################################################################### |
| - id: 12 |
| metric_name: dhcp_v6_configuration |
| metric_type: EVENT_OCCURRED |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| metric_dimensions: |
| - dimension: configuration_from_ndpra |
| event_codes: |
| 0: no_configuration |
| 1: managed_address |
| 2: other_configurations |
| max_event_code: 7 |
| reports: |
| - report_name: dhcp_v6_configuration |
| id: 1 |
| report_type: UNIQUE_N_DAY_ACTIVES |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| local_privacy_noise_level: NONE |
| window_size: |
| - 1 |
| |
| ############################################################################### |
| # reachability_events |
| # |
| # When we observe reachability events (at most once a minute), we log them. |
| ############################################################################### |
| - id: 13 |
| metric_name: reachability_events |
| metric_type: EVENT_OCCURRED |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2021/05/21" |
| metric_dimensions: |
| - dimension: reachability_event |
| event_codes: |
| 0: unknown |
| 1: link_state_down |
| 2: link_state_up |
| max_event_code: 32 |