Giter Site home page Giter Site logo

Comments (3)

PreinfalkG avatar PreinfalkG commented on July 29, 2024

Also from me a big THANK YOU for this plugin !!!

I think I have the same problem.
I have a smart meter which provides countless measured values as JSON
The JSON data source interprets the measured value once as 'number type' and one query later as 'time type'.
Note: The decimal places of the measured values from the smart meter are different for each query

Screenshot:
2020-12-31_GrafanaJSONDataSource_1

Screenshot - one query laster:
2020-12-31_GrafanaJSONDataSource_2

Here a short screen video ...
https://user-images.githubusercontent.com/16906959/103399791-f8dba100-4b42-11eb-8ab2-c5c347c780ec.mp4

from grafana-json-datasource.

marcusolsson avatar marcusolsson commented on July 29, 2024

Thank you for the kind words, and for taking the time to post your feedback!

The time detection is definitely a bit naïve at the moment. Selecting a property to use as the time column assumes a visualization that only uses one time field, such as the Graph panel. Other visualizations could potentially require several time fields, e.g. start and end time.

I'm leaning towards adding a Type drop-down for each JSON Path query where you can explicitly specify how to parse the type, e.g. string, number, time. This would solve another feature request where numeric values are quoted.

The issue pointed out by @PreinfalkG however is a bug and should be fairly easy to sort out in the meantime.

from grafana-json-datasource.

PreinfalkG avatar PreinfalkG commented on July 29, 2024

Thank you for your feedback.
The solution with the type drop-down would be perfect!

from grafana-json-datasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.