Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the thanos v1beta1 API group +kubebuilder:object:generate=true +groupName=thanos.orangesys.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "thanos.orangesys.io", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Querier ¶
type Querier struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec QuerierSpec `json:"spec,omitempty"` Status QuerierStatus `json:"status,omitempty"` }
Querier is the Schema for the queriers API
func (*Querier) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Querier.
func (*Querier) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Querier) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuerierList ¶
type QuerierList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Querier `json:"items"` }
QuerierList contains a list of Querier
func (*QuerierList) DeepCopy ¶
func (in *QuerierList) DeepCopy() *QuerierList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuerierList.
func (*QuerierList) DeepCopyInto ¶
func (in *QuerierList) DeepCopyInto(out *QuerierList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuerierList) DeepCopyObject ¶
func (in *QuerierList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuerierSpec ¶
type QuerierSpec struct { // Standard object’s metadata. More info: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md // Metadata Labels and Annotations gets propagated to the prometheus pods. PodMetadata *metav1.ObjectMeta `json:"podMetadata,omitempty"` // ServiceMonitors to be selected for target discovery. ServiceMonitorSelector *metav1.LabelSelector `json:"serviceMonitorSelector,omitempty"` // Namespaces to be selected for ServiceMonitor discovery. If nil, only // check own namespace. ServiceMonitorNamespaceSelector *metav1.LabelSelector `json:"serviceMonitorNamespaceSelector,omitempty"` // Define resources requests and limits for single Pods. Resources corev1.ResourceRequirements `json:"resources,omitempty"` // Number of instances to deploy for a Prometheus deployment. Replicas *int32 `json:"replicas,omitempty"` // replicaLabel set query replica-label ReplicaLabel string `json:"replicaLabel,omitempty"` // storeDNS is storage gateway StoreDNS string `json:"storeDNS,omitempty"` // Image if specified has precedence over baseImage, tag and sha // combinations. Specifying the version is still necessary to ensure the // Prometheus Operator knows what version of Prometheus is being // configured. Image *string `json:"image,omitempty"` // Log level for Prometheus to be configured with. LogLevel string `json:"logLevel,omitempty"` }
QuerierSpec defines the desired state of Querier
func (*QuerierSpec) DeepCopy ¶
func (in *QuerierSpec) DeepCopy() *QuerierSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuerierSpec.
func (*QuerierSpec) DeepCopyInto ¶
func (in *QuerierSpec) DeepCopyInto(out *QuerierSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QuerierStatus ¶
type QuerierStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file DeploymentStatus appsv1.DeploymentStatus `json:"deploymentStatus,omitempty"` // serviceStatus contains the status of the Service managed by thanos reciver ServiceStatus corev1.ServiceStatus `json:"serviceStatus,omitempty"` // Total number of non-terminated pods targeted by this Prometheus deployment // that have the desired version spec. UpdatedReplicas int32 `json:"updatedReplicas"` // Total number of available pods (ready for at least minReadySeconds) // targeted by this Prometheus deployment. AvailableReplicas int32 `json:"availableReplicas"` UnavailableReplicas int32 `json:"unavailableReplicas"` }
QuerierStatus defines the observed state of Querier
func (*QuerierStatus) DeepCopy ¶
func (in *QuerierStatus) DeepCopy() *QuerierStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuerierStatus.
func (*QuerierStatus) DeepCopyInto ¶
func (in *QuerierStatus) DeepCopyInto(out *QuerierStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Receiver ¶
type Receiver struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ReceiverSpec `json:"spec,omitempty"` Status ReceiverStatus `json:"status,omitempty"` }
Receiver is the Schema for the receivers API
func (*Receiver) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Receiver.
func (*Receiver) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Receiver) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReceiverList ¶
type ReceiverList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Receiver `json:"items"` }
ReceiverList contains a list of Receiver
func (*ReceiverList) DeepCopy ¶
func (in *ReceiverList) DeepCopy() *ReceiverList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverList.
func (*ReceiverList) DeepCopyInto ¶
func (in *ReceiverList) DeepCopyInto(out *ReceiverList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReceiverList) DeepCopyObject ¶
func (in *ReceiverList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReceiverSpec ¶
type ReceiverSpec struct { // Standard object’s metadata. More info: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md // Metadata Labels and Annotations gets propagated to the prometheus pods. PodMetadata *metav1.ObjectMeta `json:"podMetadata,omitempty"` // ServiceMonitors to be selected for target discovery. ServiceMonitorSelector *metav1.LabelSelector `json:"serviceMonitorSelector,omitempty"` // Namespaces to be selected for ServiceMonitor discovery. If nil, only // check own namespace. ServiceMonitorNamespaceSelector *metav1.LabelSelector `json:"serviceMonitorNamespaceSelector,omitempty"` // Number of instances to deploy for a Prometheus deployment. Replicas *int32 `json:"replicas,omitempty"` // Version of Prometheus to be deployed. Version string `json:"version,omitempty"` // Tag of Prometheus container image to be deployed. Defaults to the value of `version`. // Version is ignored if Tag is set. Tag string `json:"tag,omitempty"` // If specified, the pod's scheduling constraints. Affinity *corev1.Affinity `json:"affinity,omitempty"` // Image if specified has precedence over baseImage, tag and sha // combinations. Specifying the version is still necessary to ensure the // Prometheus Operator knows what version of Prometheus is being // configured. Image *string `json:"image,omitempty"` BaseImage string `json:"baseImage,omitempty"` // Define resources requests and limits for single Pods. Resources corev1.ResourceRequirements `json:"resources,omitempty"` // Time duration Prometheus shall retain data for. Default is '24h', // and must match the regular expression `[0-9]+(ms|s|m|h|d|w|y)` (milliseconds seconds minutes hours days weeks years). Retention string `json:"retention,omitempty"` // The recieve prefix storage with tsdb ReceivePrefix string `json:"receivePrefix,omitempty"` // Log level for Prometheus to be configured with. LogLevel string `json:"logLevel,omitempty"` // the receiver labels to set with receiver config ReceiveLables string `json:"receiveLabels,omitempty"` // object storage type GCS OR S3 ObjectStorageType string `json:"objstoreType,omitempty"` // secret name is gcs iam secret name SecretName string `json:"secretName,omitempty"` // object storage bucket name need set object storage type BucketName string `json:"bucketName,omitempty"` // The labels to add to any time series or alerts when communicating with // external systems (federation, remote storage, Alertmanager). ExternalLabels map[string]string `json:"externalLabels,omitempty"` // Storage spec to specify how storage shall be used. Storage string `json:"storage,omitempty"` // Define which Nodes the Pods are scheduled on. NodeSelector map[string]string `json:"nodeSelector,omitempty"` // Secrets is a list of Secrets in the same namespace as the Prometheus // object, which shall be mounted into the Prometheus Pods. // The Secrets are mounted into /etc/prometheus/secrets/<secret-name>. Secrets []string `json:"secrets,omitempty"` // containers is entirely outside the scope of what the maintainers will support and by doing // so, you accept that this behaviour may break at any time without notice. Containers []corev1.Container `json:"containers,omitempty"` // ObjectStorageConfig configures object storage in Thanos. ObjectStorageConfig *corev1.SecretKeySelector `json:"objectStorageConfig,omitempty"` }
ReceiverSpec defines the desired state of Receiver
func (*ReceiverSpec) DeepCopy ¶
func (in *ReceiverSpec) DeepCopy() *ReceiverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverSpec.
func (*ReceiverSpec) DeepCopyInto ¶
func (in *ReceiverSpec) DeepCopyInto(out *ReceiverSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReceiverStatus ¶
type ReceiverStatus struct { // statefulSetStatus contains the status of the StatefulSet managed by Thanos StatefulSetStatus appsv1.StatefulSetStatus `json:"statefulSetStatus,omitempty"` // serviceStatus contains the status of the Service managed by thanos reciver ServiceStatus corev1.ServiceStatus `json:"serviceStatus,omitempty"` // Total number of non-terminated pods targeted by this Prometheus deployment // that have the desired version spec. UpdatedReplicas int32 `json:"updatedReplicas"` // Total number of available pods (ready for at least minReadySeconds) // targeted by this Prometheus deployment. AvailableReplicas int32 `json:"availableReplicas"` UnavailableReplicas int32 `json:"unavailableReplicas"` }
ReceiverStatus defines the observed state of Receiver
func (*ReceiverStatus) DeepCopy ¶
func (in *ReceiverStatus) DeepCopy() *ReceiverStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverStatus.
func (*ReceiverStatus) DeepCopyInto ¶
func (in *ReceiverStatus) DeepCopyInto(out *ReceiverStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Store ¶
type Store struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StoreSpec `json:"spec,omitempty"` Status StoreStatus `json:"status,omitempty"` }
Store is the Schema for the stores API
func (*Store) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Store.
func (*Store) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Store) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StoreList ¶
type StoreList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Store `json:"items"` }
StoreList contains a list of Store
func (*StoreList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoreList.
func (*StoreList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StoreList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StoreSpec ¶
type StoreSpec struct { // Standard object’s metadata. More info: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md // Metadata Labels and Annotations gets propagated to the prometheus pods. PodMetadata *metav1.ObjectMeta `json:"podMetadata,omitempty"` // ServiceMonitors to be selected for target discovery. ServiceMonitorSelector *metav1.LabelSelector `json:"serviceMonitorSelector,omitempty"` // Namespaces to be selected for ServiceMonitor discovery. If nil, only // check own namespace. ServiceMonitorNamespaceSelector *metav1.LabelSelector `json:"serviceMonitorNamespaceSelector,omitempty"` // Define resources requests and limits for single Pods. Resources corev1.ResourceRequirements `json:"resources,omitempty"` // object storage type GCS OR S3 ObjectStorageType string `json:"objstoreType,omitempty"` // secret name is gcs iam secret name SecretName string `json:"secretName,omitempty"` // object storage bucket name need set object storage type BucketName string `json:"bucketName,omitempty"` // Define which Nodes the Pods are scheduled on. NodeSelector map[string]string `json:"nodeSelector,omitempty"` // Secrets is a list of Secrets in the same namespace as the Prometheus // object, which shall be mounted into the Prometheus Pods. // The Secrets are mounted into /etc/prometheus/secrets/<secret-name>. Secrets []string `json:"secrets,omitempty"` // containers is entirely outside the scope of what the maintainers will support and by doing // so, you accept that this behaviour may break at any time without notice. Containers []corev1.Container `json:"containers,omitempty"` // ObjectStorageConfig configures object storage in Thanos. ObjectStorageConfig *corev1.SecretKeySelector `json:"objectStorageConfig,omitempty"` // DataDir is cache from objectstorage DataDir string `json:"dataDir,omitempty"` // IndexCacheSize is index cache size with store IndexCacheSize string `json:"indexCacheSize,omitempty"` // ChunkPoolSize is chunk pool size with store ChunkPoolSize string `json:"chunkPoolSize,omitempty"` // Image if specified has precedence over baseImage, tag and sha // combinations. Specifying the version is still necessary to ensure the // Prometheus Operator knows what version of Prometheus is being // configured. Image *string `json:"image,omitempty"` // Log level for Prometheus to be configured with. LogLevel string `json:"logLevel,omitempty"` }
StoreSpec defines the desired state of Store
func (*StoreSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoreSpec.
func (*StoreSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StoreStatus ¶
type StoreStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file // deploymentStatus contains the status of the deployment managed by Thanos DeploymentStatus appsv1.DeploymentStatus `json:"deploymentStatus,omitempty"` // serviceStatus contains the status of the Service managed by thanos reciver ServiceStatus corev1.ServiceStatus `json:"serviceStatus,omitempty"` // Total number of non-terminated pods targeted by this Prometheus deployment // that have the desired version spec. UpdatedReplicas int32 `json:"updatedReplicas"` // Total number of available pods (ready for at least minReadySeconds) // targeted by this Prometheus deployment. AvailableReplicas int32 `json:"availableReplicas"` UnavailableReplicas int32 `json:"unavailableReplicas"` }
StoreStatus defines the observed state of Store
func (*StoreStatus) DeepCopy ¶
func (in *StoreStatus) DeepCopy() *StoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoreStatus.
func (*StoreStatus) DeepCopyInto ¶
func (in *StoreStatus) DeepCopyInto(out *StoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.