Commit 9cd04768 by Carl Bergquist Committed by GitHub

Merge pull request #6953 from huydx/typo-execution

(typo) Exeuction -> Execution
parents 9510f213 b97f4fd8
......@@ -50,7 +50,7 @@ var (
// Timers
M_DataSource_ProxyReq_Timer Timer
M_Alerting_Exeuction_Time Timer
M_Alerting_Execution_Time Timer
// StatTotals
M_Alerting_Active_Alerts Gauge
......@@ -115,7 +115,7 @@ func initMetricVars(settings *MetricSettings) {
// Timers
M_DataSource_ProxyReq_Timer = RegTimer("api.dataproxy.request.all")
M_Alerting_Exeuction_Time = RegTimer("alerting.execution_time")
M_Alerting_Execution_Time = RegTimer("alerting.execution_time")
// StatTotals
M_Alerting_Active_Alerts = RegGauge("alerting.active_alerts")
......
......@@ -61,5 +61,5 @@ func (e *DefaultEvalHandler) Eval(context *EvalContext) {
context.NoDataFound = noDataFound
context.EndTime = time.Now()
elapsedTime := context.EndTime.Sub(context.StartTime) / time.Millisecond
metrics.M_Alerting_Exeuction_Time.Update(elapsedTime)
metrics.M_Alerting_Execution_Time.Update(elapsedTime)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment