Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeoutWaitForManagedResource = 5 * time.Minute
TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.
Functions ¶
Types ¶
type CentralConfigs ¶
type CentralConfigs struct { // AdditionalScrapeConfigs are additional scrape configs which cannot be modelled with the CRDs of the Prometheus // operator. AdditionalScrapeConfigs []string // PrometheusRules is a list of central PrometheusRule objects for this prometheus instance. PrometheusRules []*monitoringv1.PrometheusRule // ScrapeConfigs is a list of central ScrapeConfig objects for this prometheus instance. ScrapeConfigs []*monitoringv1alpha1.ScrapeConfig // ServiceMonitors is a list of central ServiceMonitor objects for this prometheus instance. ServiceMonitors []*monitoringv1.ServiceMonitor // PodMonitors is a list of central PodMonitor objects for this prometheus instance. PodMonitors []*monitoringv1.PodMonitor }
CentralConfigs contains configuration for this Prometheus instance that is created together with it. This should only contain configuration that cannot be directly assigned to another component package.
type Values ¶
type Values struct { // Name is the name of the prometheus. It will be used for the resource names of Prometheus and ManagedResource. Name string // Image defines the container image of prometheus. Image string // Version is the version of prometheus. Version string // PriorityClassName is the name of the priority class for the deployment. PriorityClassName string // StorageCapacity is the storage capacity of Prometheus. StorageCapacity resource.Quantity // RetentionSize is the size for the data retention. RetentionSize monitoringv1.ByteSize // VPAMinAllowed defines the resource list for the minAllowed field for the prometheus container resource policy. VPAMinAllowed *corev1.ResourceList // AdditionalPodLabels is a map containing additional labels for the created pods. AdditionalPodLabels map[string]string // CentralConfigs contains configuration for this Prometheus instance that is created together with it. This should // only contain configuration that cannot be directly assigned to another component package. CentralConfigs CentralConfigs // AdditionalResources contains any additional resources which get added to the ManagedResource. AdditionalResources []client.Object // DataMigration is a struct for migrating data from existing disks. // TODO(rfranzke): Remove this as soon as the PV migration code is removed. DataMigration monitoring.DataMigration }
Values contains configuration values for the prometheus resources.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.