How to create a new sample app#
This guide provides step-by-step instructions on how one can create a new
sample app by taking Wind Turbine Anomaly Detection
Sample Application as a reference
by configuring the generic Time Series AI Stack
as per the how it works.
Create a copy of the edge-ai-suites/manufacturing-ai-suite/wind-turbine-anomaly-detection
folder and replace with the sample app name to be created.
Steps to follow#
Configuration#
1. Data Simulators/Destinations:#
Options available:
Update the OPC-UA/MQTT simulator containers (
edge-ai-suites/manufacturing-ai-suite/wind-turbine-anomaly-detection/simulator
) as needed to ingest the needed dataset to analyze via a CSV fileIf you have existing
OPC-UA/MQTT
simulators, you can use that too. Just model the compose and helm template files like the way it’s done for the above existing OPC-UA/MQTT simulatorsDirectly configure
Telegraf
to connect to the device acting asOPC-UA
server ORMQTT publisher/broker
. Refer to the Telegraf plugin documentation for more details
2. Generic Time Series AI stack#
Data Ingestion - Telegraf
Update the
[[inputs.mqtt_consumer]]
and[[inputs.opcua]]
sections inedge-ai-suites/manufacturing-ai-suite/wind-turbine-anomaly-detection/telegraf/Telegraf_devmode.conf
, based on the MQTT/OPC-UA configuration, the input would be read and the topics in MQTT input plugin and name_override in OPC-UA input plugin is used for writing this as measurement in InfluxDB.In the above same conf file, the two
[[outputs.influxdb]]
plugins publish the data to InfluxDB and Time Series Analytics microserviceData Processing - Time Series Analytics Microservice
The
tick_scripts
,models
andudfs
folders atedge-ai-suites/manufacturing-ai-suite/wind-turbine-anomaly-detection/time_series_analytics_microservice
constitutes the User Defined Function (UDF) deployment package. Theconfig.json
at the same location is the Time Series microservice configuration.More details at how-to-configure-custom-udf
Data Visualization - Grafana
Prepare the custom grafana dashboard (
edge-ai-suites/manufacturing-ai-suite/wind-turbine-anomaly-detection/grafana/dashboards
) and volume mount it by referring the grafana microservice atedge-ai-suites/manufacturing-ai-suite/wind-turbine-anomaly-detection/docker-compose.yml
. For helm deployment, referedge-ai-suites/manufacturing-ai-suite/wind-turbine-anomaly-detection/helm/templates/grafana.yaml
file.
Deployment#
For docker compose deployment, follow the guide Get Started
For helm deployment, follow the guide How to deploy with helm