Docker for InfluxDB and Grafana don´t work

Seronja

New Member
Jan 2, 2021
9
1
3
28
Hello
Trying to install docker for grafana and influxdb to get graphs from PVE6.
But if it does not really work, PVE6 does not get to send data to the influfdb.
Can not find a good guide for setup and config. Can send more pictures.

docker.JPG
 
Last edited:
hi,

have you enabled the udp port on influxdb? PVE will send data through udp. check here [0]

you don't really need to use docker,
but if you're doing it with docker you can get it running like this:
Code:
root@monitoring:~# apt update
root@monitoring:~# apt install docker.io
root@monitoring:~# docker network create monitoring_network
root@monitoring:~# docker network ls
root@monitoring:~# docker volume create influxdb-volume
root@monitoring:~# docker volume create grafana-volume
root@monitoring:~# docker volume ls
root@monitoring:~# mkdir ct
root@monitoring:~# cd ct/
root@monitoring:~/ct# apt install git vim docker-compose
root@monitoring:~/ct# vim docker-compose.yml

version: "3"
services:
  grafana:
    image: grafana/grafana
    container_name: grafana_container
    restart: always
    ports:
      - 3000:3000
    networks:
      - monitoring_network
    volumes:
      - grafana-volume:/var/lib/grafana
  influxdb:
    image: influxdb
    container_name: influxdb_container
    restart: always
    ports:
      - 8086:8086
      - 8089:8089/udp
    networks:
      - monitoring_network
    volumes:
      - influxdb-volume:/var/lib/influxdb
networks:
  monitoring_network:
volumes:
  grafana-volume:
    external: true
  influxdb-volume:
    external: true

root@monitoring:~/ct# docker-compose up -d

and it should start working. adapt the /etc/pve/status.cfg on your PVE machine (or use the GUI) to finish the configuration

[0]: https://pve.proxmox.com/wiki/External_Metric_Server
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!