[wlan][telemetry] Add new metric for counter stats failures. This metric should be able to detect a class of driver hangs. Bug: 111662 Change-Id: I28dd2da57761abed58293af5e1ea905c203c80e8 Reviewed-on: https://fuchsia-review.googlesource.com/c/cobalt-registry/+/742064 Reviewed-by: Kiet Tran <kiettran@google.com> Reviewed-by: Steve Fung <stevefung@google.com> Commit-Queue: Dylan Swiggett <swiggett@google.com> Privacy-Approval: Steve Fung <stevefung@google.com> (cherry picked from commit 92e09e1d3284dbf36aed7dcf620b003ac40010a2)
diff --git a/fuchsia/connectivity_wlan/metrics.yaml b/fuchsia/connectivity_wlan/metrics.yaml index b0ba390..06e2429 100644 --- a/fuchsia/connectivity_wlan/metrics.yaml +++ b/fuchsia/connectivity_wlan/metrics.yaml
@@ -2615,6 +2615,34 @@ num_buckets: 501 step_size: 1 +################################################################################ +# Multiple consecutive failures returned by GetCounterStats +# +# This is generally a symptom of a hangup in the underlying driver, which can +# cause this call to fail with a timeout. +################################################################################ +- id: 4052 + metric_name: consecutive_counter_stats_failures + metric_type: INTEGER + metric_units: METRIC_UNITS_OTHER + metric_units_other: "count" + metric_semantics: [USAGE_COUNTING] + <<: *ga_release_metadata + reports: + - id: 1 + report_name: device_daily_max_histograms + report_type: UNIQUE_DEVICE_HISTOGRAMS + system_profile_selection: SELECT_LAST + local_aggregation_period: WINDOW_1_DAY + local_aggregation_procedure: MAX_PROCEDURE + privacy_level: NO_ADDED_PRIVACY + system_profile_field: [BOARD_NAME, CHANNEL, SYSTEM_VERSION] + int_buckets: + linear: + floor: 0 + num_buckets: 101 + step_size: 1 + ################################################## ### 5XXX - Statistics metrics (Usage distribution) ##################################################