cephの可視化ツール

ceph dashboardは「管理UI」が目的. このGrafanaはPrometheusからのデータをグラフとかにして表示する機能を持つ.
Grafanaは「Cephの健康状態をグラフで眺めるテレビ」

Ceph/PrometheusでPrometheusが稼働していて、あと同時にnode-exporterコンテナも各ノードで動いていれば表示可能となる
目下デプロイしているコンテナは

[root@ceph-mgr ~]# ceph orch ls
NAME              PORTS        RUNNING  REFRESHED  AGE  PLACEMENT
alertmanager      ?:9093,9094      1/1  5m ago     18h  ceph-mgr
crash                              7/7  6m ago     3w   *
mds.emfs                           2/2  47s ago    3w   count:2;label:mds
mgr                                2/2  5m ago     3w   count:2;label:mgr
mon                                3/3  48s ago    3w   count:3;label:mon
osd.osd01_custom                     2  6m ago     3w   ceph-osd01
osd.osd02_custom                     2  47s ago    3w   ceph-osd02
osd.osd03_custom                     2  114s ago   3w   ceph-osd03
prometheus        ?:9095           1/1  5m ago     18h  ceph-mgr
 
[root@ceph-mgr ~]# ceph orch ps ceph-mgr
NAME                   HOST      PORTS        STATUS         REFRESHED  AGE  MEM USE  MEM LIM  VERSION  IMAGE ID      CONTAINER ID
alertmanager.ceph-mgr  ceph-mgr  *:9093,9094  running (5h)      5m ago  18h    21.1M        -  0.28.1   91c01b3cec9b  a59a412343e4
crash.ceph-mgr         ceph-mgr               running (19h)     5m ago   3w    19.2M        -  20.2.1   fb63cba66eea  ed24078efa6d
mgr.ceph-mgr.nwgopq    ceph-mgr  *:8443,8765  running (19h)     5m ago   3w     738M        -  20.2.1   fb63cba66eea  d8361cc56882
prometheus.ceph-mgr    ceph-mgr  *:9095       running (18h)     5m ago  18h    67.1M        -  3.6.0    4fcecf061b74  4e9a9ce8ec2d
 
[root@ceph-mgr ~]# ceph -s
 :
    mgr: ceph-mgr.nwgopq(active, since 18h), standbys: ceph-mon01.oedwwx
 :
[root@ceph-mgr ~]#

となっていて、ceph-mgrにてprometheusとalertmanagerが動いている。
大規模なcephなら複数のprometheusがあってもいいみたい。ここでは1コンテナのままです。

node-exporterの構築

ここではまずは node-exporter コンテナを各ノードに追加させます(OSDノードは最低限)

[root@ceph-mgr ~]# cat node-exporter.yaml
service_type: node-exporter
service_name: node-exporter
placement:
  host_pattern: '*'
 
[root@ceph-mgr ~]# ceph orch apply -i node-exporter.yaml --dry-run
 :
####################
SERVICESPEC PREVIEWS
####################
+---------------+---------------+----------------------------------------------------------------------------+-------------+
|SERVICE        |NAME           |ADD_TO                                                                      |REMOVE_FROM  |
+---------------+---------------+----------------------------------------------------------------------------+-------------+
|node-exporter  |node-exporter  |ceph-mon02 ceph-mon01 ceph-mgr ceph-mon03 ceph-osd02 ceph-osd01 ceph-osd03  |             |
+---------------+---------------+----------------------------------------------------------------------------+-------------+
 :
[root@ceph-mgr ~]# ceph orch apply -i node-exporter.yaml
 
