← All dashboards

Truenas

Getting Data into Grafana

  1. On Truenas Scale

    • Following exporters can be installed on truenas scale host:
      • prometheus-libvirt-exporter (Default port 9177)
      • prometheus-node-exporter (Default port 9100)
      • prometheus-node-exporter-collector
    • Disable default filesystem metrics from node-exporter by editing /etc/default/prometheus-node-exporter
      ARGS="--no-collector.filesystem"
    • add Zfs Zpool script to /usr/share/prometheus-node-exporter-collectors and make it executable
    • Create systemd files for data collections
      • /lib/systemd/system/prometheus-node-exporter-zfs.service
        [Unit]
        Description=Collect ZFS Zpool metrics for prometheus-node-exporter
        
        [Service]
        Type=oneshot
        Environment=TMPDIR=/var/lib/prometheus/node-exporter
        ExecStart=/bin/bash -c "/usr/share/prometheus-node-exporter-collectors/zfs_zpool.sh | sponge /var/lib/prometheus/node-exporter/zfs_zpool.prom"
      • /lib/systemd/system/prometheus-node-exporter-zfs.timer
        [Unit]
        Description=Run ZFS metrics collection every 15 minutes
        ConditionPathExists=/usr/sbin/zfs
        ConditionPathExists=/usr/sbin/zpool
        
        [Timer]
        OnBootSec=0
        OnUnitActiveSec=15min
        
        [Install]
        WantedBy=timers.target
  2. On the Prometheus Node:

    • Add Scrape Config to Prometheus
          - job_name: truenas
            static_configs:
            - targets: 
                - <Truenas-scale IP/fqdn>:9100
                - <Truenas-scale IP/fqdn>:9177

Dashboard revisions

RevisionDecscriptionCreated

Reviews

Login or Sign up to write a review

Reviews from the community

Get this dashboard

Data source:

Dependencies:

Import the dashboard template:

or

Download JSON

Docs: Importing dashboards

Downloads: 30