Grafana dashboard: NVIDIA Jetson Devices
Description: A Grafana dashboard driven by a Prometheus metrics collector for monitoring NVIDIA Jetson devices

## Introduction
This project is a Grafana dashboard, driven by a Prometheus metrics collector, for monitoring NVIDIA Jetson devices [Xavier NX, Nano, AGX Xavier, TX1, TX2] operating autonomously in a headless fashion (i.e. no connected display and associated user-input devices).

Full instructions on using this dashboard are detailed on the project [`jetson-stats-grafana-dashboard` GitHub repo](https://github.com/svcavallar/jetson-stats-grafana-dashboard)



{
  "__inputs": [
    {
      "name": "DS_MY_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.5"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 14493,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "rgba(219, 237, 215, 0.2)",
            "mode": "fixed"
          },
          "mappings": [
            {
              "from": "",
              "id": 1,
              "text": "",
              "to": "",
              "type": 1
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "days"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Days"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "hours"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Hours"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "minutes"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Minutes"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 0,
        "y": 0
      },
      "id": 16,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "vertical",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "jetson_uptime",
          "format": "time_series",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "System Uptime"
        }
      ],
      "title": "System Uptime",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "uptime"
          }
        }
      ],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "rgb(213, 247, 0)",
            "mode": "fixed"
          },
          "custom": {
            "align": null,
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "jetpack"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 118
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "l4t"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 105
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Machine"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 572
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "L4T"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 119
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Jetpack"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 109
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 3,
        "w": 13,
        "x": 11,
        "y": 0
      },
      "id": 12,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.5",
      "repeat": null,
      "targets": [
        {
          "exemplar": true,
          "expr": "jetson_info_board_info",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Board Info"
        }
      ],
      "title": "Board Info",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "Value": true,
              "__name__": true,
              "board_info": true,
              "instance": true,
              "job": true
            },
            "indexByName": {
              "Time": 3,
              "Value": 8,
              "__name__": 4,
              "board_info": 5,
              "instance": 6,
              "jetpack": 1,
              "job": 7,
              "l4t": 2,
              "machine": 0
            },
            "renameByName": {
              "jetpack": "Jetpack",
              "l4t": "L4T",
              "machine": "Machine"
            }
          }
        }
      ],
      "transparent": true,
      "type": "table"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "rgb(213, 247, 0)",
            "mode": "fixed"
          },
          "custom": {
            "align": null,
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "jetpack"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 118
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "l4t"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 105
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Chip ID"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 90
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Codename"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 107
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Board"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 112
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "SOC"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 99
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Serial #"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 134
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Module"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 128
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "CUDA Arch Bin"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 130
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 3,
        "w": 13,
        "x": 11,
        "y": 3
      },
      "id": 14,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "jetson_info_hardware_info",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Board Hardware Info"
        }
      ],
      "title": "Board Hardware Info",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "Value": true,
              "__name__": true,
              "board": false,
              "board_hw": true,
              "instance": true,
              "job": true,
              "type": true
            },
            "indexByName": {
              "Time": 1,
              "Value": 13,
              "__name__": 2,
              "board": 3,
              "board_hw": 4,
              "chip_id": 5,
              "codename": 6,
              "cuda_arch_bin": 7,
              "instance": 8,
              "job": 9,
              "module": 10,
              "serial_number": 11,
              "soc": 12,
              "type": 0
            },
            "renameByName": {
              "board": "Board",
              "chip_id": "Chip ID",
              "codename": "Codename",
              "cuda_arch_bin": "CUDA Arch Bin",
              "module": "Module",
              "serial_number": "Serial #",
              "soc": "SOC",
              "type": "Type"
            }
          }
        }
      ],
      "transparent": true,
      "type": "table"
    },
    {
      "datasource": "-- Mixed --",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 70
              },
              {
                "color": "red",
                "value": 90
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 8,
        "x": 0,
        "y": 6
      },
      "id": 8,
      "options": {
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "datasource": "${DS_MY_PROMETHEUS}",
          "exemplar": true,
          "expr": "jetson_usage_gpu",
          "format": "time_series",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "GPU Usage"
        }
      ],
      "title": "GPU Usage",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "gpu"
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": "-- Mixed --",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 40
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 8,
        "x": 8,
        "y": 6
      },
      "id": 6,
      "options": {
        "displayMode": "lcd",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "datasource": "${DS_MY_PROMETHEUS}",
          "exemplar": true,
          "expr": "jetson_usage_cpu",
          "format": "time_series",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "CPU Usage"
        }
      ],
      "title": "CPU Usage",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "cpu"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "instance": true,
              "job": true
            },
            "indexByName": {},
            "renameByName": {
              "cpu_1": "CPU 1",
              "cpu_2": "CPU 2",
              "cpu_3": "CPU 3",
              "cpu_4": "CPU 4",
              "cpu_5": "CPU 5",
              "cpu_6": "CPU 6",
              "cpu_7": "CPU 7",
              "cpu_8": "CPU 8"
            }
          }
        }
      ],
      "type": "bargauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 80
              },
              {
                "color": "red",
                "value": 90
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 8,
        "x": 16,
        "y": 6
      },
      "id": 7,
      "interval": "5s",
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "jetson_usage_fan",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Fan Usage"
        }
      ],
      "title": "Fan",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "fan"
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 16204476,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "yellow",
                "value": 12204476
              },
              {
                "color": "red",
                "value": 14204476
              }
            ]
          },
          "unit": "deckbytes"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "shared"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Shared"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "used"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Used"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 4,
        "x": 0,
        "y": 11
      },
      "id": 13,
      "interval": "5s",
      "options": {
        "displayMode": "lcd",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "jetson_usage_ram",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "RAM Usage"
        }
      ],
      "title": "RAM Used",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "ram"
          }
        }
      ],
      "type": "bargauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 16.2,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 2
              },
              {
                "color": "green",
                "value": 6
              }
            ]
          },
          "unit": "decgbytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 4,
        "y": 11
      },
      "id": 2,
      "interval": "5s",
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "jetson_usage_disk",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Disk Usage"
        }
      ],
      "title": "Available Disk Space",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "disk"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "available"
              ]
            }
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 120,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(168, 168, 168)",
                "value": null
              },
              {
                "color": "light-orange",
                "value": 70
              },
              {
                "color": "dark-red",
                "value": 90
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 15,
        "x": 9,
        "y": 11
      },
      "id": 15,
      "interval": "5s",
      "options": {
        "orientation": "vertical",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "jetson_temperatures",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Sensor Temperatures"
        }
      ],
      "title": "Sensor Temperatures",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "temperature"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "ao": "AO",
              "aux": "AUX",
              "cpu": "CPU",
              "gpu": "GPU",
              "tboard": "Tboard",
              "tdiode": "Tdiode",
              "thermal": "Thermal"
            }
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "rgb(153, 154, 156)",
            "mode": "fixed"
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(168, 168, 168)",
                "value": null
              },
              {
                "color": "light-orange",
                "value": 70
              },
              {
                "color": "dark-red",
                "value": 90
              }
            ]
          },
          "unit": "mwatt"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "id": 17,
      "interval": "5s",
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "jetson_usage_power",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Power Usage"
        }
      ],
      "title": "Power Usage",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "power"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "instance": true,
              "job": true
            },
            "indexByName": {},
            "renameByName": {
              "ao": "AO",
              "aux": "AUX",
              "cpu": "CPU",
              "cv": "CV",
              "gpu": "GPU",
              "soc": "SOC",
              "sys5v": "SYS5V",
              "tboard": "Tboard",
              "tdiode": "Tdiode",
              "thermal": "Thermal",
              "vddrq": "VDDRQ"
            }
          }
        }
      ],
      "type": "stat"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "NVIDIA Jetson Devices",
  "uid": "n6FGltjMz",
  "version": 1,
  "description": "A Grafana dashboard driven by a Prometheus metrics collector for monitoring NVIDIA Jetson devices"
}