[root@ceph-mgr ~]# ceph orch ps --service_name node-exporter
NAME                      HOST        PORTS   STATUS         REFRESHED  AGE  MEM USE  MEM LIM  VERSION  IMAGE ID      CONTAINER ID
node-exporter.ceph-mgr    ceph-mgr    *:9100  running (12m)    25s ago  12m    10.6M        -  1.9.1    255ec253085f  c570aea9061f
node-exporter.ceph-mon01  ceph-mon01  *:9100  running (12m)    93s ago  12m    10.6M        -  1.9.1    255ec253085f  afe869283af6
node-exporter.ceph-mon02  ceph-mon02  *:9100  running (12m)    94s ago  12m    10.2M        -  1.9.1    255ec253085f  aa288e91d0ca
node-exporter.ceph-mon03  ceph-mon03  *:9100  running (11m)    93s ago  11m    10.7M        -  1.9.1    255ec253085f  47a8c90fdee4
node-exporter.ceph-osd01  ceph-osd01  *:9100  running (11m)    93s ago  11m    11.7M        -  1.9.1    255ec253085f  9f45d4fe550e
node-exporter.ceph-osd02  ceph-osd02  *:9100  running (11m)    93s ago  11m    12.3M        -  1.9.1    255ec253085f  9a2294701dca
node-exporter.ceph-osd03  ceph-osd03  *:9100  running (11m)    93s ago  11m    10.2M        -  1.9.1    255ec253085f  93294310932d
 
[root@ceph-mgr ~]#

これでnode-exporterコンテナが各ノードで動きました

次に Grafana を導入します

Grafanaの導入

こちらも同じく設計書を作ってデプロイします

[root@ceph-mgr ~]# cat grafana.yaml
service_type: grafana
service_name: grafana
placement:
  hosts:
    - ceph-mgr
 
[root@ceph-mgr ~]# ceph orch apply -i grafana.yaml --dry-run
 :
####################
SERVICESPEC PREVIEWS
####################
+---------+---------+----------+-------------+
|SERVICE  |NAME     |ADD_TO    |REMOVE_FROM  |
+---------+---------+----------+-------------+
|grafana  |grafana  |ceph-mgr  |             |
+---------+---------+----------+-------------+
 :
[root@ceph-mgr ~]# ceph orch apply -i grafana.yaml
 
[root@ceph-mgr ~]# ceph orch ps --service_name grafana
NAME              HOST      PORTS   STATUS         REFRESHED  AGE  MEM USE  MEM LIM  VERSION  IMAGE ID      CONTAINER ID
grafana.ceph-mgr  ceph-mgr  *:3000  running (44s)    38s ago  43s    43.4M        -  12.3.1   5cdab57891ea  35cfd4d2875e
 
[root@ceph-mgr ~]#

これで ceph-mgr の port 3000 にてgrafanaが動いている事が分かります
これをdashboardに繋げるのですが、cephadmなので既に手配が進んでいるようで

[root@ceph-mgr ~]# ceph dashboard get-grafana-api-url
https://ceph-mgr.sybyl.local:3000
 
[root@ceph-mgr ~]#

と連携済みみたい.

grafanaの表示

dashboardの中にgrafanaのデータが表示されるわけではなく、別のgrafana画面が開きます。
リンク箇所は下記画面になります
2026y05m06d_213321534.png

リンクをクリックすると新たな画面が表示されて、
2026y05m06d_213321534.png

各項目ごとに詳細な内容が見れます

2026y05m06d_213939061.png
とか
2026y05m06d_214101181.png
とか
2026y05m06d_214404235.png
とかで。

最新の60件
2026-06-08 2026-06-06 2026-06-05 2026-06-04 2026-06-03 2026-05-31 2026-05-28 2026-05-26 2026-05-23 2026-05-22 2026-05-21 2026-05-20 2026-05-19 2026-05-18 2026-05-12 2026-05-11 2026-05-08 2026-05-06
  • Ceph/Grafana
2026-05-05 2026-05-03 2026-04-30 2026-04-29 2026-04-28 2026-04-27 2026-04-25 2026-04-24 2026-04-22 2026-04-21 2026-04-12 2026-04-08 2026-04-06 2026-04-05 2026-04-02 2026-03-26 2026-03-23 2026-03-21 2026-03-19 2026-03-15 2026-03-14

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2026-05-06 (水) 21:44:42