tiup
tiup copied to clipboard
Support flexible configuration of run_prometheus.sh
Feature Request
Is your feature request related to a problem? Please describe:
1、Limit prometheus query spreading: --query.timeout="5s" # default 2m --query.max-concurrency=5 # default 20
2、Speed up restart time: --enable-feature=memory-snapshot-on-shutdown
3、Enable WAL compression: --storage.tsdb.wal-compression
All these optimizations need to be configured through run_prometheus.sh,eg:
exec bin/prometheus/prometheus
--config.file="/data1/webank_test11/tidb-deploy/prometheus-9291/conf/prometheus.yml"
--web.listen-address=":9291"
--web.external-url="http://172.16.4.204:9291/"
--web.enable-admin-api
--log.level="info"
*--query.timeout="500ms"
--query.max-concurrency=1
--enable-feature=memory-snapshot-on-shutdown *
--storage.tsdb.path="/data1/webank_test11/tidb-data/prometheus-9291"
--storage.tsdb.retention="30d"
Describe the feature you'd like:
Why the featue is needed:
All these optimizations need to be configured through run_prometheus.sh
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy: