github.com/pingcap/tiup@v1.15.1/components/dm/ansible/testdata/deploy_dir/172.19.0.101/scripts/run_prometheus.sh (about) 1 #!/bin/bash 2 set -e 3 ulimit -n 1000000 4 5 DEPLOY_DIR=/home/tidb/deploy 6 cd "${DEPLOY_DIR}" || exit 1 7 8 # WARNING: This file was auto-generated. Do not edit! 9 # All your edit might be overwritten! 10 exec > >(tee -i -a "/home/tidb/deploy/log/prometheus.log") 11 exec 2>&1 12 13 exec bin/prometheus \ 14 --config.file="/home/tidb/deploy/conf/prometheus.yml" \ 15 --web.listen-address=":9090" \ 16 --web.external-url="http://172.19.0.101:9090/" \ 17 --web.enable-admin-api \ 18 --log.level="info" \ 19 --storage.tsdb.path="/home/tidb/deploy/prometheus.data.metrics" \ 20 --storage.tsdb.retention="15d"