Loading video player...
TrueNAS has internal metrics reporting, however, it would be better to have these in our full monitoring stack using Prometheus and Grafana. In this video we will go over exporting and ingesting the TrueNAS internal graphite metrics into Prometheus and setting up a Grafana dashboard. From here we can utilize our full monitoring stack and set alerts or create other dashboards based on our TrueNAS metrics. If you find this video helpful please like and subscribe. I also have a discord server for asking questions and discussing other tech topics. Discord: https://discord.gg/znAsmct9GK Resources -------------------- Premetheus Setup: https://youtu.be/Vn-Wp0X6iRE Grafana Setup: https://youtu.be/H0ptW8cRoVs Netdata Config: https://github.com/Supporterino/truenas-graphite-to-prometheus/blob/main/netdata.conf Graphite Mapping: https://github.com/Supporterino/truenas-graphite-to-prometheus/blob/main/graphite_mapping.conf Graphite Prometheus Exporter Compose: https://github.com/EJOzyazgan/homeserver-video-guide-docs/blob/main/prometheus/exporters/exporters-compose.yml#L59-L75 Prometheus Config: https://github.com/EJOzyazgan/homeserver-video-guide-docs/blob/main/prometheus/prometheus.yml#L28-L31 Netdata Config Update Script: https://github.com/EJOzyazgan/homeserver-video-guide-docs/blob/main/scripts/netdata-config-update.sh Grafana Dashboard: https://github.com/Supporterino/truenas-graphite-to-prometheus/blob/main/dashboards/truenas_scale.json Commands Used ------------------------------ Copy File to NAS from Local: scp "LOCAL_PATH" NAS_USER@NAS_IP:/tmp/netdata.conf Copy File within NAS: sudo cp /tmp/netdata.conf /etc/netdata/netdata.conf Update File Owner in NAS: sudo chown root:root /etc/netdata/netdata.conf Update Netdata: sudo systemctl restart netdata Update Permissions on File: sudo chmod 777 GRAPHITE_MAPPING_FILE_PATH Chapters -------------------- 00:00 - Intro 00:22 - Add TrueNAS Graphite Exporter 01:12 - Update Netdata Config 02:27 - Add Graphite Mapping 03:24 - Deploy Graphite Prometheus Exporter 05:09 - Add Grafana Dashboard