Skip to content

Jorge-DevOps/Docker-con-Telegraf-InfluxDB-Grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Telegraf - influxDB - Grafana using Docker

Discord Docker Pulls Build Status Twitter Account Follow Appwrite on StackShare T

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

Getting Started

Instructions will cover usage information.

Prerequisities

In order to run this container you'll need to install docker based on your OS.

Configuration files

telegraf.conf

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” 

Usage

Execute in your CLI

 git clone [email protected]:Jorge-DevOps/Docker-con-Telegraf-InfluxDB-Grafana.git with git Bash

Here 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-Grafana

To 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 -d

You should get the following output:

T

At this point we already has Grafana, Telegraf and influxdb contenders on top, so, you already have access to grafana via localhost on port :3000.

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •