prometheus operator v0.93.1

Prometheus.spec.remoteRead[].oauth2.tlsConfig.keySecret.spec.shardRetentionPolicy

shardRetentionPolicy defines the retention policy for the Prometheus shards. (Beta) Using this mode requires the `PrometheusShardRetentionPolicy` feature gate (enabled by default).

2 fields
Prometheus.spec.remoteRead[].oauth2.tlsConfig.keySecret.spec.shardRetentionPolicy fields and descriptions
Field / TypeDescription
object

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
string

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.

  • enum: ["Retain","Delete"]