prometheus persistence data store #1395
Answered
by
AlHood77
sun-solaris
asked this question in
Q&A
-
I would like to configure the prometheus to store the data for 1 month retention and pvc persistence storage. Anyone can help me? |
Beta Was this translation helpful? Give feedback.
Answered by
AlHood77
Sep 27, 2021
Replies: 1 comment
-
This is what I did: (assuming you are not using helm): prometheus+:: {
prometheus+: {
spec+: {
// If retention not specified, default will be '--storage.tsdb.retention=24h' passed to prometheus by prometheus-operator.
retention: '30d',
retentionSize: '8GB',
walCompression: true,
storage: {
volumeClaimTemplate: {
apiVersion: 'v1',
kind: 'PersistentVolumeClaim',
spec: {
accessModes: ['ReadWriteOnce'],
resources: { requests: { storage: '10Gi' } },
storageClassName: 'standard-encrypted',
},
},
},
},
},
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
paulfantom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what I did: (assuming you are not using helm):