#author("2026-05-06T12:41:38+00:00","default:sysosa","sysosa") #author("2026-05-06T12:44:42+00:00","default:sysosa","sysosa") cephの可視化ツール ceph dashboardは「管理UI」が目的. このGrafanaはPrometheusからのデータをグラフとかにして表示する機能を持つ. Grafanaは「Cephの健康状態をグラフで眺めるテレビ」 [[Ceph/Prometheus]]でPrometheusが稼働していて、あと同時にnode-exporterコンテナも各ノードで動いていれば表示可能となる 目下デプロイしているコンテナは #code(nonumber){{ [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の構築 [#pd122448] ここではまずは node-exporter コンテナを各ノードに追加させます(OSDノードは最低限) #code(nonumber){{ [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の導入 [#y7ac21e4] こちらも同じく設計書を作ってデプロイします #code(nonumber){{ [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なので既に手配が進んでいるようで #code(nonumber){{ [root@ceph-mgr ~]# ceph dashboard get-grafana-api-url https://ceph-mgr.sybyl.local:3000 [root@ceph-mgr ~]# }} と連携済みみたい. ***grafanaの表示 [#g9f9f0dc] dashboardの中にgrafanaのデータが表示されるわけではなく、別のgrafana画面が開きます。 リンク箇所は下記画面になります &ref(2026y05m06d_213321534.png,nolink,80%); リンクをクリックすると新たな画面が表示されて、 &ref(2026y05m06d_213321534.png,nolink,80%); 各項目ごとに詳細な内容が見れます &ref(2026y05m06d_213939061.png,nolink,70%); とか &ref(2026y05m06d_214101181.png,nolink,70%); とか &ref(2026y05m06d_214404235.png,nolink,70%); とかで。