45a4057f60
Using the newly provided state store methods, we periodically emit usage metrics from the servers. We decided to emit these metrics from all servers, not just the leader, because that means we do not have to care about leader election flapping causing metrics turbulence, and it seems reasonable for each server to emit its own view of the state, even if they should always converge rapidly.
8 lines
175 B
Go
8 lines
175 B
Go
// +build !consulent
|
|
|
|
package usagemetrics
|
|
|
|
import "github.com/hashicorp/consul/agent/consul/state"
|
|
|
|
func (u *UsageMetricsReporter) emitEnterpriseUsage(state.ServiceUsage) {}
|