| # 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. |
| |
| ################################################################################ |
| # Cobalt Project: local_storage |
| ################################################################################ |
| |
| metric_definitions: |
| |
| ################################################################################ |
| # Link Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent to link a file, in nanoseconds. |
| ################################################################################ |
| - id: 1 |
| metric_name: link_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: link_latency_histogram |
| id: 2203712145 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # Close Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent to close an open file, in nanoseconds. |
| ################################################################################ |
| - id: 2 |
| metric_name: close_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: close_latency_histogram |
| id: 3976766327 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| ################################################################################ |
| # Read Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent to read file contents, in nanoseconds. |
| ################################################################################ |
| - id: 3 |
| metric_name: read_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: read_latency_histogram |
| id: 4000776865 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # Write Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent to write a file, in nanoseconds. |
| ################################################################################ |
| - id: 4 |
| metric_name: write_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: write_latency_histogram |
| id: 2787504078 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # Append Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent appending to a file, in nanoseconds. |
| ################################################################################ |
| - id: 5 |
| metric_name: append_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: append_latency_histogram |
| id: 4159068221 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # Truncate Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent truncating a file's size, in nanoseconds. |
| ################################################################################ |
| - id: 6 |
| metric_name: truncate_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: truncate_latency_histogram |
| id: 4157122023 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # SetAttr Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent to update its attributes, in nanoseconds. |
| ################################################################################ |
| - id: 7 |
| metric_name: set_attr_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: set_attr_latency_histogram |
| id: 2824692351 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # GetAttr Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent to return its attributes, in nanoseconds. |
| ################################################################################ |
| - id: 8 |
| metric_name: get_attr_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 1 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: get_attr_latency_histogram |
| id: 296311099 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # Sync Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent syncing its state to disk, in nanoseconds. |
| ################################################################################ |
| - id: 9 |
| metric_name: sync_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: sync_latency_histogram |
| id: 3117694120 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # ReadDir Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent reading directory entries, in nanoseconds. |
| ################################################################################ |
| - id: 10 |
| metric_name: read_dir_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: read_dir_latency_histogram |
| id: 1707841577 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # LookUp Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the time a vnode spent looking up a child, in nanoseconds. |
| ################################################################################ |
| - id: 11 |
| metric_name: lookup_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: lookup_latency_histogram |
| id: 3629837219 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| ################################################################################ |
| # Create Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the the time spent creating a new vnode, in nanoseconds. |
| ################################################################################ |
| - id: 12 |
| metric_name: create_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: create_latency_histogram |
| id: 3690266605 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| |
| |
| ################################################################################ |
| # UnLink Latency |
| # |
| # A histogram, aggregated in-process and logged to Cobalt every few minutes, |
| # of the the time a vnode spent unlinking, in nanoseconds. |
| ################################################################################ |
| - id: 13 |
| metric_name: unlink_latency |
| metric_type: INT_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 10 |
| initial_step: 10000 |
| step_multiplier: 2 |
| reports: |
| ############################################################################ |
| # A fleet-wide histogram report |
| ############################################################################ |
| - report_name: unlink_latency_histogram |
| id: 3128110576 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| ################################################################################ |
| # Corruption Event |
| # |
| # A corruption event logs a '1' every time a component detects corruption. This |
| # can be either data or metadata corruption depending on the source. |
| ################################################################################ |
| - id: 14 |
| metric_name: corruption_events |
| # This will always log a single event (1). |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| - dimension: "source" |
| event_codes: |
| 0: Unknown |
| 1: Fvm |
| 2: BlobFs |
| 3: MinFs |
| - dimension: "corruption_type" |
| event_codes: |
| 0: Unknown |
| 1: Data |
| 2: Metadata |
| reports: |
| ############################################################################ |
| # A fleet-wide summary. |
| ############################################################################ |
| - report_name: corruption_summary |
| id: 1809599655 # legacy long report_id |
| report_type: EVENT_COMPONENT_OCCURRENCE_COUNT |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| |
| - report_name: corruption_per_device |
| id: 1110247575 # legacy long report_id |
| report_type: PER_DEVICE_NUMERIC_STATS |
| window_size: |
| - 1 |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/03/20" |
| ################################################################################ |
| # FTL: Wear Count |
| # |
| # A counter representing the highest wear count of the FTL driver. |
| # |
| # A NAND block has an expected lifetime in erase cycles. An erase must occur |
| # before anything can be written (updating data). |
| # |
| # This count is the highest number of erase cycles per block, across all |
| # erase blocks in the NAND device. |
| # |
| # This metric allows observing how the FTL wear leveling algorithm is performing, |
| # such that the device lifetime is maximized, because the higher the wear the |
| # more probable the block is expected to fail. |
| # |
| # Sampling Frequency: Once per FTL Driver initialization, usually once per boot. |
| # |
| # + |measured_at|: refers to the moment the metric was sampled during |
| # device's lifecycle. |
| ################################################################################ |
| - id: 15 |
| metric_name: wear_count |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| - dimension: "measured_at" |
| event_codes: |
| 0: Unknown |
| 1: Initialization |
| reports: |
| ############################################################################ |
| # A fleet-wide summary. |
| ############################################################################ |
| - report_name: wear_count_per_device |
| id: 1 |
| report_type: PER_DEVICE_NUMERIC_STATS |
| aggregation_type: MAX |
| window_size: |
| - 1 |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| - report_name: wear_count_histogram_per_device |
| id: 2 |
| report_type: INT_RANGE_HISTOGRAM |
| int_buckets: |
| exponential: |
| floor: 0 |
| num_buckets: 20 |
| initial_step: 1 |
| step_multiplier: 2 |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2021/02/24" |
| ################################################################################ |
| # Compression format |
| # |
| # Total file sizes (in bytes) per compression format. |
| # |
| # Currently only supported by blobfs. When blobfs is starting up after boot, we |
| # compute the total (uncompressed) sizes of all blobs per compression format, |
| # and log the counts to Cobalt. |
| # |
| ################################################################################ |
| - id: 16 |
| metric_name: compression_format |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| - dimension: "source" |
| event_codes: |
| 0: Unknown |
| 1: BlobFs |
| - dimension: "format" |
| event_codes: |
| 0: Unknown |
| 1: Uncompressed |
| 2: LZ4 |
| 3: ZSTD |
| 4: ZSTDSeekable |
| reports: |
| ############################################################################ |
| # A per-device histogram report. |
| ############################################################################ |
| - report_name: compression_per_device_histogram |
| id: 1 |
| report_type: PER_DEVICE_HISTOGRAM |
| ########################################################################## |
| # Since we only log the count once per boot, we use MAX here in case a |
| # device reboots several times during the day. |
| ########################################################################## |
| aggregation_type: MAX |
| int_buckets: |
| linear: |
| step_size: 20971520 # 20MB |
| num_buckets: 100 |
| window_size: |
| - 1 # 1 day |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2021/03/20" |