Skip to content

Commit

Permalink
Show link to Looker event monitoring dashboard for all metrics with t…
Browse files Browse the repository at this point in the history
…ype=event (#2246)
  • Loading branch information
scholtzan authored Jun 4, 2024
1 parent 77fe338 commit f75b25f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion etl/glean_etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def write_glean_metadata(output_dir, functions_dir, app_names=None):
ping_data[ping_name].update(glam_metadata)

event_monitoring_metadata = get_looker_monitoring_metadata_for_event(
app, app_group, metric, ping_name
app, app_group, metric
)
if event_monitoring_metadata:
ping_data[ping_name].update({"event_monitoring": event_monitoring_metadata})
Expand Down
5 changes: 1 addition & 4 deletions etl/looker.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,7 @@ def get_looker_explore_metadata_for_metric(
return None


def get_looker_monitoring_metadata_for_event(app, app_group, metric, ping_name):
if ping_name != "events":
return None

def get_looker_monitoring_metadata_for_event(app, app_group, metric):
metric_type = metric.definition["type"]
if metric_type != "event":
return None
Expand Down

0 comments on commit f75b25f

Please sign in to comment.