Skip to content

Commit

Permalink
Add tcp-checker checked_total metric to registry (#19)
Browse files Browse the repository at this point in the history
The metric is not exposed as it is not registered on the Prometheus registry. It
should be, so this change adds it the the register call.
  • Loading branch information
Bjørn authored Feb 13, 2020
1 parent 59e55ea commit d96c60b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ func NewPrometheusReporter(reg prometheus.Registerer, logger Logger) (*Prometheu
r.tcpChecker.open,
r.tcpChecker.connectedTotal,
r.tcpChecker.disconectedTotal,
r.tcpChecker.checks,
r.ikeSA.establishedSeconds,
r.ikeSA.packetsIn,
r.ikeSA.packetsOut,
Expand Down

0 comments on commit d96c60b

Please sign in to comment.