Skip to content

Commit

Permalink
Added --storage.tsdb.retention.size to retain data for certain size.
Browse files Browse the repository at this point in the history
Signed-off-by: Kushal Shukla <[email protected]>
  • Loading branch information
kushalShukla-web committed Nov 19, 2024
1 parent 1c39d4f commit aab03cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions prombench/docs/kind.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ metadata:
type: Opaque
stringData:
object-config.yml:
Regardless of the option chosen, data stored in Prometheus will only be retained based on the configured retention settings (`--storage.tsdb.retention.size`).
> **⚠️ Warning:** The benchmark will change its basis when the retention size limit is reached and older downloaded blocks are deleted. Ensure that you have sufficient retention settings configured to avoid data loss that could affect benchmarking results.
3. Deploy the Kubernetes objects:
> **_Note:_** If you encounter a `too many files open` error caused by promtail, increase the default value of `/proc/sys/fs/inotify/max_user_instances` from 128 to 512:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ spec:
"--web.external-url=http://{{ .DOMAIN_NAME }}/{{ .PR_NUMBER }}/prometheus-pr",
"--storage.tsdb.path=/prometheus",
"--config.file=/etc/prometheus/prometheus.yml",
"--log.level=debug"
"--log.level=debug",
"--storage.tsdb.retention.size=5GB"
]
volumeMounts:
- name: config-volume
Expand Down Expand Up @@ -199,7 +200,8 @@ spec:
"--web.external-url=http://{{ .DOMAIN_NAME }}/{{ .PR_NUMBER }}/prometheus-release",
"--storage.tsdb.path=/prometheus",
"--config.file=/etc/prometheus/prometheus.yml",
"--log.level=debug"
"--log.level=debug",
"--storage.tsdb.retention.size=5GB"
]
volumeMounts:
- name: config-volume
Expand Down

0 comments on commit aab03cb

Please sign in to comment.