rjohnston6 / Cisco-MDT-TIG-Docker

Docker Container deployment of TIG stack with Cisco MDT inputs prepped for Telegraf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This repo contains a Docker Compose file that can spin up 3 containers - Telegraf, InfluxDB, and Grafana. This is geared towards Cisco because it comes with the Cisco Model-Driven-Telemetry inputs for Telegraf.

Steps to Get It Up and Running

  1. Clone the Repo
git clone https://github.com/DataKnox/Cisco-MDT-TIG-Docker
  1. Edit the Telegraf.conf file to have the IP Address of the computer that will have the InfluxDB
  • Edit the URLs line
# Outputs for ciscomdt
[[outputs.influxdb]]
  database = "cisco_mdt"
  urls = [ "http://10.10.21.104:8086" ]
  username = "telegraf"
  password = "password123"
  1. Change into the directory that contains the Docker-Compose.yml file EXAMPLE on my computer
cd /home/knox/Documents/ciscomdt/Cisco-MDT-TIG-Docker/Ubuntu
  1. Bring the containers to life
docker-compose up
  1. Enable streaming telemetry on IOS-XE - CHANGE YOUR IP ADDRESSES!
telemetry ietf subscription 1
 encoding encode-kvgpb
 filter xpath /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds
 source-address 10.10.21.15
 stream yang-push
 update-policy periodic 500
 receiver ip address 10.10.21.196 57000 protocol grpc-tcp
telemetry ietf subscription 2
 encoding encode-kvgpb
 filter xpath /interfaces-ios-xe-oper:interfaces/interface[name='GigabitEthernet1']/statistics
 source-address 10.10.21.15
 stream yang-push
 update-policy periodic 500
 receiver ip address 10.10.21.196 57000 protocol grpc-tcp

netconf-yang
end
  1. Login to Grafana and connect to InfluxDB

http://localhost:3000

default user and pw is 'admin'

  1. Add a database
  • Find influxDB from the list
  • Name: whatever you want
  • Query Language: InfluxQL
  • URL: http://localhost:8086/
  • Access: Browser
  • Influx DB Details:
  • Database: cisco_mdt
  • user: telegraf
  • password: password123

Save and Test

  1. Create a dashboard!

Additional Sites and Links

About

Docker Container deployment of TIG stack with Cisco MDT inputs prepped for Telegraf

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Shell 100.0%