![]() |
![]() |
Subject: | Zenoss Core 5 - Connecting Grafana to Zenoss (Resolved) |
Author: | Ken Jenkins |
Posted: | 2015-11-10 12:58 |
How difficult is it to install Grafana and connect it to Zenoss Core 5 Is there a template I can download
Subject: | It's going to be available |
Author: | Jan Garaj |
Posted: | 2015-11-10 13:21 |
It's going to be available soon with seamless Zenoss 5 integration:
- Zenoss events as annotations in Grafana graphs
- authentication against Zenoss instance - so you can use Zenoss credentials
Subscribe for updates:
http://beta.monitoringartist.com/grafana2-for-zenoss5.php
Devops Monitoring Expert advice:
Dockerize/automate/monitor all the things.
DevOps stack:
Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform /
Elasticsearch
Subject: | I subscribed |
Author: | Ken Jenkins |
Posted: | 2015-11-10 15:04 |
Currently I can connect remotely from Grafana to Zenoss Core 5 but the key / values do not show in Grafana,
I logged into the opentsdb container and updated /opt/zenoss/etc/opentsdb/opentsdb.conf to append:
sudo serviced service shell -i -s OpenTSDB_Enable_MetaData opentsdb bash
# Whether or not to enable real-time UIDMeta object creation.
tsd.core.meta.enable_realtime_uid = true
# Whether or not to enable real-time TSMeta object creation.|
tsd.core.meta.enable_realtime_ts = true
I saved the file and ran these commands but when I go back into the container the change was not saved.
root@375e45447750:/# vi /opt/zenoss/etc/opentsdb/opentsdb.conf
root@375e45447750:/# exit
exit
[zenoss@pmzen01 ~]$ serviced snapshot commit OpenTSDB_Enable_MetaData
223h85xnqkcc00soxtqbed8jv_20151110-203908
$ serviced service restart Zenoss.core
Restarting 39 service(s)
Help!
Thanks,
Ken
Subject: | Looking for help |
Author: | Ken Jenkins |
Posted: | 2015-11-11 19:26 |
I checked user ID permissions and the zenoss login has permissions. Is there something not allowing the container to save and commit changes I need
Grafana connects fine but I cannot add tags.
Looking for assistance.
Thanks,
Ken
Subject: | Update on Grafana |
Author: | Ken Jenkins |
Posted: | 2015-11-11 19:57 |
It looks like Grafana may not be providing me with device metrics. It may just be providing me with Zenoss Core 5 metrrics.
How do I configure Grafana to display device metrics
"CpuacctStat.system",
"CpuacctStat.user",
"cgroup.cpuacct.system",
"cgroup.cpuacct.user",
"cpu.idle",
"cpu.iowait",
"cpu.irq",
"cpu.nice",
"cpu.softirq",
"cpu.steal",
"cpu.system",
"cpu.user",
"redis.used_cpu_sys",
"redis.used_cpu_sys_children",
"redis.used_cpu_user",
"redis.used_cpu_user_children",
Subject: | What is the default login and |
Author: | Ken Jenkins |
Posted: | 2015-11-12 11:52 |
What is the default login and password used to access https://opentsdb.hostname:4242/ I can connect to it using http://opentsdb.hostname
I believe I need to authenticate to get Grafana to access the Zenoss Core 5 OpenTSDB datasource for device metrics.
Subject: | Resolved: I found the login / |
Author: | Ken Jenkins |
Posted: | 2015-11-12 13:04 |
Resolved: I found the login / password, edited the opentstdb.conf file, saved it via Control Center, restarted OpenTSDB and connected Grafana to Zenoss Core 5.
Subject: | Can You Describe Some More of What You Did? |
Author: | [Not Specified] |
Posted: | 2015-12-29 07:38 |
Can you describe some more of what you did I was able to edit the opentstdb.conf file via Control Center, then I added a new datasource on Grafana using http://myIP:4242 using proxy access with basic auth using my root account for now (was there a default login/pw for OpenTSDB that you found). So, it says my data source is working when I test the connection, but now I'm not exactly sure where to go... I assume the Grafana is connected to my Zenoss 5 OpenTSDB but where do I go to start implementing graphs and creating dashboards Pretty new to Grafana as a whole.
Any help would be greatly appreciated.
Thanks
Subject: | What I did was add an |
Author: | Ken Jenkins |
Posted: | 2015-12-29 15:13 |
What I did was add an external OpenTSDB to allow Zenoss metrics to send to. I continued to use the local OpenTSDB in parallel with the external OpenTSDB though this may not be recommended but 2 OpenTSDB's seem to run fine in parallel. More than 3 seems to impact metric collections.
Edit MetricConsumer in Control Center -> Edit /opt/zenoss/etc/metric-consumer-app/configuration.yaml
Under metricService: append an additional host (Zenoss localhost OpenTSDB and the external OpenTSDB will receive metrics)
clients:
- {host: localhost, port: 4242}
- {host: 10.10.10.10 port: 4242}
Save and restart the Metric Consumer service.
On another host install Grafana. Once it is up and running and you want to create a new dashboard with metrics on it, configure Grafana to point to the external OpenTSDB datasource you are forwarding metrics to.
In Grafana, you can add metrics to view on a chart. i.e. in the metric field type in a device name or IP and a list of metrics will appear. Select what you want and chart the metrics.
I hope this helps.
Subject: | Turns out I had everything |
Author: | [Not Specified] |
Posted: | 2015-12-30 15:07 |
Turns out I had everything working, just couldn't figure out how to navigate Grafana...
I am running the Docker instance of Grafana on the same host that I am running Zenoss 5 and everything seems to be connecting and working fine.
Subject: | It is good to know that this |
Author: | Ken Jenkins |
Posted: | 2016-01-04 11:33 |
It is good to know that this works locally using a Docker instance of Grafana. My implementation differs from yours where I use an external OpenTSDB and Grafana instance run in parallel with the local Zenoss OpenTSDB.
Subject: | This was how I got my device |
Author: | [Not Specified] |
Posted: | 2016-02-04 15:15 |
This was how I got my device metrics to work. I edited the opentsdb.conf file in CC like Jenkins stated, but I did not have to edit the MetricConsumer conf file.
Attach to your opentsdb container and get the IP of it; that is the IP you need to use as your data source.
serviced service attach opentsdb
then ifconfig and grab the IP, mine's the default 172.17.x.x.
Edit data source:
url: http://172.17.x.x:4242
Acess: proxy
No need for auth.
Subject: | Kr, |
Author: | Ken Jenkins |
Posted: | 2016-02-04 17:55 |
Kr,
I have both working. Zenoss sending metrics to an external OpenTSDB and to the local OpenTSDB.
Connecting an external Grafana host to the Zenoss Local OpenTSDB ->
To get the external Grafana host to talk to Zenoss Core 5 on another host:
##.##.##.## opentsdb.zenoss5.env.domain.com
Type OpenTSDB
Url : https://opentsdb.zenoss5.env.domain.com
Access: proxy
Basic Auth (checked)
User zenoss_system
Password (what you have set in Zenoss)
If this fails you need to check connectivity, else click save
I hope this helps.
Subject: | Jenkins (or anyone else), |
Author: | [Not Specified] |
Posted: | 2016-02-05 16:24 |
Jenkins (or anyone else), have you been able to figure out Templating using the opentsdb instance
My goal is to have a template, similar to the Device Graph Definitions in Zenoss, where each device in a group, i.e. a device class, all have the same graphs.
It seems that all of my metrics are starting with the Device ID, so I have not been able to figure out how to create a wildcard for the device and look at metrics for any device with that metric.
So for example, I want a graph that shows total memory swap. Then I can check which devices I want to view on that graph of all their memory swapping.
Doe this make sense I have yet to figure it out, probably because I'm not too familiar with opentsdb querying.
Subject: | Moved |
Author: | [Not Specified] |
Posted: | 2016-02-07 06:10 |
Moved tohttp://zenoss.org/forum/137306
Subject: | Moved |
Author: | [Not Specified] |
Posted: | 2016-02-07 06:11 |
Moved tohttp://zenoss.org/forum/137306
Subject: | Moved |
Author: | [Not Specified] |
Posted: | 2016-02-07 06:11 |
Moved tohttp://zenoss.org/forum/137306
Subject: | Moved |
Author: | [Not Specified] |
Posted: | 2016-02-07 06:11 |
Moved tohttp://zenoss.org/forum/137306
Subject: | Moved |
Author: | [Not Specified] |
Posted: | 2016-02-07 06:11 |
Moved tohttp://zenoss.org/forum/137306
Subject: | Moved |
Author: | [Not Specified] |
Posted: | 2016-02-11 06:31 |
Moved to http://zenoss.org/forum/137306
Subject: | To whom it may concern..... |
Author: | Martin |
Posted: | 2016-11-30 01:41 |
To whom it may concern..... it took me 2 minutes to connect Grafana to the Zenoss OpenTSDB database. What i did is the following:
- Go to Control Center and add a public endpoint for OPenTSDB service (e.g.
- Install the latest Grafana Docker image
docker run -d -v /data/grafana --name grafana-storage busybox:latest
- Run the Docker container persistent on port 3000
docker run -d -p 3000:3000 --name=grafana --volumes-from grafana-storage grafana/grafana
- Access Grafana
Find out the Grafana Docker IP address
Add datasource:
Type: OpenTSDB
URL: https://ip:port (OPenTSDB public endpoint created in first step)
Access: Proxy
Basic Auth:
User/Password:
That's it ;)
< |
Previous Really slow performance on test system |
Next Zenoss Core 5, flashing question mark when starting services |
> |