Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
b97f4fd8
Commit
b97f4fd8
authored
Dec 14, 2016
by
huydx
Committed by
huydx
Dec 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(typo) Exeuction -> Execution
parent
63bf3320
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pkg/metrics/metrics.go
+2
-2
pkg/services/alerting/eval_handler.go
+1
-1
No files found.
pkg/metrics/metrics.go
View file @
b97f4fd8
...
...
@@ -50,7 +50,7 @@ var (
// Timers
M_DataSource_ProxyReq_Timer
Timer
M_Alerting_Exe
uction_Time
Timer
M_Alerting_Exe
cution_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_Exe
uc
tion_Time
=
RegTimer
(
"alerting.execution_time"
)
M_Alerting_Exe
cu
tion_Time
=
RegTimer
(
"alerting.execution_time"
)
// StatTotals
M_Alerting_Active_Alerts
=
RegGauge
(
"alerting.active_alerts"
)
...
...
pkg/services/alerting/eval_handler.go
View file @
b97f4fd8
...
...
@@ -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_Exe
uc
tion_Time
.
Update
(
elapsedTime
)
metrics
.
M_Alerting_Exe
cu
tion_Time
.
Update
(
elapsedTime
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment