In this project we will use docker and docker-compose which will help us to orchestrate all the necessary images.
We will use the official Docker images for different process
Instructions will cover usage information.
In order to run this container you'll need to install docker based on your OS.
In this file we are gping to connect to a database. This database is going to persist the information of the connections and multiple process generated.
[[inputs.exec]]
commands=[“iperf3 -c 192.168.0.59 –json”]
interval = “2m”
timeout = “240s”
data_format = “json”
json_query = “end”
name_override = “IMSI=”
##############################################################################
# OUTPUT PLUGINS #
###############################################################################
# Configuration for sending metrics to InfluxDB
[[outputs.influxdb]]
## The full HTTP or UDP URL for your InfluxDB instance.
urls = [“http://127.0.0.1:8086”]
## The target database for metrics; will be created as needed.
## For UDP url endpoint database needs to be configured on server side.
database = “iperf”
## HTTP Basic Auth
username = “<username>”
password = “password” Execute in your CLI
git clone [email protected]:Jorge-DevOps/Docker-con-Telegraf-InfluxDB-Grafana.git with git BashHere you will find several files necessary for the deployment of the project, the file that interests us in this section is docker-compose.yaml.
This file contains the confdigurations of the official Docker images.
cd Docker-con-Telegraf-InfluxDB-GrafanaTo download the images and execute the containers we can do it in different ways, in my case I will use docker-compose.
docker-compose up -dYou should get the following output:



