Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions api/v1/region_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ const (
FailedToSync RegionPhase = "FailedToSync"
)

type MetricSource string

const (
KubeletMetricSource MetricSource = "kubelet"
ApiMetricSource MetricSource = "api"
)

type QdrantCloudRegionStatus struct {
// Phase specifies the current phase of the region
// +optional
Expand All @@ -74,6 +81,18 @@ type QdrantCloudRegionStatus struct {
// KubernetesDistribution specifies the distribution of the Kubernetes cluster
// +optional
KubernetesDistribution KubernetesDistribution `json:"k8sDistribution,omitempty"`
// Monitoring specifies monitoring status
// +optional
Monitoring Monitoring `json:"monitoring,omitempty"`
}

type Monitoring struct {
// CAdvisorMetricSource specifies the cAdvisor metric source
// +optional
CAdvisorMetricSource MetricSource `json:"cAdvisorMetricSource,omitempty"`
// NodeMetricSource specifies the node metric source
// +optional
NodeMetricSource MetricSource `json:"nodeMetricSource,omitempty"`
}

type RegionCapabilities struct {
Expand Down
16 changes: 16 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,17 @@ spec:
description: Message specifies the info explaining the current phase
of the region
type: string
monitoring:
description: Monitoring specifies monitoring status
properties:
cAdvisorMetricSource:
description: CAdvisorMetricSource specifies the cAdvisor metric
source
type: string
nodeMetricSource:
description: NodeMetricSource specifies the node metric source
type: string
type: object
numberOfNodes:
description: NumberOfNodes specifies the number of nodes in the Kubernetes
cluster
Expand Down
30 changes: 30 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,36 @@ _Appears in:_
| `pods` _[KubernetesPod](#kubernetespod)_ | Pods specifies the configuration of the Pods of the Qdrant StatefulSet. | | |


#### MetricSource

_Underlying type:_ _string_





_Appears in:_
- [Monitoring](#monitoring)



#### Monitoring







_Appears in:_
- [QdrantCloudRegionStatus](#qdrantcloudregionstatus)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `cAdvisorMetricSource` _[MetricSource](#metricsource)_ | CAdvisorMetricSource specifies the cAdvisor metric source | | |
| `nodeMetricSource` _[MetricSource](#metricsource)_ | NodeMetricSource specifies the node metric source | | |


#### NGINXConfig


Expand Down
Loading