[sampler] Adding Lapis connectivity-wlan config
This change added sampler config file for connectivity wlan, for now
there is only one metric configured in this file for brcmfmac firmware
recovery.
Bug: 59364
Test: Manually verified the functionality with "iquery show core/sampler"
Change-Id: I75446a28b48ce810cf2becdd81371bdca117bf3a
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/511564
Reviewed-by: Luke Nicholson <lukenicholson@google.com>
Commit-Queue: Zhiyi Chen <zhiyichen@google.com>
diff --git a/src/diagnostics/sampler/BUILD.gn b/src/diagnostics/sampler/BUILD.gn
index 2b95c79..5ba8806 100644
--- a/src/diagnostics/sampler/BUILD.gn
+++ b/src/diagnostics/sampler/BUILD.gn
@@ -79,6 +79,7 @@
"config/fvm.json",
"config/sysmem.json",
"config/system-update-committer.json",
+ "config/connectivity-wlan.json",
]
}
diff --git a/src/diagnostics/sampler/config/connectivity-wlan.json b/src/diagnostics/sampler/config/connectivity-wlan.json
new file mode 100644
index 0000000..c479dc5
--- /dev/null
+++ b/src/diagnostics/sampler/config/connectivity-wlan.json
@@ -0,0 +1,12 @@
+{
+ "project_id" : 3708719327,
+ "poll_rate_sec" : 1800,
+ "metrics": [
+ {
+ "selector": "bootstrap/driver_manager:root/brcmfmac-phy:fw_recovered",
+ "metric_id": 340,
+ "metric_type": "Occurrence",
+ "event_codes": []
+ }
+ ]
+}