You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
372 B

  1. #!/bin/sh
  2. [ -e /etc/config/prometheus ] || touch /etc/config/prometheus
  3. uci -q get prometheus.prometheus || {
  4. uci -q batch <<EOF
  5. set prometheus.prometheus=prometheus
  6. set prometheus.prometheus.config_file='/etc/prometheus.yml'
  7. set prometheus.prometheus.storage_tsdb_path='/data'
  8. set prometheus.prometheus.web_listen_address='127.0.0.1:9090'
  9. commit prometheus
  10. EOF
  11. }