- Git
- Docker
- Docker Compose
- Docker UI (Portainer running on port 9000) - optional
#!/bin/bash
# as privileged user
apt update
apt install git docker.io docker-compose
#optional:
docker run -d --privileged -p 9000:9000 --name portainer \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /opt/portainer:/data portainer/portainer
Provided that the requirements listed above are met, please follow the instructions below:
$ git clone https://github.com/neutrona/neutrona_telemetry.git
$ cd neutrona_telemetry
2 - Configure the input plugin in logstash_telemetry/logstash.conf
according to your profile (as provided by Neutrona):
For example:
$ nano logstash_telemetry/logstash.conf
user => "your_username"
password => "your_password"
queue => "neutrona_customers_telemetry_YOUR_CUSTOMER_NAME"
All parameters are case sensitive.
$ sudo docker-compose up -d
Default credentials: admin/admin
-
Click on "Grafana Menu -> Data Sources -> Add Data Source" and set the parameters as below:
- Name: neutrona_telemetry
- Type: InfluxDB
- URL: http://influxdb:8086
- Database: neutrona_telemetry
You can leave the rest as default
- Navigate to "Grafana Menu" -> "Dashboards" -> "Home"
- Click on "Home Menu" -> "Import Dashboard" -> "Upload .json File"
- Select the file in
neutrona_telemetry/grafana/Grafana Dashboard.json
and click "Import"
At this point you should be able to see the data coming in from the telemetry broker 📈
-
Please make sure you can reach the telemetry broker.
-
Please check that the file
logstash_telemetry/logstash.conf
was modified as instructed and is syntactically correct. -
Grafana:
- Please check that the data source has been configured correctly under "Grafana Menu -> Data Sources"
- If you encounter the "Could not find the specified database name" error while adding the data source execute the following commands from the Docker host CLI:
$ sudo docker exec -it influxdb bash # influx > create database neutrona_telemetry > quit # exit
$ sudo docker-compose down
$ sudo docker-compose build logstash_telemetry
$ sudo docker-compose up -d