Grafana Setup - xyzzy529/screeps.behaviour-action-pattern GitHub Wiki
For this guide, I will be using screepspl.us, however you can use another Grafana setup if you wish.

Prerequisites
- Screeps Login info
- Node + NPM
Setup
- First off, you want to install the agent. Download and extract the agent from this Github Repo.
- Run
npm installto install required modules. - Create your config file using
cp config.example.js config.js - Fill in your Screeps username and password. If you sign in with Steam, you will have to setup a password on your Screeps account settings.
- Login to ScreepsPlus, head to the agent setup page and get your token.
- Change
sampleConfigtofalse. - Set
GRAFANAtotruein your parameter.js (or viral.parameter.js) - Run
node app.js - Go to Grafana
- Open Dashboard settings (gear icon after Dashboard name) and select Templating. Remove any existing templates and add a new one:
- Variable Name:
rooms - Data source:
screepspl.us - Refresh:
On Dashboard Load - Query:
screeps.rooms.* - Multi-value:
true - Include All option:
true - Value groups/tags Enabled:
true - Tags query:
screeps.rooms.* - Tag values query:
screeps.rooms.$tag.level
- Variable Name:
Panel Examples
Some useful panel examples
CPU Usage
Panel Type: Singlestat
Metric Streams: 
Options Stat: current
Unit Stat: asPercent (0-100)
CPU/Bucket Graph
Panel Type: Graph
Metric Streams: 
Legend As Table: true
Legend To the right: true
Display Fill: 0
Line Width: 2
Series Override
Bucket: Y-axis: 2
Used: Line fill: 2
GCL Time
Panel Type: Singlestat
Metric Streams: 
Options Stat: avg
Options Postfix: s
Options Unit: seconds (s)