# How to differentiate between two kubernetes clusters with metricbeats

**URL:** <https://discuss.elastic.co/t/how-to-differentiate-between-two-kubernetes-clusters-with-metricbeats/125985>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 28, 2018, 6:32pm UTC](https://discuss.elastic.co/t/how-to-differentiate-between-two-kubernetes-clusters-with-metricbeats/125985 "2018-03-28T18:32:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Michael\_Gang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_michael_gang/32/114738_2.png) [@David\_Michael\_Gang](https://discuss.elastic.co/u/David_Michael_Gang)\
**Post date:** [March 28, 2018, 6:32pm UTC](https://discuss.elastic.co/t/how-to-differentiate-between-two-kubernetes-clusters-with-metricbeats/125985/1 "2018-03-28T18:32:25Z")

</div>

Hi all,

The instructions to install metricbeats on kubernetes are [here](https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-kubernetes.html) .  
Let's say i have two clusters A and B,  
Is there a way to differentiate between both cklusters so that two different dashboards are made?  
What is the default? Is one or two dashboards created? If one how can i split them to two?

Thanks

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [March 30, 2018, 2:26pm UTC](https://discuss.elastic.co/t/how-to-differentiate-between-two-kubernetes-clusters-with-metricbeats/125985/2 "2018-03-30T14:26:36Z")

</div>

@David_Michael_Gang I don't know a lot about k8s, but I would expect that each cluster has some kind of unique identifier?

---

<div class="post-metadata">

**Author:** ![\_flo](https://avatars.discourse-cdn.com/v4/letter/_/f17d59/32.png) [@\_flo](https://discuss.elastic.co/u/_flo)\
**Post date:** [April 7, 2018, 7:02pm UTC](https://discuss.elastic.co/t/how-to-differentiate-between-two-kubernetes-clusters-with-metricbeats/125985/3 "2018-04-07T19:02:29Z")

</div>

You can usw different index names , oh you Filter on e.g domainname

---

<div class="post-metadata">

**Author:** ![David\_Michael\_Gang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_michael_gang/32/114738_2.png) [@David\_Michael\_Gang](https://discuss.elastic.co/u/David_Michael_Gang)\
**Post date:** [April 8, 2018, 2:21pm UTC](https://discuss.elastic.co/t/how-to-differentiate-between-two-kubernetes-clusters-with-metricbeats/125985/4 "2018-04-08T14:21:01Z")

</div>

where do i set the index name?

---

<div class="post-metadata">

**Author:** ![\_flo](https://avatars.discourse-cdn.com/v4/letter/_/f17d59/32.png) [@\_flo](https://discuss.elastic.co/u/_flo)\
**Post date:** [April 8, 2018, 2:36pm UTC](https://discuss.elastic.co/t/how-to-differentiate-between-two-kubernetes-clusters-with-metricbeats/125985/5 "2018-04-08T14:36:50Z")

</div>

You can set the Index Name in the metricbeat conf  
[https://www.elastic.co/guide/en/beats/metricbeat/current/elasticsearch-output.html](https://www.elastic.co/guide/en/beats/metricbeat/current/elasticsearch-output.html)

---

<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:** [May 6, 2018, 2:37pm UTC](https://discuss.elastic.co/t/how-to-differentiate-between-two-kubernetes-clusters-with-metricbeats/125985/6 "2018-05-06T14:37:09Z")

</div>

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