I have set up Prometheus and Grafana to visualize system metrics and wanted to enrich my monitoring with TrueNAS data. I did some research and found a post on the old forum proposing a simple mapping configuration for the graphite_exporter.
I created my own mapping file with more Prometheus labels, for easier visualizations in Grafana. You can find my truenas-mapping on Github. I hope this can be useful for others as well.
you need to install graphite_exporter (e.g. using docker) and configure it as a data source in your prometheus instance. The exporter can ingest data from TrueNAS and provide it to prometheus. Configure the prometheus_exporter as Graphite server in your TrueNAS.
As I have TrueNAS Core, I setup a jail for monitoring with Prometheus, graphite_exporter and Grafana for visualization. But using Scale and Docker shouldn’t make a big difference.