zero/healthchecks: add reporter

This commit is contained in:
Denis Mishin 2023-12-13 10:50:39 -05:00
parent 228242e43a
commit 111f794969
17 changed files with 414 additions and 200 deletions

View file

@ -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://otel.pomerium.app"
}