swarm/metrics: Send the accounting registry to InfluxDB (#18470)

(cherry picked from commit f28da4f602)
This commit is contained in:
Jerzy Lasyk
2019-01-24 18:57:20 +01:00
committed by Rafael Matias
parent 7ae2a7bd84
commit 320d132925
4 changed files with 50 additions and 43 deletions

View File

@@ -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.