trevorndodds / elasticsearch-metrics

102 stars 99 forks source link

How to force refresh when switching clusters on dashboard? #33

Closed TomJohnson-Syncbak closed 6 years ago

TomJohnson-Syncbak commented 6 years ago

First, thanks for a great dashboard!

I augmented the Python data gathering script and then rewrote it in Go (for speed and to follow internal preference for our Elasticsearch tools). We wanted to use one instance of the tool to collect data on two or more clusters.

I'm now feeding stats from 3 clusters into the Grafana ES instance. When I change the cluster by using the dropdown menu, I cannot seem to make the panels on the dashboard refresh.

trevorndodds commented 6 years ago

It should automatically refresh when you select the different Cluster.

The variables Cluster / Node are set to refresh on dashboard load too. That should update the graphs.

TomJohnson-Syncbak commented 6 years ago

I checked to make sure those variables are still set to refresh on dashboard load. They are.

My cluster names are formatted as "dddddddddddd:x-y-z" where d is a decimal digit and x, y, and z are lowercase letters. Perhaps that is the problem?

TomJohnson-Syncbak commented 6 years ago

Sorry, I ended up aliasing my cluster names to remove characters that Elasticsearch treats as separators. It's easier for me to do that rather than remember to set the field to be "not_analyzed".

Not the dashboard's fault.

One comment, I found the juxtaposition of this advice on the dashboard confusing:

It's unclear what "this" you are not required to do.

trevorndodds commented 6 years ago

Great!, sorry about that confusion. I’ll fix that. Thanks for the feedback.

trevorndodds commented 6 years ago

I wanted to ask, is that a AWS elasticsearch instance?

TomJohnson-Syncbak commented 6 years ago

Yes.

On Thu, Jul 26, 2018, 18:25 Trevor Dodds notifications@github.com wrote:

I wanted to ask, is that a AWS elasticsearch instance?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/trevorndodds/elasticsearch-metrics/issues/33#issuecomment-408265165, or mute the thread https://github.com/notifications/unsubscribe-auth/AXhECATabzOBiFtIsW0M3Muzw1atkBr8ks5uKk_WgaJpZM4ViIVE .