Commit b97f4fd8 by huydx Committed by huydx

(typo) Exeuction -> Execution

parent 63bf3320
...@@ -50,7 +50,7 @@ var ( ...@@ -50,7 +50,7 @@ var (
// Timers // Timers
M_DataSource_ProxyReq_Timer Timer M_DataSource_ProxyReq_Timer Timer
M_Alerting_Exeuction_Time Timer M_Alerting_Execution_Time Timer
// StatTotals // StatTotals
M_Alerting_Active_Alerts Gauge M_Alerting_Active_Alerts Gauge
...@@ -115,7 +115,7 @@ func initMetricVars(settings *MetricSettings) { ...@@ -115,7 +115,7 @@ func initMetricVars(settings *MetricSettings) {
// Timers // Timers
M_DataSource_ProxyReq_Timer = RegTimer("api.dataproxy.request.all") 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 // StatTotals
M_Alerting_Active_Alerts = RegGauge("alerting.active_alerts") M_Alerting_Active_Alerts = RegGauge("alerting.active_alerts")
......
...@@ -61,5 +61,5 @@ func (e *DefaultEvalHandler) Eval(context *EvalContext) { ...@@ -61,5 +61,5 @@ func (e *DefaultEvalHandler) Eval(context *EvalContext) {
context.NoDataFound = noDataFound context.NoDataFound = noDataFound
context.EndTime = time.Now() context.EndTime = time.Now()
elapsedTime := context.EndTime.Sub(context.StartTime) / time.Millisecond 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