Prometheus.spec.alerting.alertmanagers[].tlsConfig.cert.spec.shardRetentionPolicy
shardRetentionPolicy defines the retention policy for the Prometheus shards. (Beta) Using this mode requires the `PrometheusShardRetentionPolicy` feature gate (enabled by default).
| Field / Type | Description |
|---|---|
retain defines the config for retention when the retention policy is set to `Retain`. If not defined, the operator will use the retention duration configured for the Prometheus data. If the resource uses size-based retention, the shard(s) are kept forever (unless manually deleted). | |
whenScaled | whenScaled defines the retention policy when the Prometheus shards are scaled down. * `Delete`, the operator will delete the pods from the scaled-down shard(s). * `Retain`, the operator will keep the pods from the scaled-down shard(s), so the data can still be queried. If not defined, the operator assumes the `Delete` value.
|