Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 892 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 892 Bytes

Ockam + InfluxDB Demo

This is a demo that shows how to use Ockam to securely connect Telegraf and InfluxDB. A full run down on what is happening here and how it works can be read on the Ockam blog: Connect distributed clients to a private InfluxDB database

Prerequisites

  • Ockam (brew install build-trust/ockam/ockam)
  • Docker (including docker-compose)

Setup

There's a script to setup the inital project (influxdb-demo) that our nodes will later register with:

$ ./bin/setup

To start the InfluxDB server, Telegraf, and connect them via Ockam run:

$ ./bin/up

Telegraf will now be emitting and flushing system metrics to InfluxDB every 10 seconds. You can verify that InfluxDB is receiving the data by using the test script to return the last 1 minute worth of data:

$ ./bin/test