diff --git a/config/metricConfigs/index.ts b/config/metricConfigs/index.ts index d747d70..b48e184 100644 --- a/config/metricConfigs/index.ts +++ b/config/metricConfigs/index.ts @@ -1,5 +1,6 @@ import learnMetrics from './learnMetrics'; import skillAssessmentMetrics from './skillAssessmentMetrics'; import workspaceMetrics from './workspaceMetrics' +import teachMetrics from './teachMetrics'; -export default [...learnMetrics, ...skillAssessmentMetrics, ...workspaceMetrics]; +export default [...learnMetrics, ...skillAssessmentMetrics, ...workspaceMetrics, ...teachMetrics]; diff --git a/config/metricConfigs/teachMetrics.ts b/config/metricConfigs/teachMetrics.ts new file mode 100644 index 0000000..77cbf1c --- /dev/null +++ b/config/metricConfigs/teachMetrics.ts @@ -0,0 +1,30 @@ +import { MetricsConfig } from "../../src/aggregators/util"; + +const allowedMetrics: MetricsConfig = [ + { + name: "te_editor_page_load_time", + help: "Measures the time to load the teach editor", + type: "histogram", + labels: [ + { + name: "appName", + allowedValues: ["teach-editor"] + }, + { + name: "contentType", + allowedValues: [ + "course", + "assessment", + "practice", + ] + }, + { + name: "underThreshold", + allowedValues: ["true", "false"] + } + ], + protocol: "statsd" + }, +]; + +export default allowedMetrics;