Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variable in templating not working correctly, mabye filter not working (CloudWatch) #9940

Closed
phoppe93 opened this issue Nov 20, 2017 · 11 comments
Labels
area/datasource datasource/CloudWatch needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc

Comments

@phoppe93
Copy link

Hi Grafana Team,

i tried to use the templating function to define variable. The variable are needed in the next variable. When i select a stack the server list is not updating.

grafik

Query Option "On Dashboard Load" are for both variable active.

Is there a solution or a workarround for this issue ?

@torkelo
Copy link
Member

torkelo commented Nov 21, 2017

when you change the stack parameter can you have chrome dev tools open and inspect the network traffic? There should be a call to /api/tsdb/query , can you show the request body for that call (the first one if there are multiple)

@torkelo torkelo added needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc datasource/CloudWatch labels Nov 21, 2017
@phoppe93
Copy link
Author

phoppe93 commented Nov 21, 2017

the first one:

grafik

the second one:

grafik

@torkelo the instance id is always the same, doesnt matter what stack i choose

@torkelo
Copy link
Member

torkelo commented Nov 21, 2017

what is the response from the first query? (the metricFindQuery) it should return an updated list of InstanceIds.

Are you using the $server variable in the graph metric query?

@phoppe93
Copy link
Author

phoppe93 commented Nov 21, 2017

grafik
grafik

@torkelo

@torkelo
Copy link
Member

torkelo commented Nov 21, 2017

and when you check the server variable dropdown does it not contain those new instance ids?

@phoppe93
Copy link
Author

@torkelo its contain all instance ids but it have to filter the instance ids of the stack.

example:
dev-sensu
id: i-sensu-1 , i-sensu-2
dev-bastion
id: i-bastion-node

choose the dev-sensu stack the filter have to scrape and show only the instance-id (i-sensu-1 , i-sensu-2)

But right now its always showing all instance id`s like here in the snippet
grafik

DEV-LOGSTASH-KENESIS-INPUT have only 2 id (i-04e9318d743adc4da, i-06287b499d61d5718)

thats incorrect for me.

@torkelo
Copy link
Member

torkelo commented Nov 22, 2017

But the metric find query returned a lot more than the 2, so either bug in cloudwatch api or the filters are not sent to aws correctly, thoughts @mtanda?

@mtanda
Copy link
Collaborator

mtanda commented Nov 23, 2017

I'll take a look.

@phoppe93 I want to know the Grafana version you use.

@phoppe93
Copy link
Author

@mtanda
Grafana cli version 4.6.1

@mtanda
Copy link
Collaborator

mtanda commented Nov 23, 2017

@phoppe93 Thanks.
Your issue is similar to #9667 .
Would you try to upgrade Grafana?

@phoppe93
Copy link
Author

@mtanda yes its the same it works now !! thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/datasource datasource/CloudWatch needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc
Projects
None yet
Development

No branches or pull requests

4 participants