Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIG Stack may not work with influxdb:latest and telegraf:latest #1

Open
jefcorco opened this issue Apr 18, 2022 · 2 comments
Open

TIG Stack may not work with influxdb:latest and telegraf:latest #1

jefcorco opened this issue Apr 18, 2022 · 2 comments

Comments

@jefcorco
Copy link

After cloning this repo, updating the telegraf.conf file with my PCs IP (192.1658.1.32), and running docker-compose, telegraf failed to connect to influxdb:

telegraf | 2022-04-18T16:49:36Z W! [outputs.influxdb] When writing to [http://192.168.1.32:8086]: database "cisco_mdt" creation failed: 401 Unauthorized

I didn't dig into it but I suspect that authorization has changed with influx 2.x. I was able to quickly work around the issue by using some old docker images. I updated the docker-compose.yml to specify influxdb:183 and telegraf:1.16.1. I also removed the influxdb port "8083:8083", which didn't seem to be needed.

version: "2"
services:
  influxdb:
    container_name: influxdb
    image: influxdb:1.8.3
    ports:
      - "8086:8086"
    volumes:
      - ./vols/:/var/lib/influxdb
    restart: always

  grafana:
    container_name: grafana
    image: grafana/grafana:latest
    ports:
      - "3000:3000"
    links:
      - influxdb
    restart: always

  telegraf:
    container_name: telegraf
    image: telegraf:1.16.1
    ports:
      - "57000:57000"   
    links:
      - influxdb
    volumes:
      - ./conf/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
      - /var/run/docker.sock:/var/run/docker.sock
    restart: always

This is a very nice TIG stack for Cisco MDT, so it would be great if it could be updated to work with the latest docker images.

@suhaibasaeed
Copy link

suhaibasaeed commented Mar 7, 2023

Thanks a bunch for this, I spent hours trying to troubleshoot why I was having the same error and started to go down your path of using an older docker image. I couldn't get it working with latest grafana but had to use 6.3.7

@xaviervalette
Copy link

Hey guys,

I was also looking for the lastest version of each services (Telegraf, InfluxDB and Grafana), so I decided to create my own project : https://github.com/xaviervalette/cisco-devnet-mdt-tig,

After doing the docker-compose, you will have everything ready to work (no database creation, no dashboard creation, ...) I am still trying to automate as much as possible the deployment,

Let me know if it helps, and many thanks for this repo again! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants