Skip to content

Instantly share code, notes, and snippets.

@bahamat
Created July 16, 2019 19:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bahamat/2b51e68cf75f63baa803b4536fe4d76c to your computer and use it in GitHub Desktop.
Save bahamat/2b51e68cf75f63baa803b4536fe4d76c to your computer and use it in GitHub Desktop.
Grafana dashboard template for Triton
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Triton CMON",
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"id": 2,
"iteration": 1563306136184,
"links": [],
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "$datasource",
"description": "Total DRAM provisioned for Triton Services",
"format": "bytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 0
},
"id": 7,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "sum(mem_limit{datacenter_name=~\"$datacenter_name\",alias=~\"$alias\"})",
"format": "time_series",
"intervalFactor": 2,
"metric": "mem_limit",
"refId": "A",
"step": 240
}
],
"thresholds": "",
"title": "Total DRAM Provisioned",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "$datasource",
"description": "Total ZFS Used by Triton",
"format": "bytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 0
},
"id": 8,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "sum(zfs_used{datacenter_name=~\"$datacenter_name\"})",
"format": "time_series",
"intervalFactor": 2,
"metric": "mem_agg_usage",
"refId": "A",
"step": 240
}
],
"thresholds": "",
"title": "Total ZFS Used",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "(user + system time)",
"fill": 1,
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 7
},
"height": "500px",
"id": 1,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "((increase(cpu_sys_usage{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[60s]) + increase(cpu_user_usage{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[60s])) / 60000000000)",
"format": "time_series",
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "CPU Util - {{alias}} - {{datacenter_name}}",
"metric": "cpu",
"refId": "A",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "CPU Utilization",
"tooltip": {
"shared": false,
"sort": 2,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "percentunit",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "s",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "If this is regularly above 100% then the package size should be increased.",
"fill": 1,
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 20
},
"height": "500px",
"id": 9,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"hideEmpty": false,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": false,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "cpucap_cur_usage_percentage{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"} / cpucap_limit_percentage{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"} ",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "CPU Cap Utilization {{alias}} - {{datacenter_name}}",
"refId": "A"
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": false,
"line": true,
"op": "gt",
"value": 1,
"yaxis": "left"
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "CPU Cap Utilization",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "percentunit",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "s",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "If this is regularly above 1 then the package should be increased.",
"fill": 1,
"gridPos": {
"h": 12,
"w": 12,
"x": 0,
"y": 33
},
"height": "500px",
"id": 14,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"hideEmpty": false,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "increase(cpucap_above_seconds_total{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[1m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "{{alias}} - {{datacenter_name}}",
"refId": "D",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Time above CPU Cap",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "s",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "If this is regularly above 1 then the package should be increased.",
"fill": 1,
"gridPos": {
"h": 12,
"w": 12,
"x": 12,
"y": 33
},
"height": "500px",
"id": 15,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"hideEmpty": false,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "cpucap_waiting_threads_count{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "Waiting Threads {{alias}} - {{datacenter_name}}",
"refId": "C",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Waiting Threads",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 45
},
"height": "500px",
"id": 13,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"hideEmpty": false,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "load_average{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}",
"format": "time_series",
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "Load Average {{alias}} - {{datacenter_name}}",
"refId": "A",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Load Average",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": false,
"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": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 58
},
"height": "500px",
"id": 2,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": null,
"sortDesc": null,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/Max/",
"fill": 0,
"legend": false
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "mem_limit{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}",
"format": "time_series",
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "Max Mem {{alias}} - {{datacenter_name}}",
"refId": "A",
"step": 10
},
{
"expr": "mem_agg_usage{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}",
"format": "time_series",
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "Mem Allocated {{alias}} - {{datacenter_name}}",
"metric": "mem",
"refId": "B",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "DRAM Allocated",
"tooltip": {
"shared": false,
"sort": 1,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "s",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 71
},
"height": "500px",
"id": 3,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "max",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/Quota/",
"fill": 0,
"legend": false
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "zfs_logicalused{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "ZFS Used - {{alias}} - {{datacenter_name}}",
"refId": "A",
"step": 10
},
{
"expr": "zfs_used{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"} + zfs_available{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Quota - {{alias}} - {{datacenter_name}}",
"refId": "C",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "ZFS Used",
"tooltip": {
"shared": false,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 13,
"w": 12,
"x": 0,
"y": 84
},
"height": "500px",
"id": 11,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "max",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/Writes/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "increase(vfs_read_operation_count{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[1m])/60",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "VFS Reads - {{alias}} - {{datacenter_name}}",
"refId": "A",
"step": 10
},
{
"expr": "increase(vfs_write_operation_count{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[1m])/60",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "VFS Writes - {{alias}} - {{datacenter_name}}",
"refId": "B",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Filesystem I/O Operations",
"tooltip": {
"shared": false,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "iops",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 84
},
"height": "500px",
"id": 12,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "max",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/Writes/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "increase(vfs_bytes_read_count{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[1m])/60",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "VFS Reads - {{alias}} - {{datacenter_name}}",
"refId": "A",
"step": 10
},
{
"expr": "increase(vfs_bytes_written_count{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[1m])/60",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "VFS Writes - {{alias}} - {{datacenter_name}}",
"refId": "B",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Filesystem I/O Throughput",
"tooltip": {
"shared": false,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "Bps",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 97
},
"height": "500px",
"id": 4,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/In/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "increase(net_agg_bytes_out{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[60s]) / 60",
"format": "time_series",
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "Out - {{alias}} - {{datacenter_name}}",
"refId": "A",
"step": 10
},
{
"expr": "increase(net_agg_bytes_in{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}[60s]) / 60",
"format": "time_series",
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "In - {{alias}} - {{datacenter_name}}",
"refId": "B",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Network Traffic",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "Bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "s",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 110
},
"height": "500px",
"id": 6,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/Max/",
"fill": 0,
"legend": false
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "mem_swap_limit{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"} ",
"format": "time_series",
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "Max Swap - {{alias}} - {{datacenter_name}}",
"refId": "A",
"step": 10
},
{
"expr": "mem_swap{alias=~\"$alias\",datacenter_name=~\"$datacenter_name\"}",
"format": "time_series",
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "Swap - {{alias}} - {{datacenter_name}}",
"refId": "B",
"step": 10
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Swap",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bytes",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "s",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "10s",
"schemaVersion": 16,
"style": "dark",
"tags": [
"triton"
],
"templating": {
"list": [
{
"current": {
"text": "cmon-bbennett",
"value": "cmon-bbennett"
},
"hide": 2,
"label": "Datasource",
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "/cmon-(.*)/",
"skipUrlSync": false,
"type": "datasource"
},
{
"allValue": "blank = us-east-1",
"current": {
"text": "bbennett",
"value": [
"bbennett"
]
},
"datasource": "$datasource",
"definition": "",
"hide": 0,
"includeAll": false,
"label": "Account",
"multi": true,
"name": "account_name",
"options": [],
"query": "cpu_sys_usage",
"refresh": 1,
"regex": "/.*account_name=\"([^\"]*)\".*/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": "",
"current": {
"text": "All",
"value": "$__all"
},
"datasource": "$datasource",
"definition": "",
"hide": 0,
"includeAll": true,
"label": "Datacenter",
"multi": true,
"name": "datacenter_name",
"options": [],
"query": "cpu_sys_usage{account_name=\"$account_name\"}",
"refresh": 1,
"regex": "/.*datacenter_name=\"([^\"]*)\".*/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": "",
"current": {
"text": "ldap0",
"value": [
"ldap0"
]
},
"datasource": "$datasource",
"definition": "",
"hide": 0,
"includeAll": true,
"label": "Alias",
"multi": true,
"name": "alias",
"options": [],
"query": "cpu_sys_usage{account_name=~\"$account_name\",datacenter_name=~\"$datacenter_name\"}",
"refresh": 1,
"regex": "/.*alias=\"([^\"]*)\".*/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "utc",
"title": "Triton",
"uid": "4w-Saz2mz",
"version": 4
}
@bahamat
Copy link
Author

bahamat commented Jul 16, 2019

Use my cmon script to generate configs that provide all the necessary labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment