GithubHelp home page GithubHelp logo

yiqisoft / edgex-app-influxdb-export Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 94 KB

EdgeX export telemetry to InfluxDB

Home Page: https://www.yiqisoft.cn/blogs/edgex/519.html

License: Apache License 2.0

Dockerfile 23.54% Makefile 9.90% Go 66.56%
edgex influxdb mqtt telegraf

edgex-app-influxdb-export's Introduction

EdgeX Foundry application service InfluxDB

EdgeX Foundry application service to export readings to InfluxDB via MQTT. This service example was created with EdgeX Foundry version 2.3.0 (Levski).

The pipeline simply consists of two functions:

  • conversion of EdgeX Event/Reading objects to Influx line protocol
  • export of results to MQTT Sender, which is a MQTT topic that Telegraf / Influx is positioned to listen to and ingest data from

In this example, the MQTT Broker is assumed to exist on a different host and is accessed via port 1883. The target topic is edgex/EdgeXEvents. Modify the configuration.toml file to point the MQTT Sender to an alternate broker or topic.

No filtering or other transformation functions occur in this example. No additional MQTT options (such as QOS or retry has been provided for with this example)

InfluxDB installation and tooling is not provided with this example.

image

Please note, this example assumes "Insecure Secrets" are being used (i.e. that a username and password are required to access the MQTT broker/topic and these are provided by the configuration.) Be sure to set EDGEX_SECURITY_SECRET_STORE to false by some means. In this example, the env is set in the code via main.go (os.Setenv("EDGEX_SECURITY_SECRET_STORE", "false")). This can also be done with an export (export EDGEX_SECURITY_SECRET_STORE=false).

edgex-app-influxdb-export's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

hanker-13

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.