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

Cannot realize Multi-line time series #503

Closed
Jake0109 opened this issue Aug 29, 2023 · 2 comments
Closed

Cannot realize Multi-line time series #503

Jake0109 opened this issue Aug 29, 2023 · 2 comments

Comments

@Jake0109
Copy link

What happened:
My grafana version is 9.5.0 and my plugin version is 3.3.0.

I want a multi line time series,
my query sql is :
SELECT $__timeInterval(timestamp) as time, log_level, count() as count
FROM okj_log.service
WHERE $__timeFilter(timestamp) AND hostname IN (${node})
GROUP BY log_level, time
ORDER BY time ASC

and the result is posted as a screen shot.

What you expected to happen:
I want it to have multi-line instead of an log_level and count

How to reproduce it (as minimally and precisely as possible):

Screenshots
image

Anything else we need to know?:

Environment:

  • Grafana version:9.5.0
  • Plugin version:3.3.0
  • OS Grafana is installed on: Amazon linux 2
  • User OS & Browser: chrome
  • Others:
@Jake0109
Copy link
Author

I have solved it,
it turns out that log_level is an digit type and after I use multiIf and turn digit type into string type, it can work as expected.
maybe when the value wanted to be group by is a digital type, it may work abnormally.

@asimpson
Copy link
Contributor

asimpson commented Sep 5, 2023

Glad you got this sorted, I'm going to close this. If the issue persists in a different form or something still isn't quite right feel free to open this back up or file a new issue.

@asimpson asimpson closed this as completed Sep 5, 2023
@github-project-automation github-project-automation bot moved this from Incoming to Done in Partner Datasources Sep 5, 2023
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

3 participants