Documentation ¶
Index ¶
- Constants
- func AdditionalScrapeConfigs() []string
- func CentralPrometheusRules(isGardenerDiscoveryServerEnabled bool) []*monitoringv1.PrometheusRule
- func CentralScrapeConfigs(prometheusAggregateTargets []monitoringv1alpha1.Target, ...) []*monitoringv1alpha1.ScrapeConfig
- func CentralServiceMonitors() []*monitoringv1.ServiceMonitor
Constants ¶
View Source
const ( // Label is a constant for the label of the garden prometheus instance. Label = "garden" // ServiceAccountName is the name of the service account in the virtual garden cluster. ServiceAccountName = "prometheus-" + Label // AccessSecretName is the name of the secret containing a token for accessing the virtual garden cluster. AccessSecretName = gardenerutils.SecretNamePrefixShootAccess + ServiceAccountName )
Variables ¶
This section is empty.
Functions ¶
func AdditionalScrapeConfigs ¶
func AdditionalScrapeConfigs() []string
AdditionalScrapeConfigs returns the additional scrape configs for the garden prometheus.
func CentralPrometheusRules ¶
func CentralPrometheusRules(isGardenerDiscoveryServerEnabled bool) []*monitoringv1.PrometheusRule
CentralPrometheusRules returns the central PrometheusRule resources for the garden prometheus.
func CentralScrapeConfigs ¶
func CentralScrapeConfigs(prometheusAggregateTargets []monitoringv1alpha1.Target, globalMonitoringSecret *corev1.Secret) []*monitoringv1alpha1.ScrapeConfig
CentralScrapeConfigs returns the central ScrapeConfig resources for the garden prometheus.
func CentralServiceMonitors ¶
func CentralServiceMonitors() []*monitoringv1.ServiceMonitor
CentralServiceMonitors returns the central ServiceMonitor resources for the garden prometheus.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.