mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
@ -36,15 +36,22 @@ type metricsAgent struct {
|
||||
cfg *MetricsConfig
|
||||
influx influxdb2.Client
|
||||
writeApi api.WriteAPIBlocking
|
||||
envCache map[string]*envCacheEntry
|
||||
zCtx ziti.Context
|
||||
zListener edge.Listener
|
||||
shutdown chan struct{}
|
||||
joined chan struct{}
|
||||
}
|
||||
|
||||
type envCacheEntry struct {
|
||||
env string
|
||||
lastAccess time.Time
|
||||
}
|
||||
|
||||
func newMetricsAgent(cfg *MetricsConfig) *metricsAgent {
|
||||
ma := &metricsAgent{
|
||||
cfg: cfg,
|
||||
envCache: make(map[string]*envCacheEntry),
|
||||
shutdown: make(chan struct{}),
|
||||
joined: make(chan struct{}),
|
||||
}
|
||||
|
Reference in New Issue
Block a user