This guide provides detailed instructions for installing, configuring, and monitoring the EDG platform.
-
Download the release bundle for your platform:
- Linux x86_64:
edg-vX.X.X-linux-amd64.tar.gz - Linux ARM64:
edg-vX.X.X-linux-arm64.tar.gz - macOS:
edg-vX.X.X-darwin-amd64.tar.gz - Windows:
edg-vX.X.X-windows-amd64.zip
- Linux x86_64:
-
Extract the bundle:
tar -xzf edg-vX.X.X-linux-amd64.tar.gz cd edg-vX.X.X-linux-amd64 -
Run the installation script (Linux/macOS):
sudo ./install.sh
This will:
- Install binaries to
/opt/edg/bin/ - Copy configs to
/opt/edg/configs/ - Create systemd services (Linux only)
- Install binaries to
# Start services
sudo systemctl start edg-core
sudo systemctl start edg-telegraf
# Enable auto-start on boot
sudo systemctl enable edg-core
sudo systemctl enable edg-telegrafIf you are not using systemd, you can start components manually:
# Start EDG Core
/opt/edg/bin/edg-core &
# Start Telegraf
/opt/edg/bin/telegraf --config /opt/edg/configs/telegraf/telegraf.conf &INSTALL_DIR=/custom/path ./install.sh- Data Storage:
./data/metadata.db(auto-created) - Templates:
./templates/(optional)
Configuration file: /opt/edg/configs/telegraf/telegraf.conf
Key Settings:
- Input: NATS (
platform.data.validated) - Output: VictoriaMetrics (
http://localhost:8428) - Parser:
json_v2(handles nested arrays)
Data Format: Incoming JSON from adapters:
{
"asset_id": "sensor-001",
"values": [
{"name": "temperature", "number": 25.5, "unit": "°C", "quality": "good"}
]
}- NATS Monitor: http://localhost:8222
- VictoriaMetrics UI: http://localhost:8428
- Grafana (optional, docker-compose): http://localhost:3000
- Logs:
- EDG Core:
journalctl -u edg-core -f - Telegraf:
journalctl -u edg-telegraf -f
- EDG Core: