github.com/braveheart12/insolar-09-08-19@v0.8.7/scripts/prom/run.sh (about)

     1  #!/bin/bash
     2  
     3  # Starts prometheus server for launchnet metrics collection.
     4  # uses port 9990 (default 9090 mysteriously clash with default insolard metrics port)
     5  #
     6  # with argsument c (continue) removes previous collected data:
     7  # ./scripts/prom/run.sh c
     8  
     9  set -e
    10  if [[ "$1" != "c" ]]; then
    11      echo "Clean Prometheus data dir"
    12      rm -rf scripts/prom/data/
    13  fi
    14  echo "Prometheus data dir size before start:" && du -sh scripts/prom/data/ || true
    15  prometheus --config.file ./scripts/prom/server.yml --storage.tsdb.path=./scripts/prom/data --web.listen-address="0.0.0.0:9990"
    16  echo "Prometheus data dir size after start:" && du -sh scripts/prom/data/