LoginSignup
4
3

More than 5 years have passed since last update.

prometheusポート変更起動方法メモ

Last updated at Posted at 2018-12-13

問題

  • 諸事情によりprometheusのデフォルト9090ポートが使えない
  • そのためprometheusが起動できない
  • しようがないので8080ポートを使う
  • しかしなかなか起動できなかった
  • 解決したのでメモ

結論

  • ポートを変更する場合は起動オプションが必要だった

prometheusの場合

$ ./prometheus --config.file=./prometheus.yml --web.listen-address=:8080 &
$ ./prometheus --config.file=./prometheus.yml &

node exporterの場合

$ ./node_exporter --web.listen-address=:8080 &
$ ./node_exporter

alert managerの場合

$ ./alertmanager --config.file="alertmanager.yml" --web.listen-address=":8081" &
$ ./alertmanager --config.file="alertmanager.yml" &

エラー参考

level=error ts=2018-12-13T03:47:00.050290723Z caller=main.go:582 err="Opening storage failed open DB in data/: Locked by other process"
  • プロセスがファイルシステムを掴んでいるらしい。OS再起動したら治った
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3