GithubHelp home page GithubHelp logo

Comments (1)

bobeal avatar bobeal commented on June 28, 2024

Hi Michael,

Sorry for late reply.

Actually, we are using a lot Grafana and Superset in our typical deployments.

When using Grafana, we get data directly from the DB (as Grafana is a real-time oriented tool, this is by far the most efficient way to work with). And we are doing using such query:

SELECT
  time AS "time",
  measured_value AS "temperature",
  temporal_entity_attribute.entity_id as entity_id
FROM attribute_instance
LEFT JOIN temporal_entity_attribute ON temporal_entity_attribute.id = attribute_instance.temporal_entity_attribute
WHERE
  $__timeFilter(time) AND
  temporal_entity_attribute.attribute_name = 'https://vocab.egm.io/temperature' AND
  temporal_entity_attribute.entity_id in ($Room) -- where Room is a dashboard variable
ORDER BY 1

For Superset, this is getting a bit more complex since we typically want to apply a denormalization process on the data. To do this, we use Apache NiFi (https://nifi.apache.org): using the NGSI-LD Subscription API, a notification is sent to a flow in NiFi when an entity of interest is updated, then the flow retrieves all the entities that the entity is in relation with (its relationships) and export the result in a "big" table which is easier to work with a BI oriented tool like Superset.

The specific NiFi processor we are using to do this is in https://github.com/easy-global-market/nifi-ngsild-postgresql. It is unfortunately missing some documentation right now but it can be an opportunity to at least add some instructions on how to set it up and use it.

Let me know.

Benoit.

from stellio-context-broker.

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.