Documentation ¶
Index ¶
- Constants
- func APIUrl(obj interface{}) string
- func AlertmanagerDefaultCPU() *resource.Quantity
- func AlertmanagerDefaultMemory() *resource.Quantity
- func AlertmanagerKey() string
- func AlertmanagerLabels() map[string]string
- func AlertmanagerSecretName() string
- func ApiServerAuthenticationType(ctx context.Context, k8sClient k8sclient.Interface, clusterNamespace string) (string, error)
- func CAPICertificateName(cluster metav1.Object) string
- func ClusterID(cluster metav1.Object) string
- func ClusterNamespace(cluster metav1.Object) string
- func ClusterProvider(obj metav1.Object, provider cluster.Provider) (string, error)
- func ClusterType(installation string, obj interface{}) string
- func EtcdSecret(installation string, obj interface{}) string
- func GetClusterAppsNamespace(cluster metav1.Object, installation string, provider cluster.Provider) string
- func GetClusterShardingStrategy(cluster metav1.Object) (*agent.ShardingStrategy, error)
- func GetServicePriority(cluster metav1.Object) string
- func Heartbeat() string
- func HeartbeatAPI(cluster metav1.Object, installation string) string
- func HeartbeatName(cluster metav1.Object, installation string) string
- func HeartbeatReceiverName(cluster metav1.Object, installation string) string
- func IsCAPIManagementCluster(provider cluster.Provider) bool
- func IsEKSCluster(obj interface{}) bool
- func IsInfrastructureRefNotFoundError(err error) bool
- func IsManagementCluster(installation string, obj interface{}) bool
- func IsMonitoringDisabled(cluster metav1.Object) bool
- func IsWrongType(err error) bool
- func Namespace(cluster metav1.Object) string
- func NamespaceDefault(cluster metav1.Object) string
- func PrometheusAdditionalScrapeConfigsName() string
- func PrometheusAdditionalScrapeConfigsSecretName() string
- func PrometheusContainerName() string
- func PrometheusDefaultCPU() *resource.Quantity
- func PrometheusDefaultCPULimit() *resource.Quantity
- func PrometheusDefaultMemory() *resource.Quantity
- func PrometheusDefaultMemoryLimit() *resource.Quantity
- func PrometheusLabels(cluster metav1.Object) map[string]string
- func PrometheusPort() int32
- func PrometheusSTSName(cluster metav1.Object) string
- func RemoteWriteAPIEndpointConfigSecretName(cluster metav1.Object, provider cluster.Provider) string
- func RemoteWriteAuthenticationAnnotations(baseDomain string, externalDNS bool) map[string]string
- func RemoteWriteConfigName(cluster metav1.Object) string
- func RemoteWriteSecretName(cluster metav1.Object) string
- func ToCluster(obj interface{}) (metav1.Object, error)
Constants ¶
View Source
const ( MonitoringNamespace = "monitoring" DefaultServicePriority string = "highest" ClusterLabel string = "giantswarm.io/cluster" MonitoringLabel string = "giantswarm.io/monitoring" ServicePriorityLabel string = "giantswarm.io/service-priority" TeamLabel string = "application.giantswarm.io/team" OpsGenieApiKey string = "opsGenieApiKey" // #nosec G101 AlertmanagerGlobalSecretName string = "alertmanager-global" // PrometheusCPULimitCoefficient is the number used to compute the CPU limit from the CPU request. // It is used when computing VPA settings, to set `max requests` so that `max limits` respects MaxCPU factor. PrometheusCPULimitCoefficient float64 = 1.5 // PrometheusMemoryLimitCoefficient is the number used to compute the memory limit from the memory request. // It is used when computing VPA settings, to set `max request` so that `max limits` respect MaxMemory factor. PrometheusMemoryLimitCoefficient float64 = 1 PrometheusMetaOperatorRemoteWriteName string = "prometheus-meta-operator" PrometheusServiceName = "prometheus-operated" // RemoteWriteAPIEndpointConfigSecretNameKey is the secret name used by a Prometheus client to access the Prometheus remote write endpoint. It is used at https://github.com/giantswarm/observability-bundle/blob/main/helm/observability-bundle/templates/apps.yaml RemoteWriteAPIEndpointConfigSecretNameKey string = "remote-write-api-endpoint-config" // RemoteWriteIngressAuthSecretName is the secret name referenced in the ingress to enable authentication against the Prometheus remote write endpoint. RemoteWriteIngressAuthSecretName string = "remote-write-ingress-auth" // PrometheusVolumeSizeAnnotation is the annotation referenced in the Cluster CR to define the size of Prometheus Volume. PrometheusVolumeSizeAnnotation string = "monitoring.giantswarm.io/prometheus-volume-size" // We apply a ratio to the volume storage size to compute the RetentionSize property (RetentionSize = 90% volume storage size) PrometheusVolumeStorageLimitRatio = 0.85 ClusterIDKey string = "cluster_id" ClusterTypeKey string = "cluster_type" CustomerKey string = "customer" InstallationKey string = "installation" OrganizationKey string = "organization" PipelineKey string = "pipeline" ProviderKey string = "provider" RegionKey string = "region" ServicePriorityKey string = "service_priority" TypeKey string = "type" IngressClassName string = "nginx" BearerTokenPath string = "/var/run/secrets/kubernetes.io/serviceaccount/token" // nolint:gosec CAFilePath string = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" EtcdSecretSourceName string = "etcd-certs" EtcdSecretSourceNamespace string = "giantswarm" APIServerCertificatesSecretName string = "cluster-certificates" // nolint:gosec )
Variables ¶
This section is empty.
Functions ¶
func AlertmanagerDefaultCPU ¶
func AlertmanagerKey ¶
func AlertmanagerKey() string
func AlertmanagerLabels ¶
func AlertmanagerSecretName ¶
func AlertmanagerSecretName() string
func CAPICertificateName ¶
func ClusterNamespace ¶
func ClusterProvider ¶
func ClusterType ¶
func EtcdSecret ¶
func GetClusterAppsNamespace ¶
func GetClusterShardingStrategy ¶
func GetClusterShardingStrategy(cluster metav1.Object) (*agent.ShardingStrategy, error)
func GetServicePriority ¶
func HeartbeatReceiverName ¶
func IsCAPIManagementCluster ¶
func IsEKSCluster ¶
func IsEKSCluster(obj interface{}) bool
func IsInfrastructureRefNotFoundError ¶
IsInvalidConfig asserts invalidConfigError.
func IsManagementCluster ¶
func IsMonitoringDisabled ¶
func NamespaceDefault ¶
func PrometheusAdditionalScrapeConfigsName ¶
func PrometheusAdditionalScrapeConfigsName() string
func PrometheusAdditionalScrapeConfigsSecretName ¶
func PrometheusAdditionalScrapeConfigsSecretName() string
func PrometheusContainerName ¶
func PrometheusContainerName() string
func PrometheusDefaultCPU ¶
func PrometheusDefaultMemory ¶
func PrometheusPort ¶
func PrometheusPort() int32
func PrometheusSTSName ¶
func RemoteWriteConfigName ¶
func RemoteWriteSecretName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.