-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathtelemetry.go
More file actions
29 lines (21 loc) · 1.24 KB
/
telemetry.go
File metadata and controls
29 lines (21 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package env
import "time"
// TelemetrySelfManagedURL is the configuration URL for self-managed instances.
const TelemetrySelfManagedURL = "hardcoded"
var (
// Phone-Home telemetry variables:
// TelemetryEndpoint is the URL to send telemetry to.
TelemetryEndpoint = RegisterSetting("ROX_TELEMETRY_ENDPOINT",
WithDefault("https://console.redhat.com/connections/api"), AllowEmpty())
// TelemetryConfigURL to retrieve the telemetry configuration from.
// AllowEmpty() allows for disabling the downloading, and for providing a
// custom key to release binary versions.
TelemetryConfigURL = RegisterSetting("ROX_TELEMETRY_CONFIG_URL", AllowEmpty(), WithDefault(TelemetrySelfManagedURL))
// TelemetryFrequency is the frequency at which we will report telemetry.
TelemetryFrequency = registerDurationSetting("ROX_TELEMETRY_FREQUENCY", 10*time.Minute)
// TelemetryStorageKey can be empty to disable telemetry collection.
TelemetryStorageKey = RegisterSetting("ROX_TELEMETRY_STORAGE_KEY_V1", AllowEmpty())
// ExecutionEnvironment specifies the context of the roxctl run. For example: "GHA" or "Tekton".
// The value will be sent within the Rh-Execution-Environment HTTP header.
ExecutionEnvironment = RegisterSetting("ROX_EXECUTION_ENV", AllowEmpty())
)