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

Csv datatype conversion issue #28

Open
harish1992mech opened this issue Oct 8, 2020 · 16 comments · May be fixed by #33
Open

Csv datatype conversion issue #28

harish1992mech opened this issue Oct 8, 2020 · 16 comments · May be fixed by #33
Assignees
Labels
bug Something isn't working

Comments

@harish1992mech
Copy link

Hi Pavel,

Not able to visualize the time series data which is similar to the data coming from a sensor. Please see the actual csv file in the attachment.
https://drive.google.com/file/d/1BhDHXhbOlp9G9QGhSjQ6mgzNaKq-2aCM/view?usp=sharing

The issue, in detail is mentioned in the below link by user harish1992mech
https://community.grafana.com/t/csv-as-datasource/18520/23

Thank you,
Harish

@paveldanilin paveldanilin self-assigned this Oct 12, 2020
@paveldanilin paveldanilin added the bug Something isn't working label Oct 12, 2020
@Moosetracks555
Copy link

That did fix it! Thank you.

@paveldanilin
Copy link
Owner

Hi @Moosetracks555, I suppose your message is related to another issue
This issue is still open and scheduled to be fixed

@Moosetracks555
Copy link

I am sorry! Yes I meant to reply to the other issue.

@paveldanilin
Copy link
Owner

Dear @harish1992mech,
Is this (below) the right visualization of your data?
image

@paveldanilin paveldanilin linked a pull request Oct 16, 2020 that will close this issue
@paveldanilin
Copy link
Owner

@harish1992mech Could you test the fix and confirm that your problem has been solved?

@harish1992mech
Copy link
Author

@paveldanilin
Thanks a lot for the quick fix.

The visualization looks good in the screenshot which you've provided. But in my PC, I am getting the below error. Not sure, if I am doing everything correct.

image

Could you please support in the above issue.

Thank you for your time.

Regards,
Harish

@paveldanilin
Copy link
Owner

paveldanilin commented Oct 17, 2020

Dear @harish1992mech ,
I accidentally broke a building script for windows yesterday so the windows binary was broken.
I just re-built it, please test once again the fix.

Let me clarify a couple of things:

  1. You don't have to define columns with types likewise at your screenshot. You can skip that step.
  2. You may explicitly define a column and its type in the case when auto detection works wrong.
  3. According to your CSV file it does not make any sense to defined the time column as Timestamp, since values are not a valid date or timestamp (-0.98, -0.96, -0.94 can't be converted to date)

At this point, I would propose the following steps:

  1. Unpack the last build of the plugin (please find the link above)
  2. Restart Grafana
  3. Delete your datasource
  4. Create a new one datasource, without column definition, you should have something like this (but the file path should be different):
    image
  5. Create a dashboard with a table, at this step you should see the result similar to mine

@harish1992mech
Copy link
Author

Dear @paveldanilin ,

Thank you for the quick reply.

I've followed your suggestions and now I think the previous error got solved and I am able to see the values in the table as below

image

One more small help. Could you kindly tell if its possible to view this as a graph. Because when I tried changing the visualization mode to Graph, I get the result like this

image

I am also not sure if this kind of time series values can be plotted in grafana. Could you kindly help me with this query too.

Thank you,
Regards,
Harish

@paveldanilin
Copy link
Owner

Hi @harish1992mech!
Try this build with the dashboards that I had sent to you earlier by mail.

@paveldanilin
Copy link
Owner

paveldanilin commented Nov 10, 2020 via email

@vjagannath786
Copy link

Please ignore.
It is working I had to select the view as table but selected time series.

Great work!!!

@vjagannath786
Copy link

@paveldanilin , what if I want to display the above values as Time series option.
Is this valid ?

@paveldanilin
Copy link
Owner

Hi @vjagannath786 !
I am not sure that I completely understand what you want to do.
Please open a new issue for your question and provide your CSV file.
I will try to help you.

@vjagannath786
Copy link

For example below is the csv file ;

name,age
varun, 30
aswini,29

if select this as datasource and also Time series instead of Table data
then only numeric values are displayed

Capture

@paveldanilin
Copy link
Owner

Hi @vjagannath786 !
Please open a new issue with your question since it is not related to the current issue!

@paveldanilin
Copy link
Owner

@harish1992mech Hi!

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants