Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from datacamp/split-ad-slos
Browse files Browse the repository at this point in the history
  • Loading branch information
Smidge authored Jul 11, 2022
2 parents b92ed22 + 66ff45a commit e61bb4c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion config/metricConfigs/learnMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const allowedMetrics: MetricsConfig = [
},
{
name: "widgetName",
allowedValues: ["StreaksWidget", "CoursesWidget", "PracticeWidget", "ProjectWidget", "SitewidePromoWidget", "TopAdWidget", "AssessmentWidget", "MyCoursesWidget", "SecondaryAlpaWidget"]
allowedValues: ["StreaksWidget", "CoursesWidget", "PracticeWidget", "ProjectWidget", "AssessmentWidget", "MyCoursesWidget", "SecondaryAlpaWidget"]
},
],
protocol: "statsd"
Expand Down Expand Up @@ -267,6 +267,26 @@ const allowedMetrics: MetricsConfig = [
],
protocol: "statsd"
},
{
name: "learn_hub__ad_loaded",
help: "Count the ads loaded on the learn hub dashboard and notify of any errors",
type: "counter",
labels: [
{
name: "appName",
allowedValues: ["/learn"]
},
{
name: "status",
allowedValues: ["success", "failure"]
},
{
name: "widgetName",
allowedValues: ["SitewidePromoWidget", "TopAdWidget"]
},
],
protocol: "statsd"
},
];

export default allowedMetrics;

0 comments on commit e61bb4c

Please sign in to comment.