ceph on Ubuntu via ansible-ceph

77 views
Skip to first unread message

freemail...@gmail.com

unread,
May 17, 2018, 7:44:29 PM5/17/18
to openATTIC Users
Hi there, 

Having deployed my ceph install with ceph-ansible on Ubuntu where I feel most confident, I wished to deploy some tool like openattic so my users could do some admin processes like buckets, or RBDs. 

So, I created a v-machine with openSuse and installed openattic on it. 

All is there, but with out any  GRAFANA  dashborads, 

could someone point me to a direction regarding the grafana integration ? 

Thank's in advance! 
Kind Regards, 
Harry. 



Lenz Grimmer

unread,
May 18, 2018, 5:56:02 AM5/18/18
to openatt...@googlegroups.com
Hi Harry,

thank you for your message.

On 05/18/2018 01:44 AM, freemail...@gmail.com wrote:

> Having deployed my ceph install with ceph-ansible on Ubuntu where I
> feel most confident, I wished to deploy some tool like openattic so
> my users could do some admin processes like buckets, or RBDs.

Thanks for your interest!

> So, I created a v-machine with openSuse and installed openattic on
> it.
>
> All is there, but with out any GRAFANA dashborads,
>
> could someone point me to a direction regarding the grafana
> integration ?

If you're not using DeepSea/Salt [1] to deploy and manage your cluster,
I'm afraid you will have to set up Prometheus and Grafana manually.

Prometheus takes care of collecting the data from the various nodes,
using the Ceph Exporter from DigitalOcean [2] plus some custom exporters
(e.g. for RGW). Grafana then needs to be able to connect to Prometheus
to access the time series data to populate its dashboards. You can
obtain these files from the DeepSea git repo [3], but you will have to
perform the setup and installation of these services manually.

Once the Grafana instance is up and running, you can use the openATTIC
configuration page to configure the Grafana URL and login credentials.

Lenz

[1] https://github.com/SUSE/DeepSea
[2] https://github.com/digitalocean/ceph_exporter/
[3] https://github.com/SUSE/DeepSea/tree/master/srv/salt/ceph/monitoring

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

signature.asc

HL

unread,
May 18, 2018, 7:00:21 AM5/18/18
to Lenz Grimmer, openatt...@googlegroups.com
Hi Lenz,

Thank you for your prompt reply!

I 'll give it a try soon!

Kind Regards,

Harry.

saige

unread,
Aug 10, 2018, 5:34:21 AM8/10/18
to openATTIC Users
Hi Lenz,

We have the same problem.
We have install Ceph Exporter from DigitalOcean, Prometheus and Grafana manually.
We have import json files from /srv/salt/ceph/monitoring/grafana/files/ to Grafana.
We can see dashboard's value in Grafana.
We have set openATTIC to connect Grafana.
But we click openATTIC's Dashboard page, web show the message page not found as attached file.
What steps are we missing?

Kind Regards,
Saige


HL於 2018年5月18日星期五 UTC+8下午7時00分21秒寫道:
2018-08-10_173207.png

Patrick Nawracay

unread,
Aug 13, 2018, 6:00:53 AM8/13/18
to openatt...@googlegroups.com

Hi Saige,

this looks like openATTIC is trying to access a URL of Grafana which does not exist.

This is likely due to the dashboards name, which is exposed to the URL. The names of the dashboards might be correctly pre-filled when you import them.

For instance, if you import `Ceph - Cluster` (and keep this as the name of the dashboard) it will be converted to `ceph-cluster` in the path of the URL when it is accessed. openATTIC requires exactly this name in the path of the URL to the Grafana dashboard, meaning it requires the name of the dashboard to be `Ceph - Cluster` as the conversion of the name of the dashboard is handled by Grafana. The complete URL might look like the following.

    http://your_host:3000/dashboard/db/ceph-cluster?refresh=30s&orgId=1

The required path names in the URL for the dashboards are the following:

  • ceph-rbd
  • ceph-pools
  • ceph-osd
  • node-statistics
  • ceph-object-gateway-users
  • ceph-cluster

Please also note that only the Grafana version shipped with SLES is supposed to work. Newer Grafana 4 versions might work, but don't have to and Grafana 5 will not work.

Patrick

--
You received this message because you are subscribed to the Google Groups "openATTIC Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openattic-use...@googlegroups.com.
To post to this group, send email to openatt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openattic-users/571494dc-93cc-49c4-bb7a-b673b6e780a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
signature.asc

saige

unread,
Aug 14, 2018, 3:53:04 AM8/14/18
to openATTIC Users
Hi Patrick,

We have change `Ceph - Cluster` dashboard's name to `ceph-cluster` like attached1.png
We use URL http://my_host:3000/dashboard/db/ceph-cluster?refresh=30s&orgId=1, can see page like attached2.png.
Our openATTIC and Grafana are in the same host.
But use URL http://my_host/openattic/api/grafana/dashboard/db/ceph-cluster?refresh=30s&orgId=1, still show page not found like attached3.png

This Grafana shipped with SLES.

Is there any setting missing?

Thanks & Kind Regards,
Saige


Patrick Nawracay於 2018年8月13日星期一 UTC+8下午6時00分53秒寫道:
attached1.png
attached2.png
attached3.png

Patrick Nawracay

unread,
Aug 14, 2018, 5:40:13 AM8/14/18
to openatt...@googlegroups.com

Hi Saige,

It seems that you're using Grafana 5.

The proxy implemented in openATTIC for Grafana does not work with Grafana 5. It _may_ be possible to circumvent this limitation (only for the proxy implementation) by setting the `root_url` setting of Grafana properly, but there's no way to configure Grafana 5 to make the dashboards work with openATTIC as the URLs of Grafana 5 are different from Grafana 4.

Grafana 4: http://your_host:3000/dashboard/db/ceph-cluster?refresh=30s&orgId=1

Grafana 5: http://localhost:3000/d/AAAAAA/ceph-cluster?refresh=30s&orgId=1

There is a unique identifier in the URL of Grafana (`AAAAAA` in this example) which points to a particular dashboard, which openATTIC doesn't know about and cannot handle.

Hence, there is sadly no way to configure openATTIC to make it work with Grafana 5.

PS: The dashboards name doesn't have to be `ceph-cluster`, but can be. It just needs a name which is converted (Grafana does that automatically) to `ceph-cluster` in the path of the URL to the dashboard. As `Ceph - Cluster` is converted to `ceph-cluster`, that name is fine. Using `ceph-cluster` as dashboard name would also result in `ceph-cluster` in the path to the dashboard and would therefore also work.

Side note: The dashboard module [1] of the Ceph Manager is going to work with Grafana 5 in the future. The proxy implementation for the dashboard is already in place and the dashboards as well as the integration to the frontend are currently being developed.

Patrick

[1] http://docs.ceph.com/docs/master/mgr/dashboard/


For more options, visit https://groups.google.com/d/optout.
signature.asc

saige

unread,
Aug 14, 2018, 9:05:15 PM8/14/18
to openATTIC Users
Hi Patrick,

Thank you very much.
We change Grafana5 to Grafana4, finally it work.
We are looking forward to the new version of the Ceph Manager dashboard.

Thanks & Kind Regards,
Saige


Patrick Nawracay於 2018年8月14日星期二 UTC+8下午5時40分13秒寫道:
Reply all
Reply to author
Forward
0 new messages