2017-06-15 11:10:13 +00:00
|
|
|
dashboard plugin
|
|
|
|
================
|
|
|
|
|
|
|
|
Dashboard plugin visualizes the statistics of the cluster using a web server
|
2017-07-10 13:48:50 +00:00
|
|
|
hosted by ``ceph-mgr``.
|
|
|
|
|
|
|
|
Enabling
|
|
|
|
--------
|
|
|
|
|
|
|
|
The *dashboard* module is enabled with::
|
|
|
|
|
|
|
|
ceph mgr module enable dashboard
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Like most web applications, dashboard binds to a host name and port.
|
|
|
|
By default, the ``ceph-mgr`` daemon hosting the dashboard (i.e., the
|
|
|
|
currently active manager) will bind to port 7000 and any available
|
|
|
|
IPv4 or IPv6 address on the host.
|
|
|
|
|
|
|
|
Since each ``ceph-mgr`` hosts its own instance of dashboard, it may
|
|
|
|
also be necessary to configure them separately. The hostname and port
|
|
|
|
can be changed via the configuration key facility::
|
2017-06-15 11:10:13 +00:00
|
|
|
|
2017-07-25 15:24:50 +00:00
|
|
|
ceph config-key set mgr/dashboard/$name/server_addr $IP
|
|
|
|
ceph config-key set mgr/dashboard/$name/server_port $PORT
|
2017-06-15 11:10:13 +00:00
|
|
|
|
2017-07-10 13:48:50 +00:00
|
|
|
where ``$name`` is the ID of the ceph-mgr who is hosting this
|
|
|
|
dashboard web app.
|
2017-06-15 11:10:13 +00:00
|
|
|
|
2017-07-10 13:48:50 +00:00
|
|
|
These settings can also be configured cluster-wide and not manager
|
|
|
|
specific. For example,::
|
2017-06-26 12:49:28 +00:00
|
|
|
|
2017-07-25 15:24:50 +00:00
|
|
|
ceph config-key set mgr/dashboard/server_addr $IP
|
|
|
|
ceph config-key set mgr/dashboard/server_port $PORT
|
2017-06-26 12:49:28 +00:00
|
|
|
|
|
|
|
If the port is not configured, the web app will bind to port ``7000``.
|
2017-07-10 13:48:50 +00:00
|
|
|
If the address it not configured, the web app will bind to ``::``,
|
|
|
|
which corresponds to all available IPv4 and IPv6 addresses.
|
|
|
|
|
2018-01-09 22:23:33 +00:00
|
|
|
Reverse proxies
|
|
|
|
---------------
|
2017-08-21 17:21:10 +00:00
|
|
|
|
2018-01-09 22:23:33 +00:00
|
|
|
If you are accessing the dashboard via a reverse proxy configuration,
|
|
|
|
you may wish to service it under a URL prefix. To get the dashboard
|
|
|
|
to use hyperlinks that include your prefix, you can set the
|
|
|
|
``url_prefix`` setting:
|
2017-08-21 17:21:10 +00:00
|
|
|
|
2018-01-09 22:23:33 +00:00
|
|
|
::
|
2017-08-21 17:21:10 +00:00
|
|
|
|
2018-01-09 22:23:33 +00:00
|
|
|
ceph config-key set mgr/dashboard/url_prefix $PREFIX
|
2017-08-21 17:21:10 +00:00
|
|
|
|
2018-01-09 22:23:33 +00:00
|
|
|
so you can access the dashboard at ``http://$IP:$PORT/$PREFIX/``.
|
2017-07-10 13:48:50 +00:00
|
|
|
|