Documentation ¶
Index ¶
- Constants
- func CentralPrometheusRules(isWorkerless, wantsAlertmanager bool) []*monitoringv1.PrometheusRule
- func CentralScrapeConfigs(namespace, clusterCASecretName string, isWorkerless bool) []*monitoringv1alpha1.ScrapeConfig
- func CentralServiceMonitors(wantsAlertmanager bool) []*monitoringv1.ServiceMonitor
- func ClusterComponentScrapeConfigSpec(jobName string, sdConfig KubernetesServiceDiscoveryConfig, ...) monitoringv1alpha1.ScrapeConfigSpec
- type KubernetesServiceDiscoveryConfig
Constants ¶
View Source
const ( // Label is a constant for the label of the shoot prometheus instance. Label = "shoot" // ServiceAccountName is the name of the service account in the shoot cluster. ServiceAccountName = "prometheus-" + Label // AccessSecretName is the name of the secret containing a token for accessing the shoot cluster. AccessSecretName = gardenerutils.SecretNamePrefixShootAccess + ServiceAccountName )
Variables ¶
This section is empty.
Functions ¶
func CentralPrometheusRules ¶
func CentralPrometheusRules(isWorkerless, wantsAlertmanager bool) []*monitoringv1.PrometheusRule
CentralPrometheusRules returns the central PrometheusRule resources for the shoot prometheus.
func CentralScrapeConfigs ¶
func CentralScrapeConfigs(namespace, clusterCASecretName string, isWorkerless bool) []*monitoringv1alpha1.ScrapeConfig
CentralScrapeConfigs returns the central ScrapeConfig resources for the shoot prometheus.
func CentralServiceMonitors ¶
func CentralServiceMonitors(wantsAlertmanager bool) []*monitoringv1.ServiceMonitor
CentralServiceMonitors returns the central ServiceMonitor resources for the shoot prometheus.
func ClusterComponentScrapeConfigSpec ¶ added in v1.96.0
func ClusterComponentScrapeConfigSpec(jobName string, sdConfig KubernetesServiceDiscoveryConfig, allowedMetrics ...string) monitoringv1alpha1.ScrapeConfigSpec
ClusterComponentScrapeConfigSpec returns the standard spec for a scrape config for components running in the shoot cluster (in this case, the shoot's kube-apiserver is used as proxy to scrape the metrics).
Types ¶
type KubernetesServiceDiscoveryConfig ¶ added in v1.96.0
type KubernetesServiceDiscoveryConfig struct { Role monitoringv1alpha1.KubernetesRole // when 'Role' is 'pod' PodNamePrefix string ContainerName string ContainerPortName string // when 'Role' is 'endpoints' ServiceName string EndpointPortName string }
KubernetesServiceDiscoveryConfig is the configuration for the Kubernetes service discovery.
Click to show internal directories.
Click to hide internal directories.