Home > Enterprise >  Grafana - Timeseries plot doesn't work (SQLite database)
Grafana - Timeseries plot doesn't work (SQLite database)

Time:11-22

I've been trying to make a timeseries plot in Grafana, but I keep getting messages like "Data does not have a time field" or "No numeric fields found." How could I format my data to fix these issues? Thank you!

enter image description here

enter image description here

enter image description here

CodePudding user response:

See README of used plugin first https://grafana.com/grafana/plugins/frser-sqlite-datasource/ :

  1. Your ts column is not formatted in accordance with RFC3339.
  2. Your value_string is a string and not numeric - REAL type.

CodePudding user response:

Reformat your time variable in SQLite to Unix time format, ie strftime("%s" , my_time_var ).

Then in the grafana query dialog define my_time_var as a time formatted column of a Time Series.

I don't know if it also works in Windows.

  • Related