mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-01 08:58:05 +02:00
Merge branch 'wasaga/telemetry-refactor-reporter' into wasaga/telemetry-converter-1
This commit is contained in:
commit
7f80c0a8d6
3 changed files with 72 additions and 19 deletions
|
@ -143,7 +143,7 @@ func (c *controller) runMetricsReporterLeased(ctx context.Context, client databr
|
|||
return c.Str("service", "zero-reporter")
|
||||
})
|
||||
|
||||
return c.api.ReportMetrics(ctx,
|
||||
return c.api.ReportPeriodicMetrics(ctx,
|
||||
reporter.WithCollectInterval(time.Hour),
|
||||
reporter.WithMetrics(analytics.Metrics(func() databroker.DataBrokerServiceClient { return client })...),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue