Re: Read Only status HTTP API Manager Module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Wido,

On 02/28/2018 03:42 PM, Wido den Hollander wrote:

> I came across a few customers who would really like a status module
> which would just present a Read Only API with the status of the cluster.
> 
> The current REST API module adds a few hurdles like creating a key and
> authenticating. While that's indeed safer it doesn't make it easy to use.
> 
> Many of these users currently parse something like this:
> 
> $ ceph status --format=json
> 
> Would it be logical to have a very simple manager module which exposes
> just a 'status' API through HTTP?

As I just stumbled over it by accident: Ceph-Dash actually seems to
provide exactly that:

https://github.com/Crapworks/ceph-dash

[CUT]

REST Api

If you access the address via commandline tools or programming
languages, use content-type: application/json and you will get all the
information as a json output (which is actually the json formatted
output of ceph status --format=json.

Anyways, this is not a wrapper around the ceph binary, it uses the
python bindings of librados.

This api can be requested by, for example, a nagios check, to check your
overall cluster health. This brings the advantage of querying this
information without running local checks on your monitor nodes, just by
accessing a read only http api.
[CUT]

Lenz
-- 
SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nuernberg (Germany)
GF:Felix Imendörffer,Jane Smithard,Graham Norton,HRB 21284 (AG Nürnberg)

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux