Skip to content

Commit 34c9c81

Browse files
authored
fix: metric receive storage size (#56)
1 parent ced8d7a commit 34c9c81

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

metric_monitor/REMOTE_WRITE_WITH_THANOS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Core configuration for Thanos Receive in [thanos-receive.yml](./docker-compose/t
182182
##### 1. Storage configuration
183183
- Local Storage:
184184
`../receive-data:/receive/data` maps the host directory for metric TSDB storage.
185-
- Retention Policy: `--tsdb.retention=30d` auto-purges data older than 30 days. As tested, it takes about **6GB of disk space per month for one java-tron(v4.7.6+) FullNode**.
185+
- Retention Policy: The `--tsdb.retention=30d` flag automatically purges data older than 30 days. Based on testing with a java-tron(v4.7.6+) FullNode using a 1-second metric scrape interval, storage consumption averages approximately **8GB of disk space per month**.
186186

187187
- External Storage:
188188
`../conf:/receive` mounts configuration files. The `--objstore.config-file` flag enables long-term storage in MinIO/S3-compatible buckets. In this case, it is [bucket_storage_bucket.yml](conf/bucket_storage_bucket.yml).

metric_monitor/conf/prometheus-remote-write.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ remote_write:
3535
X-Service-Group: "tron-fullnode-group1"
3636
remote_timeout: 10s
3737
queue_config:
38-
capacity: 2500
38+
capacity: 25000
3939
max_shards: 200 # the maximum number of shards, or parallelism, Prometheus will use for each remote-write queue
4040
min_shards: 1
41-
max_samples_per_send: 500
41+
max_samples_per_send: 5000
4242
batch_send_deadline: 5s
43-
min_backoff: 30ms
43+
min_backoff: 200ms
4444
max_backoff: 5s
4545
metadata_config:
4646
send: true
4747
send_interval: 1s # How frequently metric metadata is sent to remote storage.
48-
max_samples_per_send: 500
48+
max_samples_per_send: 5000

0 commit comments

Comments
 (0)