Skip to content

Commit 0d3d2de

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent f022061 commit 0d3d2de

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

pkg/api/v1/cluster_types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,14 @@ type MonitoringConfiguration struct {
22222222
// you need this functionality, you can create a PodMonitor manually.
22232223
// +optional
22242224
PodMonitorRelabelConfigs []monitoringv1.RelabelConfig `json:"podMonitorRelabelings,omitempty"`
2225+
2226+
// The interval during which metrics computed from queries are considered current.
2227+
// Once it is exceeded, a new scrape will trigger a rerun
2228+
// of the queries.
2229+
// If not set, defaults to 30 seconds, in line with Prometheus scraping defaults.
2230+
// Setting this to zero disables the caching mechanism and can cause heavy load on the PostgreSQL server.
2231+
// +optional
2232+
MetricsQueriesTTL *metav1.Duration `json:"metricsQueriesTTL,omitempty"`
22252233
}
22262234

22272235
// ClusterMonitoringTLSConfiguration is the type containing the TLS configuration

pkg/api/v1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)