mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
zero/telemetry: add reporter (#4855)
This commit is contained in:
parent
3adbc65d37
commit
faa2a8652b
18 changed files with 425 additions and 203 deletions
|
@ -38,6 +38,7 @@ func Run(ctx context.Context, configFile string) error {
|
|||
controller.WithAPIToken(token),
|
||||
controller.WithClusterAPIEndpoint(getClusterAPIEndpoint()),
|
||||
controller.WithConnectAPIEndpoint(getConnectAPIEndpoint()),
|
||||
controller.WithOTELAPIEndpoint(getOTELAPIEndpoint()),
|
||||
controller.WithBootstrapConfigFileName(bootstrapConfigFileName),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -43,3 +43,10 @@ func getClusterAPIEndpoint() string {
|
|||
}
|
||||
return "https://console.pomerium.app/cluster/v1"
|
||||
}
|
||||
|
||||
func getOTELAPIEndpoint() string {
|
||||
if endpoint := os.Getenv("POMERIUM_OTEL_ENDPOINT"); endpoint != "" {
|
||||
return endpoint
|
||||
}
|
||||
return "https://telemetry.pomerium.app"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue