[emmc] Add eMMC error metric and report
This is a simple metric to track any eMMC IO errors. More granular
metrics will be added later if needed.
Test: CQ
Change-Id: I491f7d9a2ac66b2df338f5bc34c2369f348262d2
Reviewed-on: https://fuchsia-review.googlesource.com/c/cobalt-registry/+/576943
Reviewed-by: Cameron Dale <camrdale@google.com>
Reviewed-by: Zach Bush <zmbush@google.com>
Privacy-Approval: Cameron Dale <camrdale@google.com>
Commit-Queue: Braden Kell <bradenkell@google.com>
diff --git a/fuchsia/sdmmc/metrics.yaml b/fuchsia/sdmmc/metrics.yaml
index a2cef91..52656b5 100644
--- a/fuchsia/sdmmc/metrics.yaml
+++ b/fuchsia/sdmmc/metrics.yaml
@@ -9,7 +9,7 @@
metric_definitions:
################################################################################
-# Next Metric ID: 5
+# Next Metric ID: 6
################################################################################
################################################################################
@@ -147,3 +147,22 @@
meta_data:
max_release_stage: GA
expiration_date: "2022/07/27"
+
+################################################################################
+# sdmmc_io_error
+#
+# Total number of eMMC/SD IO errors, logged by the SDMMC block driver via Lapis.
+################################################################################
+- id: 5
+ metric_name: sdmmc_io_error
+ metric_type: OCCURRENCE
+ metric_semantics: [METRIC_SEMANTICS_UNSPECIFIED]
+ reports:
+ - report_name: total_count
+ id: 1
+ report_type: FLEETWIDE_OCCURRENCE_COUNTS
+ privacy_level: NO_ADDED_PRIVACY
+ system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL]
+ meta_data:
+ max_release_stage: GA
+ expiration_date: "2022/09/02"