Grafana dashboard: OnDemand Clusters
Description: Open OnDemand Clusters dashboard

This dashboard pulls data provided by several Prometheus exporters:

* [SLURM exporter](https://github.com/treydock/prometheus-slurm-exporter)
* [node_exporter](https://github.com/prometheus/node_exporter)
* [cgroup_exporter](https://github.com/treydock/cgroup_exporter)
* [gpfs_exporter](https://github.com/treydock/gpfs_exporter)
* [DCGM exporter](https://github.com/NVIDIA/gpu-monitoring-tools)

All metrics expect to have a `host` label.  This is an example of a relabel configuration in Prometheus to assign all instances the host label:

```
    relabel_configs:
      - source_labels: '[__address__]'
        regex: '([^.]+)..*'
        replacement: '$1'
        target_label: host
```

Record rules used for CPU and network panels:

```
groups:
- name: node
  rules:
  - record: node:cpus:count
    expr: count by(host,cluster,role) (node_cpu_info)
  - record: node:cpu_load_user:avg5m
    expr: avg by (host,cluster,role)(irate(node_cpu_seconds_total{mode="user"}[5m]))
  - record: node:cpu_load_system:avg5m
    expr: avg by (host,cluster,role)(irate(node_cpu_seconds_total{mode="system"}[5m]))
  - record: node:cpu_load_iowait:avg5m
    expr: avg by (host,cluster,role)(irate(node_cpu_seconds_total{mode="iowait"}[5m]))
  - record: node:cpu_load_total:avg5m
    expr: 1 - avg by (host,cluster,role)(irate(node_cpu_seconds_total{mode="idle"}[5m]))
  - record: node:network_received_rate_bytes
    expr: irate(node_network_receive_bytes_total[5m])
  - record: node:network_transmit_rate_bytes
    expr: irate(node_network_transmit_bytes_total[5m])
```

Record rules for cgroup related panels:

```
groups:
- name: cgroup
  rules:
  - record: cgroup:cpu_user_seconds:irate5m
    expr: (irate(cgroup_cpu_user_seconds[5m]) / cgroup_cpus) * on(cgroup, host) group_left(jobid,uid,username) cgroup_info
  - record: cgroup:cpu_system_seconds:irate5m
    expr: (irate(cgroup_cpu_system_seconds[5m]) / cgroup_cpus) * on(cgroup, host) group_left(jobid,uid,username) cgroup_info
  - record: cgroup:cpu_total_seconds:irate5m
    expr: (irate(cgroup_cpu_total_seconds[5m]) / cgroup_cpus) * on(cgroup, host) group_left(jobid,uid,username) cgroup_info
  - record: cgroup:memory_used_bytes
    expr: cgroup_memory_used_bytes * on(cgroup, host) group_left(jobid,uid,username) cgroup_info
  - record: cgroup:memory_total_bytes
    expr: cgroup_memory_total_bytes * on(cgroup, host) group_left(jobid,uid,username) cgroup_info
  - record: cgroup:memory_rss_bytes
    expr: cgroup_memory_rss_bytes * on(cgroup, host) group_left(jobid,uid,username) cgroup_info
  - record: cgroup:memory_cache_bytes
    expr: cgroup_memory_cache_bytes * on(cgroup, host) group_left(jobid,uid,username) cgroup_info
  - record: cgroup:swap_used_bytes
    expr: (cgroup_memsw_used_bytes - cgroup_memory_used_bytes) * on(cgroup, host) group_left(jobid,uid,username) cgroup_info
```

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "$$hashKey": "object:1885",
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12093,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1623856657301,
  "links": [],
  "panels": [
    {
      "aliasColors": {
        "Allocated": "green"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 32,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.3",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:459",
          "alias": "In use",
          "color": "#73BF69",
          "stack": true
        },
        {
          "$$hashKey": "object:460",
          "alias": "Idle",
          "color": "#FADE2A",
          "stack": true
        },
        {
          "$$hashKey": "object:461",
          "alias": "Down",
          "color": "#F2495C",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(slurm_nodes_err{cluster=~\"$cluster\",environment=\"production\"} + slurm_nodes_fail{cluster=~\"$cluster\",environment=\"production\"} + slurm_nodes_down{cluster=~\"$cluster\",environment=\"production\"} + slurm_nodes_drain{cluster=~\"$cluster\",environment=\"production\"} + slurm_nodes_maint{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Down",
          "refId": "C"
        },
        {
          "expr": "sum(slurm_nodes_alloc{cluster=~\"$cluster\",environment=\"production\"} + slurm_nodes_comp{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Allocated",
          "refId": "A"
        },
        {
          "expr": "sum(slurm_nodes_resv{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Reserved",
          "refId": "D"
        },
        {
          "expr": "sum(slurm_nodes_mix{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Mixed",
          "refId": "E"
        },
        {
          "expr": "sum(slurm_nodes_idle{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Idle",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Node Utilization",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:492",
          "format": "short",
          "label": "Nodes",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:493",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 34,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.3",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:659",
          "alias": "Total",
          "color": "#C4162A",
          "fill": 0,
          "stack": false
        }
      ],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(slurm_queue_total{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Total",
          "refId": "A"
        },
        {
          "expr": "sum(slurm_queue_pending{cluster=~\"$cluster\",environment=\"production\"} + slurm_queue_pending_dependency{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Pending",
          "refId": "B"
        },
        {
          "expr": "sum(slurm_queue_running{cluster=~\"$cluster\",environment=\"production\"} + slurm_queue_configuring{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Running",
          "refId": "C"
        },
        {
          "expr": "sum(slurm_queue_cancelled{cluster=~\"$cluster\",environment=\"production\"} + slurm_queue_completed{cluster=~\"$cluster\",environment=\"production\"} + slurm_queue_completing{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Completed",
          "refId": "D"
        },
        {
          "expr": "sum(slurm_queue_failed{cluster=~\"$cluster\",environment=\"production\"} + slurm_queue_node_fail{cluster=~\"$cluster\",environment=\"production\"} + slurm_queue_timeout{cluster=~\"$cluster\",environment=\"production\"})",
          "interval": "",
          "legendFormat": "Failed",
          "refId": "E"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Jobs",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:568",
          "format": "short",
          "label": "Jobs",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:569",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": null,
      "decimals": null,
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 9
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.3",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "Total CPUs",
          "color": "#F2495C",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(node_load1{cluster=~\"$cluster\",host=~\"$host\"})",
          "legendFormat": "1min",
          "refId": "A"
        },
        {
          "expr": "sum(node:cpus:count{cluster=~\"$cluster\",host=~\"$host\"})",
          "instant": false,
          "interval": "",
          "legendFormat": "Total CPUs",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "CPU Load",
      "tooltip": {
        "shared": false,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "decimals": 2,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 9
      },
      "hiddenSeries": false,
      "id": 10,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "hideEmpty": true,
        "hideZero": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "sideWidth": null,
        "sort": "current",
        "sortDesc": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "maxPerRow": 6,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.3",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": null,
      "seriesOverrides": [
        {
          "alias": "Total",
          "color": "#C4162A",
          "fill": 0
        },
        {
          "alias": "System",
          "stack": true
        },
        {
          "alias": "User",
          "stack": true
        },
        {
          "alias": "Iowait",
          "stack": true
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "avg(node:cpu_load_system:avg5m{cluster=~\"$cluster\",host=~\"$host\"})",
          "format": "time_series",
          "hide": false,
          "instant": false,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "System",
          "refId": "A",
          "step": 20
        },
        {
          "expr": "avg(node:cpu_load_user:avg5m{cluster=~\"$cluster\",host=~\"$host\"})",
          "format": "time_series",
          "hide": false,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "User",
          "refId": "B",
          "step": 240
        },
        {
          "expr": "avg(node:cpu_load_iowait:avg5m{cluster=~\"$cluster\",host=~\"$host\"})",
          "format": "time_series",
          "hide": false,
          "instant": false,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": " Iowait",
          "refId": "D",
          "step": 240
        },
        {
          "expr": "avg(node:cpu_load_total:avg5m{cluster=~\"$cluster\",host=~\"$host\"})",
          "format": "time_series",
          "hide": false,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "Total",
          "refId": "F",
          "step": 240
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "CPU Usage",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "percentunit",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 18
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.3",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/.*Total/",
          "color": "#F2495C",
          "fill": 0
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(node_memory_MemTotal_bytes{cluster=~\"$cluster\",host=~\"$host\"})",
          "format": "time_series",
          "legendFormat": "Memory Total",
          "refId": "A"
        },
        {
          "expr": "sum(node_memory_MemTotal_bytes{cluster=~\"$cluster\",host=~\"$host\"}) - sum(node_memory_MemAvailable_bytes{cluster=~\"$cluster\",host=~\"$host\"})",
          "format": "time_series",
          "interval": "",
          "legendFormat": "Memory Used",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Memory Usage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 18
      },
      "hiddenSeries": false,
      "id": 12,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.3",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:5416",
          "alias": "/.*write/",
          "transform": "negative-Y"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(irate(gpfs_perf_read_bytes_total{role=\"compute\",cluster=~\"$cluster\",host=~\"$host\"}[15m]) OR ON(host,fs) irate(gpfs_perf_read_bytes{role=\"compute\",cluster=~\"$cluster\",host=~\"$host\"}[15m])) by (fs)",
          "interval": "",
          "legendFormat": "{{fs}} - read",
          "refId": "A"
        },
        {
          "expr": "sum(irate(gpfs_perf_write_bytes_total{role=\"compute\",cluster=~\"$cluster\",host=~\"$host\"}[15m]) OR ON(host,fs) irate(gpfs_perf_write_bytes{role=\"compute\",cluster=~\"$cluster\",host=~\"$host\"}[15m])) by (fs)",
          "interval": "",
          "legendFormat": "{{fs}} - write",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "GPFS IO",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:5429",
          "format": "Bps",
          "label": "write（-）/read（+)",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:5430",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 27
      },
      "id": 30,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": null,
          "fill": 2,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 28
          },
          "hiddenSeries": false,
          "id": 6,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "Transmit",
              "transform": "negative-Y"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum(irate(node_network_transmit_bytes_total{cluster=~\"$cluster\",host=~\"$host\"}[5m])) * 8",
              "interval": "",
              "legendFormat": "Transmit",
              "refId": "A"
            },
            {
              "expr": "sum(irate(node_network_receive_bytes_total{cluster=~\"$cluster\",host=~\"$host\"}[5m])) * 8",
              "legendFormat": "Receive",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Network Usage",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bps",
              "label": "transmit（-）/receive（+)",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": null,
          "fill": 2,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 28
          },
          "hiddenSeries": false,
          "id": 8,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "Transmit",
              "transform": "negative-Y"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum(irate(node_infiniband_port_data_transmitted_bytes_total{cluster=~\"$cluster\",host=~\"$host\"}[5m])) * 8",
              "legendFormat": "Transmit",
              "refId": "A"
            },
            {
              "expr": "sum(irate(node_infiniband_port_data_received_bytes_total{cluster=~\"$cluster\",host=~\"$host\"}[5m])) * 8",
              "legendFormat": "Receive",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Infiniband Usage",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bps",
              "label": "transmit（-）/receive（+)",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "Network Metrics",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 28
      },
      "id": 15,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 29
          },
          "hiddenSeries": false,
          "id": 16,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.4.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "$$hashKey": "object:135",
              "alias": "Total",
              "color": "#F2495C",
              "fill": 0
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "avg(DCGM_FI_DEV_GPU_UTIL{cluster=~\"$cluster\",host=~\"$host\"})",
              "interval": "",
              "legendFormat": "GPU Utilization",
              "refId": "A"
            },
            {
              "expr": "avg(DCGM_FI_DEV_MEM_COPY_UTIL{cluster=~\"$cluster\",host=~\"$host\"})",
              "interval": "",
              "legendFormat": "Memory Utilization",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Average GPU Utilization",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:144",
              "format": "percent",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:145",
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 12,
            "y": 29
          },
          "hiddenSeries": false,
          "id": 18,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.4.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "$$hashKey": "object:225",
              "alias": "Total",
              "color": "#F2495C",
              "fill": 0
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum(DCGM_FI_DEV_FB_USED{cluster=~\"$cluster\",host=~\"$host\"})",
              "interval": "",
              "legendFormat": "Used",
              "refId": "A"
            },
            {
              "expr": "sum(DCGM_FI_DEV_FB_FREE{cluster=~\"$cluster\",host=~\"$host\"}) + sum(DCGM_FI_DEV_FB_USED{cluster=~\"$cluster\",host=~\"$host\"})",
              "interval": "",
              "legendFormat": "Total",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "GPU memory usage",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:234",
              "format": "mbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:235",
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "GPU Metrics",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 29
      },
      "id": 22,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": null,
          "fill": 2,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 30
          },
          "hiddenSeries": false,
          "id": 20,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "$$hashKey": "object:91",
              "alias": "/.*total/",
              "stack": false
            }
          ],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "expr": "cgroup:cpu_user_seconds:irate5m{cluster=\"$cluster\",host=\"$host\",jobid=\"$jobid\"}",
              "interval": "",
              "legendFormat": "{{jobid}} CPU user",
              "refId": "A"
            },
            {
              "expr": "cgroup:cpu_system_seconds:irate5m{cluster=\"$cluster\",host=\"$host\",jobid=\"$jobid\"}",
              "interval": "",
              "legendFormat": "{{jobid}} CPU system",
              "refId": "B"
            },
            {
              "expr": "cgroup:cpu_total_seconds:irate5m{cluster=\"$cluster\",host=\"$host\",jobid=\"$jobid\"}",
              "interval": "",
              "legendFormat": "{{jobid}} CPU total",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "cgroup CPU usage",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:104",
              "format": "percentunit",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:105",
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": null,
          "fill": 2,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 12,
            "y": 30
          },
          "hiddenSeries": false,
          "id": 24,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "$$hashKey": "object:2050",
              "alias": "/.*total/",
              "color": "#F2495C",
              "fill": 0,
              "stack": false
            },
            {
              "$$hashKey": "object:2096",
              "alias": "/.*used/",
              "stack": false
            },
            {
              "$$hashKey": "object:11251",
              "alias": "/.*swap/",
              "stack": false
            }
          ],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "expr": "cgroup:memory_used_bytes{cluster=\"$cluster\",host=\"$host\",jobid=\"$jobid\"}",
              "interval": "",
              "legendFormat": "{{jobid}} used",
              "refId": "A"
            },
            {
              "expr": "cgroup:memory_total_bytes{cluster=\"$cluster\",host=\"$host\",jobid=\"$jobid\"}",
              "interval": "",
              "legendFormat": "{{jobid}} total",
              "refId": "B"
            },
            {
              "expr": "cgroup:memory_rss_bytes{cluster=\"$cluster\",host=\"$host\",jobid=\"$jobid\"}",
              "interval": "",
              "legendFormat": "{{jobid}} RSS",
              "refId": "C"
            },
            {
              "expr": "cgroup:memory_cache_bytes{cluster=\"$cluster\",host=\"$host\",jobid=\"$jobid\"}",
              "interval": "",
              "legendFormat": "{{jobid}} cache",
              "refId": "D"
            },
            {
              "expr": "cgroup:swap_used_bytes{cluster=\"$cluster\",host=\"$host\",jobid=\"$jobid\"}",
              "interval": "",
              "legendFormat": "{{jobid}} swap",
              "refId": "E"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "cgroup memory usage",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:2065",
              "format": "bytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:2066",
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "cgroups",
      "type": "row"
    }
  ],
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": "(ruby|owens|pitzer)",
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(node_uname_info{role=\"compute\"}, cluster)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": false,
        "name": "cluster",
        "options": [],
        "query": {
          "query": "label_values(node_uname_info{role=\"compute\"}, cluster)",
          "refId": "Prometheus-cluster-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": ".*",
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(node_uname_info{role=\"compute\",cluster=~\"$cluster\"}, host)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "host",
        "options": [],
        "query": {
          "query": "label_values(node_uname_info{role=\"compute\",cluster=~\"$cluster\"}, host)",
          "refId": "Prometheus-host-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(node_uname_info{role=\"compute\",cluster=\"$cluster\",host=\"$host\"}, jobid)",
        "description": null,
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "jobid",
        "options": [],
        "query": {
          "query": "label_values(node_uname_info{role=\"compute\",cluster=\"$cluster\",host=\"$host\"}, jobid)",
          "refId": "Prometheus-jobid-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "OnDemand Clusters",
  "uid": "aaba6Ahbauquag",
  "version": 8,
  "description": "Open OnDemand Clusters dashboard"
}