Elasticsearch Dashboard in Grafana

Hello,

I am kind of new with Elasticsearch and I would appreciate if you can help me with this. I am trying to create a dashboard in Grafana by following the below link.

Now my question is, how/where to look for ES_METRICS_CLUSTER_URL and ES_METRICS_INTERVAL in Elasticsearch. Below is my current configuration and I know that this is wrong.

# ElasticSearch Cluster to Monitor
elasticServer = os.environ.get('ES_METRICS_CLUSTER_URL', 'http://x.x.x.x:9200')
interval = int(os.environ.get('ES_METRICS_INTERVAL', '60'))

# ElasticSearch Cluster to Send Metrics
elasticIndex = os.environ.get('ES_METRICS_INDEX_NAME', 'elasticsearch_metrics')
elasticMonitoringCluster = os.environ.get('ES_METRICS_MONITORING_CLUSTER_URL', 'http://x.x.x.x:9200/_cluster/state/')

If you run grafana and elasticsearch locally you should use:

elasticServer = os.environ.get('ES_METRICS_CLUSTER_URL', 'http://localhost:9200')

elasticMonitoringCluster = os.environ.get('ES_METRICS_MONITORING_CLUSTER_URL', 'http://localhost:9200/_cluster/state/')

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.