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

Feature request: Graphing multiple timeseries #5

Open
arthurh4 opened this issue Feb 22, 2021 · 0 comments
Open

Feature request: Graphing multiple timeseries #5

arthurh4 opened this issue Feb 22, 2021 · 0 comments

Comments

@arthurh4
Copy link

arthurh4 commented Feb 22, 2021

Very awesome plugin !

I'm trying to graph the following query:

SELECT my_date_field as Time , status, COUNT(*) as Value FROM my_table where LAST_LOAD_TIME>'$__timeFrom(yyyy-MM-dd)' GROUP BY 1,2 LIMIT 100

This returns the following:

Time                | status| Value
2020-07-07 11:34:20 | up    |    1
2020-07-07 11:34:20 | down  |    2

This table cannot be used directly in Graph panel however if we could turn the status column value into a column name using something like a pivot the graph panel would work. I tested in pure SQL and it works but its very annoying to write.

I was wondering if we could use the Transform Labels to fields but to do that we need to be able to add labels the dataframe ?

Is it possible to implement a feature to label the "Value" column using other non "Time" columns ?

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

1 participant