Code Monkey home page Code Monkey logo

fty-metric-ambient-location's Introduction

fty-metric-ambient-location

it compute the average humidity and temperature of each locations, based on sensor metrics.

The default configuration values are in fty-ambient-location.cfg file (section default)

How to build

To build fty-metric-ambient-location project run:

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=usr -DBUILD_TESTING=On ..
make
sudo make install

How to run

To run fty-metric-ambient-location project:

from within the source tree, run:

./src/fty-metric-ambient-location

from an installed base, using systemd, run:

systemctl start fty-metric-ambient-location

Protocols

fty-ambient-location suscribe to ASSETS stream in order to build a hierarchy of containers. It also suscribe to _METRICS_SENSOR _to get the data.

It will publish calculated metrics on shm. Example of metrics name : average.humidity-input@rack-32 average.humidity@row-12

Sensor propagation in physical topology

Sensors are propagated trough the physical topology of the logical asset to the upper levels.

Let's explain it on the example. We have a physical topology:

DC01 -> ROOM01 -> ROW01 |-> RACK01 -> UPS01  -> SENSOR01 
                        |-> RACK02 -> EPDU01 -> SENSOR02

SENSOR01 is logically assigned to RACK01 with function 'input' and SENSOR02 is logically assigned to RACK02 with function 'output'.

What would be computed:

  • RACK01: "input" T&H will take in account only SENSOR01
  • RACK01: "output" T&H nothing, as there is no sensor assigned with such function
  • RACK02: "input" T&H nothing, as there is no sensor assigned with such function
  • RACK02: "output" T&H will take in account only SENSOR02
  • ROW01: There is no sensor logically assigned to this row, it will use the computed average of RACK01 and RACK02. The rows will compute averages for each sensor function and a global average of SENSOR01, SENSOR02.
  • ROOM01: There is no sensor logically assigned to this room, it will use the computed average of ROW01. As for rooms we do not distinguish sensor function, the T&H would be computed as average of SENSOR01, SENSOR02.
  • DC01: There is no sensor logically assigned to this dc, it will use the computed average of ROOM01. As for dcs we do not distinguish sensor function, the T&H would be computed as average of SENSOR01, SENSOR02.

fty-metric-ambient-location's People

Contributors

aquette avatar arnaudquette-eaton avatar barraudl avatar eldoreijk avatar ericclappier-eaton avatar etnklendathu avatar francoisregisdegott-eaton avatar geraldguillaume avatar jana-rapava avatar jimklimov avatar perrettecl avatar stark-dev avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.