Skip to content

Commit f55b76a

Browse files
authored
Merge pull request #36 from wbollock/fix/execution_buckets
fix: populate execution buckets
2 parents b796746 + c3c1745 commit f55b76a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nagios_exporter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ func (e *Exporter) QueryAPIsAndUpdateMetrics(ch chan<- prometheus.Metric, sslVer
537537
)
538538

539539
ch <- prometheus.MustNewConstHistogram(
540-
hostsCheckLatency, uint64(hostsActiveCheckCount), hostsActiveCheckExecutionSum, map[float64]uint64{
540+
hostsCheckExecution, uint64(hostsActiveCheckCount), hostsActiveCheckExecutionSum, map[float64]uint64{
541541
0.01: uint64(hostsActiveCheckExecutionHundredthSecond),
542542
0.05: uint64(hostsActiveCheckExecutionFifthHundredthSecond),
543543
0.1: uint64(hostsActiveCheckExecutionTenthSecond),
@@ -643,7 +643,7 @@ func (e *Exporter) QueryAPIsAndUpdateMetrics(ch chan<- prometheus.Metric, sslVer
643643
)
644644

645645
ch <- prometheus.MustNewConstHistogram(
646-
servicesCheckLatency, uint64(servicesActiveCheckCount), servicesActiveCheckExecutionSum, map[float64]uint64{
646+
servicesCheckExecution, uint64(servicesActiveCheckCount), servicesActiveCheckExecutionSum, map[float64]uint64{
647647
0.01: uint64(servicesActiveCheckExecutionHundredthSecond),
648648
0.05: uint64(servicesActiveCheckExecutionFifthHundredthSecond),
649649
0.1: uint64(servicesActiveCheckExecutionTenthSecond),

0 commit comments

Comments
 (0)