A tale of getting https://grafana.net/dashboards/878 to work...
Firs, I need to install python:
apt-get install python
The Change a bit in the Script from https://github.com/trevorndodds/elasticsearch-metrics/blob/master/Grafana/elasticsearch2elastic.py, so the header was:
#!/usr/bin/python import datetime import time import urllib import json import urllib2 import os import sys
And finally this script is running - notice this in not by cron, its constantly running:
root@elkserver1:/data# python elasticsearch2elastic.py Total Elapsed Time: 6.79649996758 Total Elapsed Time: 1.30685281754 Total Elapsed Time: 1.56892991066 Total Elapsed Time: 2.67802596092 Total Elapsed Time: 2.37758088112 Total Elapsed Time: 2.56103205681
After this, the dashboard was pretty full of read exclamations signs, and the article at https://grafana.net/dashboards/878 states:
- Tested this with Elasticsearch 2.4.X & 5.1.X
- On 5.X you will have to change the template to use cluster_name.keyword unless you set cluster_name to not_analyzed
Well, I decided to Change the Clustername variable (found under the cog - Templating:
Here, "cluster_name" is changed to "cluster_name.keyword"