mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-02 01:18:08 +02:00
telemetry: add method to push metrics on demand
This commit is contained in:
parent
927f24e1ff
commit
323b9ce900
4 changed files with 73 additions and 20 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