System monitoring with graphite_exporter and Promethues

Hi,

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.

Welcome @dips-sys.

I look forward to when you post a link. :slight_smile:

hey i just installed Prometheus on my Scale server, i havent found any guides on how to use this for monitoring, could you please direct me

Hi,

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.

I hope this helps.

1 Like

thank you so much i will continue my journey :slight_smile:

Hi, I’m setting up Graphite as well, but I’m lacking any metrics on my datasets. I’m using Prometheus with graphite_exporter, but I spun up a Graphite instance to debug my metrics.

In your config, you have:

- match: "servers.*.df.*.*.*"
  help: "Disk / dataset usage for TrueNAS. How much storage is used / free"
  name: truenas_df_${3}
  labels:
    host: ${1}
    dataset: ${2}
    state: ${4}

But I don’t have any df metrics. Did you do anything to get those?