mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-16 08:16:18 +02:00
zero/healthchecks: add reporter
This commit is contained in:
parent
228242e43a
commit
111f794969
17 changed files with 414 additions and 200 deletions
|
@ -9,6 +9,7 @@ type controllerConfig struct {
|
|||
apiToken string
|
||||
clusterAPIEndpoint string
|
||||
connectAPIEndpoint string
|
||||
otelEndpoint string
|
||||
|
||||
tmpDir string
|
||||
bootstrapConfigFileName string
|
||||
|
@ -38,6 +39,13 @@ func WithConnectAPIEndpoint(endpoint string) Option {
|
|||
}
|
||||
}
|
||||
|
||||
// WithOTELAPIEndpoint sets the endpoint to use for the OTEL API
|
||||
func WithOTELAPIEndpoint(endpoint string) Option {
|
||||
return func(c *controllerConfig) {
|
||||
c.otelEndpoint = endpoint
|
||||
}
|
||||
}
|
||||
|
||||
// WithAPIToken sets the API token to use for authentication.
|
||||
func WithAPIToken(token string) Option {
|
||||
return func(c *controllerConfig) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue