0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GrafanaをローカルのDocker環境で動かす

Last updated at Posted at 2025-02-18

Grafanaとは

Grafanaはリアルタイムでデータを可視化・モニタリングを行ってくれるツールです。

デモ

GrafanaはOSSで、DockerHubで公開されているため、Grafanaのイメージを使用して構築します。
docker-compose.ymlに以下のコードを記載します。

docker-compose.yml
services:
  grafana:
    image: grafana/grafana:11.4.0
    container_name: grafana
    ports:
      - 3000:3000

以下のコマンドでコンテナを起動します。

$ docker-compose up -d

ブラウザでlocalhost:3000にアクセスするとGrafanaのログイン画面が表示されました。
初期ユーザー名とパスワードは共に「admin」です。これらを入力してログインします。

image.png

ログインすると以下の画面が表示されました。
現時点ではデータソースは未設定のためダッシュボードは作成できませんが、Grafanaの初期画面を表示させることができました!

image.png

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?