Skip to content

Commit 9eddd5a

Browse files
leplatremchuttenBenWu
authored
RMST-302: Create a derived dataset for Remote Settings uptake telemetry (#9085)
* RMST-302: Create a derived dataset for Remote Settings uptake telemetry * remove group by and counting to keep extra fields * mimic suggest queries * @chutten review * OR REPLACE * Use normal view * Update sql/moz-fx-data-shared-prod/monitoring_derived/remote_settings_uptake_live_v1/metadata.yaml Co-authored-by: Chris H-C <chutten@users.noreply.github.com> * Update sql/moz-fx-data-shared-prod/monitoring_derived/remote_settings_uptake_live_v1/view.sql Co-authored-by: Ben Wu <12437227+BenWu@users.noreply.github.com> * Update sql/moz-fx-data-shared-prod/monitoring_derived/remote_settings_uptake_live_v1/view.sql Co-authored-by: Chris H-C <chutten@users.noreply.github.com> * Change to monitoring namespace * Apply suggestions from code review Co-authored-by: Ben Wu <12437227+BenWu@users.noreply.github.com> * Remove _v1 suffix * format sql --------- Co-authored-by: Chris H-C <chutten@users.noreply.github.com> Co-authored-by: Ben Wu <12437227+BenWu@users.noreply.github.com> Co-authored-by: bwu <bewu@mozilla.com>
1 parent 456e1ac commit 9eddd5a

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
friendly_name: Remote Settings Uptake Live
2+
description: |-
3+
Used to query our clients' synchronization uptake and visualize telemetry rates
4+
in Grafana as a cross check for operational monitoring of the Remote Settings service.
5+
owners:
6+
- fx-delivery-tools@mozilla.com
7+
labels:
8+
authorized: true
9+
workgroup_access:
10+
- role: roles/bigquery.dataViewer
11+
members:
12+
- workgroup:remote-settings/telescope
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
CREATE OR REPLACE VIEW
2+
`moz-fx-data-shared-prod.monitoring.remote_settings_uptake_live`
3+
AS
4+
SELECT
5+
submission_timestamp,
6+
SAFE_CAST(
7+
mozfun.norm.truncate_version(client_info.app_display_version, 'major') AS INTEGER
8+
) AS major_version,
9+
client_info.client_id AS client_id,
10+
'desktop' AS platform,
11+
normalized_channel,
12+
normalized_os,
13+
normalized_os_version,
14+
normalized_country_code,
15+
-- Extra attributes
16+
-- See https://searchfox.org/firefox-main/rev/1427c88632d1474d/services/common/metrics.yaml
17+
mozfun.map.get_key(e.extra, 'value') AS extra_status, -- It's 'status' in our uptake.
18+
mozfun.map.get_key(e.extra, 'trigger') AS extra_trigger,
19+
mozfun.map.get_key(e.extra, 'source') AS extra_source,
20+
mozfun.map.get_key(e.extra, 'errorName') AS extra_errorname,
21+
mozfun.map.get_key(e.extra, 'timestamp') AS extra_timestamp,
22+
SAFE_CAST(mozfun.map.get_key(e.extra, 'age') AS INT64) AS extra_age,
23+
SAFE_CAST(mozfun.map.get_key(e.extra, 'duration') AS INT64) AS extra_duration,
24+
FROM
25+
`moz-fx-data-shared-prod.firefox_desktop_live.events_v1`
26+
INNER JOIN
27+
UNNEST(events) AS e
28+
ON e.category = 'uptake.remotecontent.result'
29+
AND e.name = 'uptake_remotesettings'

0 commit comments

Comments
 (0)