秋栈博客

七月

Ceph Dashboard可视化管理

2022-07-28

Ceph Dashboard可视化管理

介绍

Ceph 的监控可视化界面方案很多----grafana、Kraken。但是从Luminous开始,Ceph 提供了原生的Dashboard功能,通过Dashboard可以获取Ceph集群的各种基本状态信息。 如果是 (nautilus版) 需要安装 ceph-mgr-dashboard 这个ceph dashbord可以看 pool pg,然后集群的状态信息都可以看到,随着nautilus版本出来,功能更加丰富了,很多日常的工作都可以去上面做

1、配置Ceph Dashboard

查看mgr模块状态
[root@ceph1 ceph-dash]# ceph -s
  cluster:
    id:     b2b28fe3-5696-4772-a14e-d5072761812a
    health: HEALTH_OK

  services:
    mon: 1 daemons, quorum ceph1
    mgr: ceph1(active)
    mds: cephfs-1/1/1 up  {0=ceph3=up:active}, 1 up:standby
    osd: 3 osds: 3 up, 3 in

  data:
    pools:   2 pools, 256 pgs
    objects: 21 objects, 3.21KiB
    usage:   3.00GiB used, 21.0GiB / 24.0GiB avail
    pgs:     256 active+clean
ceph luminous 已经内置dashboard
[root@ceph1 ceph-dash]# ceph mgr module ls | more
{
    "enabled_modules": [
        "balancer",
        "restful",
        "status"
    ],
    "disabled_modules": [
        "dashboard",
        "influx",
        "localpool",
        "prometheus",
        "selftest",
        "zabbix"
    ]
}
 

2、启用dashboard模块

[root@ceph1 ~]# ceph mgr module enable dashboard
[root@ceph1 ~]# ceph mgr module ls | more
{
    "enabled_modules": [
        "balancer",
        "dashboard",
        "restful",
        "status"
    ],
    "disabled_modules": [
        "influx",
        "localpool",
        "prometheus",
        "selftest",
        "zabbix"
    ]
}

3、访问10.211.55.51:7000

 
  • 0