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

Scripted dashboards - left start-time and left end-time #25

Open
calvernaz opened this issue Apr 3, 2020 · 4 comments
Open

Scripted dashboards - left start-time and left end-time #25

calvernaz opened this issue Apr 3, 2020 · 4 comments

Comments

@calvernaz
Copy link

Hi,

I'm having issues using the scripted dashboard, particularly the start and end time for the left and right runs.

My understanding is after picking the left run (for example) the values for the variables start_time_left and end_time_left should be timestamps.

Now the variables comes from the following query:

SELECT * FROM jmeter WHERE application =~ /$tag_left/ ORDER BY time asc LIMIT 1

That is not returning a timestamp in my case. I'm using influxdb-timeshift-proxy and that's the datasource for the query above.

The URL looks like:

&var-end_time_right=load-test.jmx%20@%20106%20@%20Wed%20Apr%2001%2010:14:32%20GMT%202020

and it should be a timestamp

Any idea how to solve this?

@calvernaz
Copy link
Author

I can say that the same query works in your example. The grafana version I'm using is newer v6, and that might be the difference?

@krishna1s
Copy link

krishna1s commented Jul 20, 2020

Hi @calvernaz I tried with version 6 also, it seems not working.

Problem is start_time_left should be timestamp as you said, but it is coming as test plan name from the query.

Please suggest any solution for this if you have found

@calvernaz
Copy link
Author

Hi @krishna1s, I had to use the same version in the example (Grafana 5) to have the same behaviour.

@krishna1s
Copy link

krishna1s commented Jul 21, 2020

Thanks @calvernaz it seems to working in verson 5. Below query return timestamp value in variable, which makes it works, but it is not seems to be working with latest version. Any thought on this?

SELECT * FROM jmeter WHERE application =~ /$tag_left/ ORDER BY time asc LIMIT 1

Or is there any way in which we can select the perticular index value from the result of query to assign the variable value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants