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

Update docs to reflect: Multi-Timeseries only works when the group by value is a string #291

Closed
austin-barrington opened this issue Feb 3, 2023 · 4 comments

Comments

@austin-barrington
Copy link

What happened:
Multi-Timeseries only works when the group by value is a string when it is an int it is treated as a value. Please see the screenshots below.

The ask: Can you update documentation to reflect this behavior please.

Incorrect
image
Query: SELECT $__timeInterval(timestamp) as time, profile_id, avg(cpu) FROM default.serverstats WHERE $__timeFilter(timestamp) GROUP BY time, profile_id ORDER BY time ASC

Correct
image
Query: SELECT $__timeInterval(timestamp) as time, toString(profile_id), avg(cpu) FROM default.serverstats WHERE $__timeFilter(timestamp) GROUP BY time, profile_id ORDER BY time ASC

Anything else we need to know?:

Environment:

  • Grafana version: 8.5.3
  • Plugin version: latest
  • OS Grafana is installed on: docker
  • User OS & Browser: chrome/windows
  • Others:
@austin-barrington
Copy link
Author

If you agree I'll raise a PR

@asimpson
Copy link
Contributor

asimpson commented Feb 3, 2023

Hi @austin-barrington 👋 Thanks for reaching out. Let me look into this one and get back to you.

@bossinc
Copy link
Collaborator

bossinc commented Feb 3, 2023

@austin-barrington Are you using the Prepare time series transformation and making the results a multi-frame time series? If so, it says string values are represented as labels. 😃

@bossinc
Copy link
Collaborator

bossinc commented Mar 17, 2023

I am closing this issue. Please reopen if you are still experiencing this problem.

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

No branches or pull requests

4 participants