Configure Prometheus to use non-default port

后端 未结 1 694
北荒
北荒 2020-12-19 06:48

I would like to install Prometheus on port 8080 instead of 9090 (its normal default). To this end I have edited /etc/systemd/system/prometheus.service to conta

相关标签:
1条回答
  • 2020-12-19 07:31

    The quotes were superfluous. This line will work:

    ExecStart=/usr/local/bin/prometheus \
      --config.file=/etc/prometheus.yaml --web.enable-admin-api \
      --web.listen-address=:8080
    
    0 讨论(0)
提交回复
热议问题