# Elasticsearch Dashboard in Grafana

**URL:** <https://discuss.elastic.co/t/elasticsearch-dashboard-in-grafana/144914>\
**Category:** Elasticsearch\
**Created:** [August 17, 2018, 1:57pm UTC](https://discuss.elastic.co/t/elasticsearch-dashboard-in-grafana/144914 "2018-08-17T13:57:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khulfreedos](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@khulfreedos](https://discuss.elastic.co/u/khulfreedos)\
**Post date:** [August 17, 2018, 1:57pm UTC](https://discuss.elastic.co/t/elasticsearch-dashboard-in-grafana/144914/1 "2018-08-17T13:57:21Z")

</div>

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.

> **[Elasticsearch Dashboard dashboard for Grafana](https://grafana.com/dashboards/878)**
>
> Elasticsearch Dashboard for 2.X, 5.X and 6.X

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](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/](http://x.x.x.x:9200/_cluster/state/)')**

---

<div class="post-metadata">

**Author:** ![saisimo02](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@saisimo02](https://discuss.elastic.co/u/saisimo02)\
**Post date:** [August 20, 2018, 12:03pm UTC](https://discuss.elastic.co/t/elasticsearch-dashboard-in-grafana/144914/2 "2018-08-20T12:03:52Z")

</div>

If you run grafana and elasticsearch locally you should use:

**elasticServer = os.environ.get('ES\_METRICS\_CLUSTER\_URL', '[http://localhost:9200](http://localhost:9200/)')**

**elasticMonitoringCluster = os.environ.get('ES\_METRICS\_MONITORING\_CLUSTER\_URL', '[http://localhost:9200/\_cluster/state/](http://localhost:9200/_cluster/state/)')**

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 17, 2018, 12:04pm UTC](https://discuss.elastic.co/t/elasticsearch-dashboard-in-grafana/144914/3 "2018-09-17T12:04:01Z")

</div>

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