[audio][drivers] Add audio_drivers additional metrics
Test: Build
Change-Id: If0b76ef6d891172a396eb1462c89a0b35ea51431
Reviewed-on: https://fuchsia-review.googlesource.com/c/cobalt-registry/+/576942
Reviewed-by: Steve Fung <stevefung@google.com>
Reviewed-by: Griffin Boyce <glamrock@google.com>
Privacy-Approval: Griffin Boyce <glamrock@google.com>
Commit-Queue: Andres Oportus <andresoportus@google.com>
diff --git a/fuchsia/audio_drivers/metrics.yaml b/fuchsia/audio_drivers/metrics.yaml
index 0e2f2c0..e5f67b7 100644
--- a/fuchsia/audio_drivers/metrics.yaml
+++ b/fuchsia/audio_drivers/metrics.yaml
@@ -9,7 +9,7 @@
metric_definitions:
################################################################################
-# Next Metric ID: 3
+# Next Metric ID: 5
################################################################################
################################################################################
@@ -85,3 +85,78 @@
meta_data:
max_release_stage: GA
expiration_date: "2022/05/06"
+
+################################################################################
+# seconds_until_first_error
+#
+# The number of seconds from boot to when the first codec error is detected.
+# Very infrequent.
+# Logged by a codec driver via Lapis.
+################################################################################
+- id: 3
+ metric_name: seconds_until_first_error
+ metric_units: SECONDS
+ metric_type: INTEGER
+ metric_semantics: [METRIC_SEMANTICS_UNSPECIFIED]
+ reports:
+ - report_name: histogram
+ id: 1
+ report_type: HOURLY_VALUE_HISTOGRAMS
+ privacy_level: NO_ADDED_PRIVACY
+ local_aggregation_procedure: MAX_PROCEDURE
+ int_buckets: &error_time_buckets
+ exponential:
+ floor: 1
+ num_buckets: 5
+ initial_step: 60
+ step_multiplier: 60
+ system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL]
+ - report_name: histogram_daily
+ id: 2
+ report_type: UNIQUE_DEVICE_HISTOGRAMS
+ local_aggregation_period: WINDOW_1_DAY
+ privacy_level: NO_ADDED_PRIVACY
+ local_aggregation_procedure: MAX_PROCEDURE
+ int_buckets: *error_time_buckets
+ system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL]
+ meta_data:
+ max_release_stage: GA
+ expiration_date: "2022/05/06"
+
+
+################################################################################
+# reset_count
+#
+# The number of codec resets.
+# Very infrequent.
+# Logged by a codec driver via Lapis.
+################################################################################
+- id: 4
+ metric_name: reset_count
+ metric_units_other: "reset_count"
+ metric_type: INTEGER
+ metric_semantics: [METRIC_SEMANTICS_UNSPECIFIED]
+ reports:
+ - report_name: histogram
+ id: 1
+ report_type: HOURLY_VALUE_HISTOGRAMS
+ privacy_level: NO_ADDED_PRIVACY
+ local_aggregation_procedure: MAX_PROCEDURE
+ int_buckets: &count_buckets
+ linear:
+ floor: 1
+ num_buckets: 8
+ step_size: 1
+ system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL]
+ - report_name: histogram_daily
+ id: 2
+ report_type: UNIQUE_DEVICE_HISTOGRAMS
+ local_aggregation_period: WINDOW_1_DAY
+ privacy_level: NO_ADDED_PRIVACY
+ local_aggregation_procedure: MAX_PROCEDURE
+ int_buckets: *count_buckets
+ system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL]
+ meta_data:
+ max_release_stage: GA
+ expiration_date: "2022/05/06"
+