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
12 changes: 12 additions & 0 deletions api/v1/collectionpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ type Exclusions struct {
// Spark Applications Exclusions
ExcludedSparkApplications []ExcludedSparkApplication `json:"excludedSparkApplications,omitempty"`
ExcludedScheduledSparkApplications []ExcludedScheduledSparkApplication `json:"excludedScheduledSparkApplications,omitempty"`

// CloudNativePG Exclusions
ExcludedCNPGClusters []ExcludedCNPGCluster `json:"excludedCNPGClusters,omitempty"`
}

// Common exclusion patterns
Expand Down Expand Up @@ -422,6 +425,15 @@ type ExcludedScheduledSparkApplication struct {
Name string `json:"name"`
}

// ExcludedCNPGCluster identifies a CloudNativePG cluster to exclude from collection
type ExcludedCNPGCluster struct {
// Namespace is the CNPG cluster's namespace
Namespace string `json:"namespace"`

// Name is the CNPG cluster's name
Name string `json:"name"`
}

// Policies defines collection behavior
type Policies struct {
// KubeContextName is the name of the current context being used to apply the installation yaml
Expand Down
20 changes: 20 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.

17 changes: 17 additions & 0 deletions config/crd/bases/devzero.io_collectionpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ spec:
exclusions:
description: Exclusions specifies resources to exclude from collection
properties:
excludedCNPGClusters:
description: CloudNativePG Exclusions
items:
description: ExcludedCNPGCluster identifies a CloudNativePG
cluster to exclude from collection
properties:
name:
description: Name is the CNPG cluster's name
type: string
namespace:
description: Namespace is the CNPG cluster's namespace
type: string
required:
- name
- namespace
type: object
type: array
excludedCRDGroups:
items:
type: string
Expand Down
1 change: 1 addition & 0 deletions config/prometheus/hack.prometheus.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ serverFiles:
regex: "node_network_(receive|transmit)_(bytes|packets|errs|drop)_total|node_disk_(read_bytes|written_bytes|reads_completed|writes_completed)_total|kubelet_volume_stats_(used|capacity|available)_bytes"
source_labels:
- __name__

## DEVZERO COMMENTED OUT TO PREVENT SCRAPING
# # Example Scrape config for pods which should be scraped slower. An useful example
# # would be stackriver-exporter which queries an API on every scrape of the pod
Expand Down
8 changes: 8 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@ rules:
- get
- list
- watch
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
8 changes: 8 additions & 0 deletions dist/backend-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,14 @@ rules:
- get
- list
- watch
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
8 changes: 8 additions & 0 deletions dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,14 @@ rules:
- get
- list
- watch
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
8 changes: 8 additions & 0 deletions dist/installer_updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,14 @@ rules:
- get
- list
- watch
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
8 changes: 8 additions & 0 deletions dist/zxporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,14 @@ rules:
- get
- list
- watch
- apiGroups:
- postgresql.cnpg.io
resources:
- clusters
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
95 changes: 91 additions & 4 deletions gen/api/v1/apiv1connect/cluster.connect.go

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

Loading
Loading