Giter VIP home page Giter VIP logo

Comments (1)

IngMiad avatar IngMiad commented on June 14, 2024

Okay I think I got it - There will be used different databases for different tenants in postgres. So relevant data from farm tutorial will be in database ngb<tenant-name> instead of database ngb. So I have been able to find all relevant data in database names 'ngbopeniot'.

There you can find all temporal data in the two tables temporalentity and temporalentityattrinstance in case of Scorpio.

In order to visualize your data with Grafana you will need to:

  1. connect to correct tenant db (here: nbgopeniot)
  2. Perform a query where you
    • Select observedat, temporalentity_id and value
    • Filter by kind of entites you want to visualize (here for example pig014 and only non-empty values)
    SELECT
      observedat AS "time",
      temporalentity_id AS metric,
      value
    FROM temporalentityattrinstance
    WHERE
      $__timeFilter(observedat) AND
      temporalentity_id = 'urn:ngsi-ld:Animal:pig014' AND
      value = value
    ORDER BY 1,2
    
  3. Add a transformation to the query so that the value field will be converted to a numeric field (otherwise this field is String by default and can't be visualized by Grafana as a graph [just table])

I attached a successful screenshot for pig014.
Screenshot from 2022-10-18 14-14-12

Just as a suggestion to also help others: Maybe you can add to documentation / tutorial how I can visualize STH data in Grafana in the future as well - I needed quite a long time to figure that out (I asked the question initially at stack overflow 3 months ago with no answer so far https://stackoverflow.com/questions/72995260/question-on-visualization-of-fiware-sth-data-with-grafana).

from tutorials.short-term-history.

Related Issues (6)

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.