Skip to main content

InfluxDB-Grafana-Telegraf

InfluxDB-Grafana-Telegraf

  1. influx update breaks config !!! Apt hold influx (+grafana?)
    https://schroederdennis.de/tutorial-howto/proxmox-monitoring-einrichten-installieren-influxdb-grafana/
    https://www.howtoforge.com/tutorial/how-to-install-tig-stack-telegraf-influxdb-and-grafana-on-ubuntu-1804/
    https://foldingforum.org/viewtopic.php?f=14&t=35660
  2. HDD Temps Telegraf (install hddtemp daemon!) https://wiki.ubuntuusers.de/hddtemp/
    https://github.com/influxdata/telegraf/tree/master/plugins/inputs/hddtemp
  3. Add problematic smart stats manually: https://askubuntu.com/questions/474669/ssd-temperature-sensor-readout-with-hddtemp
    https://github.com/influxdata/telegraf/blob/master/plugins/inputs/disk/README.md
    https://stackoverflow.com/questions/45171907/influxdb-how-to-update-duration-of-an-existing-database
  4. Format Dircount as influx out: https://www.reddit.com/r/grafana/comments/os96l1/influxdbtelegraf_exec_display_issues/h6n6pc6/?context=3
  5. add telegraf user to nextcloud group in order to be able to scan directories. https://du.nkel.dev/blog/2021-05-05_proxmox_influxdb/
    https://towardsdatascience.com/influxdb-data-retention-f026496d708f
  6. Delete old data in influx
    use DATABASE +
    https://stackoverflow.com/questions/38587898/in-influxdb-how-to-delete-all-measurements
  7. Countdirectories
    Befehl in /usr/bin/countdirectories anlegen:

#!/bin/sh
count=$(ls -l $1 | grep -c ^d)
echo dircount,path=$1 value=$count