Documentation ¶
Index ¶
- Constants
- func AddCommonLabels(labels map[string]string)
- func GetObservabilityBundleAppVersion(lc loggedcluster.Interface, client client.Client, ctx context.Context) (version semver.Version, err error)
- func GrafanaAgentExtraSecretName() string
- func IsLoggingEnabled(lc loggedcluster.Interface) bool
- func IsWorkloadCluster(lc loggedcluster.Interface) bool
- func ObservabilityBundleAppMeta(lc loggedcluster.Interface) metav1.ObjectMeta
- func ObservabilityBundleConfigMapMeta(lc loggedcluster.Interface) metav1.ObjectMeta
- func ReadProxyIngressURL(ctx context.Context, lc loggedcluster.Interface, client client.Client) (string, error)
Constants ¶
View Source
const ( // ReadUser is the global user for reading logs ReadUser = "read" // Possible values for --logging-agent flag. LoggingAgentPromtail = "promtail" LoggingAgentAlloy = "alloy" // App name keys in the observability bundle AlloyObservabilityBundleAppName = "alloyLogs" PromtailObservabilityBundleAppName = "promtail" PromtailObservabilityBundleLegacyAppName = "promtail-app" // Alloy app name and namespace when using Alloy as logging agent. AlloyLogAgentAppName = "alloy-logs" AlloyLogAgentAppNamespace = "kube-system" MaxBackoffPeriod = "10m" LokiURLFormat = "https://%s/loki/api/v1/push" )
View Source
const ObservabilityBundleAppName string = "observability-bundle"
Variables ¶
This section is empty.
Functions ¶
func AddCommonLabels ¶
func GetObservabilityBundleAppVersion ¶ added in v0.5.1
func GrafanaAgentExtraSecretName ¶ added in v0.2.0
func GrafanaAgentExtraSecretName() string
func IsLoggingEnabled ¶
func IsLoggingEnabled(lc loggedcluster.Interface) bool
func IsWorkloadCluster ¶ added in v0.0.4
func IsWorkloadCluster(lc loggedcluster.Interface) bool
func ObservabilityBundleAppMeta ¶ added in v0.1.3
func ObservabilityBundleAppMeta(lc loggedcluster.Interface) metav1.ObjectMeta
ObservabilityBundleAppMeta returns metadata for the observability bundle app.
func ObservabilityBundleConfigMapMeta ¶ added in v0.1.3
func ObservabilityBundleConfigMapMeta(lc loggedcluster.Interface) metav1.ObjectMeta
ObservabilityBundleConfigMapMeta returns metadata for the observability bundle extra values configmap.
func ReadProxyIngressURL ¶ added in v0.9.0
func ReadProxyIngressURL(ctx context.Context, lc loggedcluster.Interface, client client.Client) (string, error)
Read Proxy URL from ingress
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.