3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

FreeBSD で Prometheus & Grafana を動かしてみる

Last updated at Posted at 2018-12-10

FreeBSD11.2でPrometheusとGrafanaを動かしてみます
(動かすだけです)

環境

| ソフトウェア | バージョン |
|---|---|---|
| FreeBSD | 11.2 |
| Prometheus | 2.5.0 |
| Grafana | 5.3.4 |

pkgでprometheusのインストール

$ sudo pkg install -y prometheus grafana5

※prometheus1系の場合はprometheus1があるのでこちらをインストール
※grafanaは5以外にgrafana(1系)、grafana2、grafana3、grafana4があります

Prometheus & Grafana を起動

$ sudo sysrc prometheus_enable="YES"
$ sudo sysrc grafana_enable="YES"
$ sudo /usr/local/etc/rc.d/prometheus start
$ sudo /usr/local/etc/rc.d/grafana start

Prometheusの設定ファイルは/usr/local/etc/prometheus.yml
Grafanaの設定ファイルは/usr/local/etc/grafana.conf

Prometheusにブラウザからアクセス

http://サーバのIPアドレス:9090/
prometheus

Grafanaにブラウザからアクセス

http://サーバのIPアドレス:3000/
ID:admin, PASS: adminでログインできます
prometheus

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?