Documentation
¶
Index ¶
- Constants
- func AddCommonLabels(labels map[string]string)
- func AppConfigName(cluster *capi.Cluster, app string) string
- func GetObservabilityBundleAppVersion(ctx context.Context, client client.Client, cluster *capi.Cluster) (version semver.Version, err error)
- func IsLoggingEnabled(cluster *capi.Cluster, enableLoggingFlag bool) bool
- func IsWorkloadCluster(installationName, clusterName string) bool
- func ObservabilityBundleAppMeta(cluster *capi.Cluster) metav1.ObjectMeta
- func ObservabilityBundleConfigMapMeta(cluster *capi.Cluster) metav1.ObjectMeta
- func ReadLokiIngressURL(ctx context.Context, cluster *capi.Cluster, client client.Client) (string, error)
- func ReadTempoIngressURL(ctx context.Context, cluster *capi.Cluster, client client.Client) (string, error)
- type ClusterLabels
Constants ¶
View Source
const ( // LoggingEnabledDefault defines if WCs logs are collected by default LoggingEnabledDefault = true // ReadUser is the global user for reading logs ReadUser = "read" // DefaultWriteTenant is the default tenant for writing logs DefaultWriteTenant = "giantswarm" // App name keys in the observability bundle AlloyLogsObservabilityBundleAppName = "alloyLogs" AlloyEventsObservabilityBundleAppName = "alloyEvents" // Alloy app name and namespace when using Alloy as logging agent. AlloyLogAgentAppName = "alloy-logs" PriorityClassName = "giantswarm-critical" // Alloy app name and namespace when using Alloy as events logger. AlloyEventsLoggerAppName = "alloy-events" // LokiMaxBackoffPeriod specifies the maximum retry backoff duration for Loki writes. LokiMaxBackoffPeriod = 10 * time.Minute // LokiRemoteTimeout configures the write timeout for remote Loki endpoints. LokiRemoteTimeout = 60 * time.Second LokiBaseURLFormat = "https://%s" LokiPushURLFormat = LokiBaseURLFormat + lokiAPIV1PushPath LoggingURL = "logging-url" LoggingTenantID = "logging-tenant-id" LokiRulerAPIURL = "ruler-api-url" // Logging credentials keys for Alloy config LoggingUsername = "logging-username" LoggingPassword = "logging-password" // Tracing credentials keys for Alloy config TracingUsername = "tracing-username" TracingPassword = "tracing-password" )
Variables ¶
This section is empty.
Functions ¶
func AddCommonLabels ¶
func AppConfigName ¶ added in v0.30.0
AppConfigName generates an app config name for the given cluster and app. This function can work with any cluster object.
func GetObservabilityBundleAppVersion ¶ added in v0.5.1
func IsWorkloadCluster ¶ added in v0.0.4
func ObservabilityBundleAppMeta ¶ added in v0.1.3
func ObservabilityBundleAppMeta(cluster *capi.Cluster) metav1.ObjectMeta
ObservabilityBundleAppMeta returns metadata for the observability bundle app.
func ObservabilityBundleConfigMapMeta ¶ added in v0.1.3
func ObservabilityBundleConfigMapMeta(cluster *capi.Cluster) metav1.ObjectMeta
ObservabilityBundleConfigMapMeta returns metadata for the observability bundle extra values configmap.
Types ¶
Click to show internal directories.
Click to hide internal directories.