Coder Social home page Coder Social logo

upmkuhn / metricsexporter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.85 MB

MetricsExporter is a proof of concept MVP to extract live internal data from an SIMATIC S7 PLC and a B&R system without it's source code.

Dockerfile 0.18% Makefile 0.80% Shell 8.33% JavaScript 24.40% C# 66.29%

metricsexporter's Introduction

What is this Metrics exporter good for ?

ZenonMetricsExporter ELT is a proof of concept MVP to extract live internal data from an SIMATIC S7 PLC and a B&R system without it's source code.

So what, how does it do?

I think a diagram speaks a 1000 words to explain the whole set up. Its basically a normal ETL pipline (Extract, Transform, Load) that loads as much internal data from a system to do some easy explorative analysis.

Architecture diagram

Component Responsibillity Detail
S7 PLC Controls an Kran suppliying a Wood gasifier with fuel. Contains live KPI'se e.g. Wood usage
B&R PLC Controls Wood gasifier plant / produce electricity KPI data maybe useful for maintence planning
CloudMetrics Relay Transform types, varibale names, and store it Received data exporters "service"
Kapacitor enforce monitoring rules Alert via telegram if expected data is missing
Chronograf UI Query data, Display graphs and create dashboards Current interface to Influxdb
InfluxDb Store , Query, intervals aggregation, trash old metrics InfluxDB an time series database for lage volumes of data

Closing thoughts

Reverse engineer, the PLC controllers, was the most challenging and rewarding part of this project. It fascinated me to learn how industrial automation components work. It is a simple low-level computer with a network interface that exposes its variables using a memory address register and fix sized data types.
Perhaps WebSockets was not the best choice of protocol. My initial thought was it might become beneficial to keep a bi-directional connection between the exporter server. The need to keep message sizes small has created an unnecessary overhead of complexity, especially since an HTTP Post would have been just fine.

metricsexporter's People

Contributors

trvmkuhn avatar

Watchers

 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.