Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.39 KB

README.md

File metadata and controls

62 lines (47 loc) · 1.39 KB

Demo traffic data analysis

Pull Docker Images

docker compose pull

Run the EMQX and TDengine

mkdir -p taos/{data,log}
docker compose up -d mqtt tdengine

Configure EMQX

  • Visit emqx dashboard at localhost:18083
  • Login with user name admin and password public
  • Create data bridge in Integration
  • Create rules in Integration
    • SQL Editor:
    SELECT
      payload
    FROM
      "velocity/#"

Run Virtual MQTT Device

docker compose up -d virtdev

Run GCRNN and Grafana

docker compose up -d grafana gcrnn

Check Grafana Dashboard

Visit localhost:3000, login as user admin with password admin123. Then find default dashboard Velocity in General folder.

After running for a while, the dashboard looks like this. dashboard

Run demo with telegraf and eclipse-mosquitto

We can use eclipse-mosquitto and telegraf instead of EMQX in this demo.

docker compose down
docker compose -f docker-compose-telegraf.yml pull
docker compose -f docker-compose-telegraf.yml up -d

After all containers are brought up successfully, visit localhost:3000 to visit the dashboard.