Ceph/Grafana をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
cephの可視化ツール
ceph dashboardは「管理UI」が目的. このGrafanaはPrometheus...
Grafanaは「Cephの健康状態をグラフで眺めるテレビ」
[[Ceph/Prometheus]]でPrometheusが稼働していて、あと同時に...
目下デプロイしているコンテナは
#code(nonumber){{
[root@ceph-mgr ~]# ceph orch ls
NAME PORTS RUNNING REFRESHED AGE P...
alertmanager ?:9093,9094 1/1 5m ago 18h c...
crash 7/7 6m ago 3w *
mds.emfs 2/2 47s ago 3w c...
mgr 2/2 5m ago 3w c...
mon 3/3 48s ago 3w c...
osd.osd01_custom 2 6m ago 3w c...
osd.osd02_custom 2 47s ago 3w c...
osd.osd03_custom 2 114s ago 3w c...
prometheus ?:9095 1/1 5m ago 18h c...
[root@ceph-mgr ~]# ceph orch ps ceph-mgr
NAME HOST PORTS STATUS ...
alertmanager.ceph-mgr ceph-mgr *:9093,9094 running (5h...
crash.ceph-mgr ceph-mgr running (19...
mgr.ceph-mgr.nwgopq ceph-mgr *:8443,8765 running (19...
prometheus.ceph-mgr ceph-mgr *:9095 running (18...
[root@ceph-mgr ~]# ceph -s
:
mgr: ceph-mgr.nwgopq(active, since 18h), standbys: ce...
:
[root@ceph-mgr ~]#
}}
となっていて、ceph-mgrにてprometheusとalertmanagerが動い...
大規模なcephなら複数のprometheusがあってもいいみたい。こ...
***node-exporterの構築 [#pd122448]
ここではまずは node-exporter コンテナを各ノードに追加させ...
#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 ...
:
####################
SERVICESPEC PREVIEWS
####################
+---------------+---------------+------------------------...
|SERVICE |NAME |ADD_TO ...
+---------------+---------------+------------------------...
|node-exporter |node-exporter |ceph-mon02 ceph-mon01 ce...
+---------------+---------------+------------------------...
:
[root@ceph-mgr ~]# ceph orch apply -i node-exporter.yaml
[root@ceph-mgr ~]# ceph orch ps --service_name node-expor...
NAME HOST PORTS STATUS ...
node-exporter.ceph-mgr ceph-mgr *:9100 running (12...
node-exporter.ceph-mon01 ceph-mon01 *:9100 running (12...
node-exporter.ceph-mon02 ceph-mon02 *:9100 running (12...
node-exporter.ceph-mon03 ceph-mon03 *:9100 running (11...
node-exporter.ceph-osd01 ceph-osd01 *:9100 running (11...
node-exporter.ceph-osd02 ceph-osd02 *:9100 running (11...
node-exporter.ceph-osd03 ceph-osd03 *:9100 running (11...
[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-...
:
####################
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 REFRES...
grafana.ceph-mgr ceph-mgr *:3000 running (44s) 38s ...
[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のデータが表示されるわけではなく、...
リンク箇所は下記画面になります
&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%);
とかで。
終了行:
cephの可視化ツール
ceph dashboardは「管理UI」が目的. このGrafanaはPrometheus...
Grafanaは「Cephの健康状態をグラフで眺めるテレビ」
[[Ceph/Prometheus]]でPrometheusが稼働していて、あと同時に...
目下デプロイしているコンテナは
#code(nonumber){{
[root@ceph-mgr ~]# ceph orch ls
NAME PORTS RUNNING REFRESHED AGE P...
alertmanager ?:9093,9094 1/1 5m ago 18h c...
crash 7/7 6m ago 3w *
mds.emfs 2/2 47s ago 3w c...
mgr 2/2 5m ago 3w c...
mon 3/3 48s ago 3w c...
osd.osd01_custom 2 6m ago 3w c...
osd.osd02_custom 2 47s ago 3w c...
osd.osd03_custom 2 114s ago 3w c...
prometheus ?:9095 1/1 5m ago 18h c...
[root@ceph-mgr ~]# ceph orch ps ceph-mgr
NAME HOST PORTS STATUS ...
alertmanager.ceph-mgr ceph-mgr *:9093,9094 running (5h...
crash.ceph-mgr ceph-mgr running (19...
mgr.ceph-mgr.nwgopq ceph-mgr *:8443,8765 running (19...
prometheus.ceph-mgr ceph-mgr *:9095 running (18...
[root@ceph-mgr ~]# ceph -s
:
mgr: ceph-mgr.nwgopq(active, since 18h), standbys: ce...
:
[root@ceph-mgr ~]#
}}
となっていて、ceph-mgrにてprometheusとalertmanagerが動い...
大規模なcephなら複数のprometheusがあってもいいみたい。こ...
***node-exporterの構築 [#pd122448]
ここではまずは node-exporter コンテナを各ノードに追加させ...
#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 ...
:
####################
SERVICESPEC PREVIEWS
####################
+---------------+---------------+------------------------...
|SERVICE |NAME |ADD_TO ...
+---------------+---------------+------------------------...
|node-exporter |node-exporter |ceph-mon02 ceph-mon01 ce...
+---------------+---------------+------------------------...
:
[root@ceph-mgr ~]# ceph orch apply -i node-exporter.yaml
[root@ceph-mgr ~]# ceph orch ps --service_name node-expor...
NAME HOST PORTS STATUS ...
node-exporter.ceph-mgr ceph-mgr *:9100 running (12...
node-exporter.ceph-mon01 ceph-mon01 *:9100 running (12...
node-exporter.ceph-mon02 ceph-mon02 *:9100 running (12...
node-exporter.ceph-mon03 ceph-mon03 *:9100 running (11...
node-exporter.ceph-osd01 ceph-osd01 *:9100 running (11...
node-exporter.ceph-osd02 ceph-osd02 *:9100 running (11...
node-exporter.ceph-osd03 ceph-osd03 *:9100 running (11...
[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-...
:
####################
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 REFRES...
grafana.ceph-mgr ceph-mgr *:3000 running (44s) 38s ...
[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のデータが表示されるわけではなく、...
リンク箇所は下記画面になります
&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%);
とかで。
ページ名:
1