Skip to content

Instantly share code, notes, and snippets.

@quonic
Created July 14, 2016 19:21
Show Gist options
  • Save quonic/dadb8f53197106725fc24c32d92b0952 to your computer and use it in GitHub Desktop.
Save quonic/dadb8f53197106725fc24c32d92b0952 to your computer and use it in GitHub Desktop.
Spyingwind's Screeps Grafana Dashboard
{
"id": 3,
"title": "Username",
"originalTitle": "Username",
"tags": [
"screeps"
],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"rows": [
{
"collapse": false,
"editable": true,
"height": "100px",
"panels": [
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(23, 85, 20, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"editable": true,
"error": false,
"format": "none",
"id": 17,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": true,
"target": "stats.gauges.spawn.Spawn1.defenderIndex"
},
{
"hide": true,
"target": "stats.gauges.spawn.Spawn2.defenderIndex"
},
{
"target": "sumSeries(#A, #B)"
}
],
"thresholds": "0,2,4",
"title": "Defense Status",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
},
{
"op": "=",
"text": "Clear",
"value": "0"
}
],
"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)"
],
"decimals": 3,
"editable": true,
"error": false,
"format": "percent",
"id": 12,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 2,
"sparkline": {
"fillColor": "rgba(0, 255, 255, 0.18)",
"full": false,
"lineColor": "rgb(31, 186, 193)",
"show": true
},
"targets": [
{
"target": "asPercent(stats.gauges.gcl.progress, #B)",
"textEditor": false
},
{
"hide": true,
"target": "stats.gauges.gcl.progressTotal"
}
],
"thresholds": "",
"title": "GCL Progress",
"type": "singlestat",
"valueFontSize": "150%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
}
],
"title": "New row"
},
{
"collapse": false,
"editable": true,
"height": "100px",
"panels": [
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(27, 101, 24, 0.97)",
"rgba(136, 74, 22, 0.89)",
"rgba(182, 42, 42, 0.9)"
],
"editable": true,
"error": false,
"format": "percent",
"id": 18,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.cpu.getUsed, #B)"
},
{
"hide": true,
"target": "stats.gauges.cpu.limit"
}
],
"thresholds": "0,80,90",
"title": "CPU Usage",
"type": "singlestat",
"valueFontSize": "100%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(27, 101, 24, 0.97)",
"rgba(136, 74, 22, 0.89)",
"rgba(182, 42, 42, 0.9)"
],
"editable": true,
"error": false,
"format": "percent",
"id": 22,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.cpu.Start, #B)"
},
{
"hide": true,
"target": "stats.gauges.cpu.limit"
}
],
"thresholds": "0,80,90",
"title": "Init",
"type": "singlestat",
"valueFontSize": "100%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current",
"decimals": 0
},
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(27, 101, 24, 0.97)",
"rgba(136, 74, 22, 0.89)",
"rgba(182, 42, 42, 0.9)"
],
"editable": true,
"error": false,
"format": "percent",
"id": 19,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.cpu.CreepManagers, #B)"
},
{
"hide": true,
"target": "stats.gauges.cpu.limit"
}
],
"thresholds": "0,80,90",
"title": "Creep Manager",
"type": "singlestat",
"valueFontSize": "100%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current",
"decimals": 0
},
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(27, 101, 24, 0.97)",
"rgba(136, 74, 22, 0.89)",
"rgba(182, 42, 42, 0.9)"
],
"editable": true,
"error": false,
"format": "percent",
"id": 21,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.cpu.SetupRoles, #B)"
},
{
"hide": true,
"target": "stats.gauges.cpu.limit"
}
],
"thresholds": "0,80,90",
"title": "Setup Roles",
"type": "singlestat",
"valueFontSize": "100%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current",
"decimals": 0
},
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(27, 101, 24, 0.97)",
"rgba(136, 74, 22, 0.89)",
"rgba(182, 42, 42, 0.9)"
],
"editable": true,
"error": false,
"format": "percent",
"id": 20,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.cpu.Creeps, #B)"
},
{
"hide": true,
"target": "stats.gauges.cpu.limit"
}
],
"thresholds": "0,80,90",
"title": "Creep Func",
"type": "singlestat",
"valueFontSize": "100%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current",
"decimals": 0
},
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(27, 101, 24, 0.97)",
"rgba(136, 74, 22, 0.89)",
"rgba(182, 42, 42, 0.9)"
],
"editable": true,
"error": false,
"format": "percent",
"id": 23,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.cpu.Towers, #B)"
},
{
"hide": true,
"target": "stats.gauges.cpu.limit"
}
],
"thresholds": "0,80,90",
"title": "Towers",
"type": "singlestat",
"valueFontSize": "100%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current",
"decimals": 0
},
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(27, 101, 24, 0.97)",
"rgba(136, 74, 22, 0.89)",
"rgba(182, 42, 42, 0.9)"
],
"editable": true,
"error": false,
"format": "percent",
"id": 24,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.cpu.Links, #B)"
},
{
"hide": true,
"target": "stats.gauges.cpu.limit"
}
],
"thresholds": "0,80,90",
"title": "Links",
"type": "singlestat",
"valueFontSize": "100%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current",
"decimals": 0
},
{
"title": "Bucket",
"error": false,
"span": 1,
"editable": true,
"type": "singlestat",
"id": 25,
"links": [],
"maxDataPoints": 100,
"interval": null,
"targets": [
{
"target": "stats.gauges.cpu.bucket"
}
],
"cacheTimeout": null,
"format": "none",
"prefix": "",
"postfix": "",
"nullText": null,
"valueMaps": [
{
"value": "null",
"op": "=",
"text": "N/A"
}
],
"nullPointMode": "connected",
"valueName": "avg",
"prefixFontSize": "50%",
"valueFontSize": "80%",
"postfixFontSize": "50%",
"thresholds": "10000,5000,1000",
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(184, 41, 41, 0.9)",
"rgba(152, 84, 27, 0.89)",
"rgba(16, 69, 14, 0.97)"
],
"sparkline": {
"show": false,
"full": false,
"lineColor": "rgb(31, 120, 193)",
"fillColor": "rgba(31, 118, 189, 0.18)"
}
}
],
"showTitle": true,
"title": "CPU"
},
{
"collapse": false,
"editable": true,
"height": "200px",
"panels": [
{
"aliasColors": {
"Capacity": "#0A437C",
"energyAvailable": "#EAB839",
"energyCapacityAvailable": "#0A437C",
"stats.gauges.room.$room1.energyAvailable": "#629E51",
"stats.gauges.room.$room1.energyCapacityAvailable": "#0A437C"
},
"bars": true,
"datasource": null,
"editable": true,
"error": false,
"fill": 0,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 1,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 2,
"links": [
{
"targetBlank": true,
"title": "Main Room",
"type": "absolute",
"url": "https://screeps.com/a/#!/room/$controllerProgress"
}
],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"rightYAxisLabel": "",
"seriesOverrides": [],
"span": 3,
"stack": false,
"steppedLine": false,
"targets": [
{
"target": "alias(holtWintersAberration(stats.gauges.room.$room1.energyAvailable, 3), 'Current')"
},
{
"target": "alias(stats.gauges.room.$room1.energyCapacityAvailable, 'Capacity')",
"hide": true
},
{
"target": "alias(holtWintersAberration(stats.gauges.room.$room1.storedEnergy, 3), 'Stored')",
"textEditor": false
}
],
"timeFrom": null,
"timeShift": null,
"title": "Energy Usage",
"tooltip": {
"shared": true,
"value_type": "cumulative"
},
"transparent": false,
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
},
{
"aliasColors": {
"Progress": "#7EB26D",
"Total": "#1F78C1"
},
"bars": false,
"datasource": null,
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)",
"thresholdLine": false
},
"height": "",
"id": 5,
"leftYAxisLabel": "",
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"hideEmpty": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"rightYAxisLabel": "",
"seriesOverrides": [
{
"alias": "Total",
"fillBelowTo": "Progress",
"lines": true
},
{
"alias": "Progress",
"lines": true,
"fill": 5
}
],
"span": 3,
"stack": false,
"steppedLine": false,
"targets": [
{
"hide": false,
"target": "alias(stats.gauges.room.$room1.controllerProgress, 'Progress')",
"textEditor": false
},
{
"hide": false,
"target": "alias(stats.gauges.room.$room1.controllerProgressTotal, 'Total')",
"textEditor": false
}
],
"timeFrom": null,
"timeShift": null,
"title": "Room Controller Upgrade",
"tooltip": {
"shared": true,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
},
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(62, 8, 62, 0.9)",
"rgba(20, 77, 112, 0.9)",
"rgba(32, 119, 29, 0.97)"
],
"decimals": 2,
"editable": true,
"error": false,
"format": "percent",
"height": "",
"id": 10,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "150%",
"prefix": "",
"prefixFontSize": "150%",
"span": 3,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.room.$room1.controllerProgress, #B)",
"textEditor": false
},
{
"hide": true,
"target": "stats.gauges.room.$room1.controllerProgressTotal",
"textEditor": false
}
],
"thresholds": "25,50,75",
"timeFrom": null,
"timeShift": null,
"title": "RCL Progress",
"type": "singlestat",
"valueFontSize": "200%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
}
],
"repeat": null,
"showTitle": true,
"title": "$room1"
},
{
"collapse": false,
"editable": true,
"height": "200px",
"panels": [
{
"aliasColors": {
"Capacity": "#0A437C",
"energyAvailable": "#EAB839",
"energyCapacityAvailable": "#0A437C",
"stats.gauges.room.$room1.energyAvailable": "#629E51",
"stats.gauges.room.$room1.energyCapacityAvailable": "#0A437C"
},
"bars": true,
"datasource": null,
"editable": true,
"error": false,
"fill": 0,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 13,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 2,
"links": [
{
"targetBlank": true,
"title": "Main Room",
"type": "absolute",
"url": "https://screeps.com/a/#!/room/$controllerProgress"
}
],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"rightYAxisLabel": "",
"seriesOverrides": [],
"span": 3,
"stack": false,
"steppedLine": false,
"targets": [
{
"target": "alias(holtWintersAberration(stats.gauges.room.$room2.energyAvailable, 3), 'Current')"
},
{
"target": "alias(stats.gauges.room.$room2.energyCapacityAvailable, 'Capacity')",
"hide": true
},
{
"target": "alias(holtWintersAberration(stats.gauges.room.$room2.storedEnergy, 3), 'Stored')",
"textEditor": false,
"hide": false
}
],
"timeFrom": null,
"timeShift": null,
"title": "Energy Usage",
"tooltip": {
"shared": true,
"value_type": "cumulative"
},
"transparent": false,
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
},
{
"aliasColors": {
"Progress": "#7EB26D",
"Total": "#1F78C1"
},
"bars": false,
"datasource": null,
"editable": true,
"error": false,
"fill": 0,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)",
"thresholdLine": false
},
"height": "",
"id": 14,
"leftYAxisLabel": "",
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"hideEmpty": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"rightYAxisLabel": "",
"seriesOverrides": [
{
"alias": "Total",
"fillBelowTo": "Progress",
"lines": true
},
{
"alias": "Progress",
"fill": 5,
"lines": true
}
],
"span": 3,
"stack": false,
"steppedLine": false,
"targets": [
{
"hide": false,
"target": "alias(stats.gauges.room.$room2.controllerProgress, 'Progress')",
"textEditor": false
},
{
"hide": false,
"target": "alias(stats.gauges.room.$room2.controllerProgressTotal, 'Total')",
"textEditor": false
}
],
"timeFrom": null,
"timeShift": null,
"title": "Room Controller Upgrade",
"tooltip": {
"shared": true,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
},
{
"cacheTimeout": null,
"colorBackground": true,
"colorValue": false,
"colors": [
"rgba(133, 27, 27, 0.9)",
"rgba(112, 61, 20, 0.9)",
"rgba(32, 119, 29, 0.97)"
],
"decimals": 2,
"editable": true,
"error": false,
"format": "percent",
"height": "",
"id": 15,
"interval": null,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "150%",
"prefix": "",
"prefixFontSize": "150%",
"span": 3,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"targets": [
{
"hide": false,
"target": "asPercent(stats.gauges.room.$room2.controllerProgress, #B)",
"textEditor": false
},
{
"hide": true,
"target": "stats.gauges.room.$room2.controllerProgressTotal",
"textEditor": false
}
],
"thresholds": "25,50,75",
"timeFrom": null,
"timeShift": null,
"title": "RCL Progress",
"type": "singlestat",
"valueFontSize": "200%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
}
],
"showTitle": true,
"title": "$room2"
},
{
"collapse": false,
"editable": true,
"height": "150px",
"panels": [],
"title": "New row"
}
],
"nav": [
{
"collapse": false,
"enable": true,
"notice": false,
"now": true,
"refresh_intervals": [
"15s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"status": "Stable",
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
],
"type": "timepicker"
}
],
"time": {
"from": "now-6h",
"to": "now"
},
"templating": {
"list": [
{
"allFormat": "regex values",
"current": {
"tags": [],
"text": "",
"value": ""
},
"datasource": null,
"includeAll": false,
"multi": false,
"multiFormat": "glob",
"name": "room1",
"query": "stats.gauges.room.*",
"refresh_on_load": false,
"regex": "",
"type": "query"
},
{
"allFormat": "glob",
"current": {
"tags": [],
"text": "",
"value": ""
},
"datasource": null,
"includeAll": false,
"multi": false,
"multiFormat": "glob",
"name": "room2",
"query": "stats.gauges.room.*",
"refresh_on_load": false,
"type": "query"
}
]
},
"annotations": {
"list": []
},
"refresh": "15s",
"schemaVersion": 6,
"version": 92,
"links": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment