aboutsummaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
authorJerzy Lasyk <jerzylasyk@gmail.com>2019-01-25 01:57:20 +0800
committerRafael Matias <rafael@skyle.net>2019-02-20 00:34:42 +0800
commit320d132925ca0452272f80bfa7af491e5f7d39e5 (patch)
tree373ab5b21e9669680bf4cf55cd1f39792e8dc989 /metrics
parent7ae2a7bd84e7ee738874916dd07c9f2020c4fabb (diff)
downloaddexon-320d132925ca0452272f80bfa7af491e5f7d39e5.tar.gz
dexon-320d132925ca0452272f80bfa7af491e5f7d39e5.tar.zst
dexon-320d132925ca0452272f80bfa7af491e5f7d39e5.zip
swarm/metrics: Send the accounting registry to InfluxDB (#18470)
(cherry picked from commit f28da4f602fcd17624cf6d40d070253dd6663121)
Diffstat (limited to 'metrics')
-rw-r--r--metrics/registry.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/metrics/registry.go b/metrics/registry.go
index c1cf7906c..c5435adf2 100644
--- a/metrics/registry.go
+++ b/metrics/registry.go
@@ -312,8 +312,9 @@ func (r *PrefixedRegistry) UnregisterAll() {
}
var (
- DefaultRegistry = NewRegistry()
- EphemeralRegistry = NewRegistry()
+ DefaultRegistry = NewRegistry()
+ EphemeralRegistry = NewRegistry()
+ AccountingRegistry = NewRegistry() // registry used in swarm
)
// Call the given function for each registered metric.