Merge pull request #26 from Kariton/add_dashboards

add dashboards and description to README
This commit is contained in:
Remi Jouannet
2023-01-14 18:06:59 +01:00
committed by GitHub
29 changed files with 23392 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ whenever you want to run the game on a different server you would have to change
3. the exporter needs to be accesible from the web, so that the Prometheus db can access it to load in the required data. more information for the exporter is found here https://github.com/Prometheus/node_exporter
4. change over the `data/Prometheus.yml` to let the targets point to your exporters ip:port
However when you want to separate this all, keep in mind that most of the default settings in this readme/repo are not correct.
however when you want to separate this all, keep in mind that most of the default settings in this readme/repo are not correct.
so these have to be changed to your needs.
### Finally
@@ -129,6 +129,74 @@ so these have to be changed to your needs.
open your http://domain.name and see the login for Grafana.
keep in mind that this short guide doesn't explain on how to properly secure everything. this is up to you to fix yourself.
## Dashboards
this repository includes a variety of ready to use dashboards.
those dashboards are from [Kariton/graftorio2-dashboards](https://github.com/Kariton/graftorio2-dashboards).
the dashboards will be updated within this repostory if new versions are available.
all dashboards support a variety of different filters, panel links as well as data links.
for example: `Force`, `TimeScale`, `Network`, `Item / Fluid / Building / etc.`
- Force: default `player` - some mods provide their own identifyer.
- TimeScale: default `Minute` - is used to calculate values per `Second / Minute / Hour`.
- Network: default `all` - depending on context the available networks like `electricity / logistic`.
- Item / Fluid / Building etc.: default `all` - depending on context the available entities.
### `Info` - overall stats
- UPS
- Game Time (Play Time)
- Total Players (unique players)
- Current online players
- Map Seed
- Installed mods
- Evolution
- Evolution Composition
- Current research progress
- research queue
- total rockets launched
- rockets per `TimeScale` based on last hour
### `Items` - important items - delta production / consumption
- Science delta
- Circuits delta
- Materials delte (Iron, Copper, Plastic, Steel)
- Components delte (Battery, FRF, LDS, RCU, Rocket Fuel)
### `Default` - rebuild of ingame graphs (as close as possible)
- 1.1 - Default: Electricity.json
- 1.2 - Default: Items.json
- 1.3 - Default: Fluids.json
- 1.4 - Default: Buildings.json
- 1.5 - Default: Pollution.json
- 1.6 - Default: Kills.json
- 1.7 - Default: Logistics.json
### `Rate` - Various interpretation of "rate"
- 2.0.1 - Rate: Electricity.json
- 2.0.2 - Rate: Items.json
- 2.0.2.1 - Rate: Storage.json
- 2.0.2.2 - Rate: Science Packs.json
- 2.0.3 - Rate: Fluids.json
- 2.0.4 - Rate: Buildings.json
- 2.0.5 - Rate: Pollution.json
- 2.0.6 - Rate: Kills.json
- 2.0.7 - Rate: Evolution.json
- 2.0.8 - Rate: Research.json
- 2.0.9 - Rate: Rockets.json
- 2.1.0 - Rate: Players.json
### `Misc` - detailed presentation in various forms
- 3.0.1 - Misc: Items.json
- 3.0.2 - Misc: Buildings.json
- 3.0.4 - Misc: Logistic Networks.json
- 3.0.4.1 - Misc: Logistic Items.json
- 3.0.4.2 - Misc: Robots.json
- 3.0.5 - Misc: Trains.json
### `Mod` - dashboards dedicated to display mod related information
- 4.0.1 - Mod: YARM.json
## Debugging
### mod

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,850 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"default"
],
"targetBlank": false,
"title": "Defaults",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Electricity consumption",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Watt",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum by (name) (rate(factorio_power_production_input{force=~\"${Force}\",name=~\"${Consumer}|${Producer}\",network=~\"${Network}\"}[$__rate_interval]))",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Consumption",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Electricity production",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Watt",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 12,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum by (name) (rate(factorio_power_production_output{force=~\"${Force}\",name=~\"${Consumer}|${Producer}\",network=~\"${Network}\"}[$__rate_interval]))",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Production",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall consumed energy by ${helper_top_consumer}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 0,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_consumer",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_power_production_input{force=~\"${Force}\",name=\"${helper_top_consumer}\",network=~\"${Network}\"}[$__range]))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "${helper_top_consumer}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_consumer}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top energy consumer",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 2,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,sum by (name) (rate(factorio_power_production_input{force=~\"${Force}\",name=~\"${Consumer}|${Producer}\",network=~\"${Network}\"}[$__range])))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": " Consumption",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall produced energy by ${helper_top_producer}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 12,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_producer",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_power_production_output{force=~\"${Force}\",name=\"${helper_top_producer}\",network=~\"${Network}\"}[$__range]))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "${helper_top_producer}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_producer}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top energy producer",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-RdYlGr"
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 14,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,sum by (name) (rate(factorio_power_production_output{name=~\"${Consumer}|${Producer}\",network=~\"${Network}\"}[$__range])))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": " Production",
"type": "bargauge"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"default"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_power_production_input|factorio_power_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_power_production_input|factorio_power_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_power_production_input|factorio_power_production_output\"},network)",
"description": "Network",
"hide": 0,
"includeAll": true,
"label": "Network",
"multi": true,
"name": "Network",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_power_production_input|factorio_power_production_output\"},network)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_power_production_input{force=~\"${Force}\",network=~\"^${Network}\"}, name)",
"description": "Consumer",
"hide": 0,
"includeAll": true,
"label": "Consumer",
"multi": true,
"name": "Consumer",
"options": [],
"query": {
"query": "label_values(factorio_power_production_input{force=~\"${Force}\",network=~\"^${Network}\"}, name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_power_production_output{force=~\"${Force}\",network=~\"^${Network}\"},name)",
"description": "Producer",
"hide": 0,
"includeAll": true,
"label": "Producer",
"multi": true,
"name": "Producer",
"options": [],
"query": {
"query": "label_values(factorio_power_production_output{force=~\"${Force}\",network=~\"^${Network}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,sum by (name) (rate(factorio_power_production_input{force=~\"${Force}\",network=~\"^${Network}\",name=~\"^${Consumer}\"}[$__range]))))",
"description": "helper_top_consumer",
"hide": 2,
"includeAll": true,
"label": "helper_top_consumer",
"multi": false,
"name": "helper_top_consumer",
"options": [],
"query": {
"query": "query_result(topk(6,sum by (name) (rate(factorio_power_production_input{force=~\"${Force}\",network=~\"^${Network}\",name=~\"^${Consumer}\"}[$__range]))))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,sum by (name) (rate(factorio_power_production_output{force=~\"${Force}\",network=~\"^${Network}\",name=~\"^${Producer}\"}[$__range]))))",
"description": "helper_top_producer",
"hide": 2,
"includeAll": true,
"label": "helper_top_producer",
"multi": false,
"name": "helper_top_producer",
"options": [],
"query": {
"query": "query_result(topk(6,sum by (name) (rate(factorio_power_production_output{force=~\"${Force}\",network=~\"^${Network}\",name=~\"^${Producer}\"}[$__range]))))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "1.1 - Default: Electricity",
"uid": "Wapwo437k",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,942 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"default"
],
"targetBlank": false,
"title": "Defaults",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Item production",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Item",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${TimeScale:queryparam}&${Force:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_item_production_output{force=~\"${Force}\",name=~\"${Item}\"}[$__rate_interval]) * ${TimeScale}",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Production",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Item consumption",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Item",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${TimeScale:queryparam}&${Force:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 12,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_item_production_input{force=~\"${Force}\",name=~\"${Item}\"}[$__rate_interval]) * ${TimeScale}",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Consumption",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall produced ${helper_top_production}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${TimeScale:queryparam}&${Force:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 0,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_production",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_item_production_output{force=~\"${Force}\",name=\"${helper_top_production}\"}[$__range]))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_production}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top produced item",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-RdYlGr"
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${TimeScale:queryparam}&${Force:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 2,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,rate(factorio_item_production_output{force=~\"${Force}\",name=~\"${Item}\"}[$__range]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "Production per ${TimeScale}",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall consumed ${helper_top_consumption}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${TimeScale:queryparam}&${Force:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 12,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_consumption",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_item_production_input{force=~\"${Force}\",name=\"${helper_top_consumption}\"}[$__range]))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_consumption}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top consumed item",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${TimeScale:queryparam}&${Force:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 14,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}}&${Item:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,rate(factorio_item_production_input{force=~\"${Force}\",name=~\"${Item}\"}[$__range]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "Consumption per ${TimeScale}",
"type": "bargauge"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"default"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},name)",
"description": "Item",
"hide": 0,
"includeAll": true,
"label": "Item",
"multi": true,
"name": "Item",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,rate(factorio_item_production_output{force=~\"${Force}\",name=~\"${Item}\"}[$__range]) * ${TimeScale}))",
"description": "helper_top_production",
"hide": 2,
"includeAll": true,
"label": "helper_top_production",
"multi": false,
"name": "helper_top_production",
"options": [],
"query": {
"query": "query_result(topk(6,rate(factorio_item_production_output{force=~\"${Force}\",name=~\"${Item}\"}[$__range]) * ${TimeScale}))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,rate(factorio_item_production_input{force=~\"${Force}\",name=~\"${Item}\"}[$__range]) * ${TimeScale}))",
"description": "helper_top_consumption",
"hide": 2,
"includeAll": true,
"label": "helper_top_consumption",
"multi": false,
"name": "helper_top_consumption",
"options": [],
"query": {
"query": "query_result(topk(6,rate(factorio_item_production_input{force=~\"${Force}\",name=~\"${Item}\"}[$__range]) * ${TimeScale}))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "1.2 - Default: Items",
"uid": "K3FuAV37k",
"version": 1,
"weekStart": ""
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,882 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"default"
],
"targetBlank": false,
"title": "Defaults",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Building build",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Building",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_entity_build_count_input{force=~\"${Force}\",name=~\"${Building}\"}[$__rate_interval]) * ${TimeScale}",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Build",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Building deconstructed",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Building",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 12,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_entity_build_count_output{force=~\"${Force}\",name=~\"${Building}\"}[$__rate_interval]) * ${TimeScale}",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Deconstructed",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall build ${helper_top_building}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 0,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_building",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_entity_build_count_input{force=~\"${Force}\",name=~\"${helper_top_building}\"}[$__range]))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_building}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top build building",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 2,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,rate(factorio_entity_build_count_input{force=~\"${Force}\",name=~\"${Building}\"}[$__range]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "Build per ${TimeScale}",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall deconstructed ${helper_top_deconstructed}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 12,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_deconstructed",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_entity_build_count_output{force=~\"${Force}\",name=~\"${helper_top_deconstructed}\"}[$__range]))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_deconstructed}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top deconstructed building",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-RdYlGr"
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 14,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,rate(factorio_entity_build_count_output{name=~\"${Building}\"}[$__range]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "Deconstructed per ${TimeScale}",
"type": "bargauge"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"default"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_entity_build_count_input|factorio_entity_build_count_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_entity_build_count_input|factorio_entity_build_count_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/^(?!tree-.*|.*rock-.*|.*-robot)/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_entity_build_count_input|factorio_entity_build_count_output\"},name)",
"description": "Building",
"hide": 0,
"includeAll": true,
"label": "Building",
"multi": true,
"name": "Building",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_entity_build_count_input|factorio_entity_build_count_output\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/^(?!tree-.*|.*rock-.*|.*-robot)/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,rate(factorio_entity_build_count_input{force=~\"${Force}\", name=~\"${Building}\"}[$__range]) * ${TimeScale}))",
"description": "helper_top_building",
"hide": 2,
"includeAll": true,
"label": "helper_top_building",
"multi": false,
"name": "helper_top_building",
"options": [],
"query": {
"query": "query_result(topk(6,rate(factorio_entity_build_count_input{force=~\"${Force}\", name=~\"${Building}\"}[$__range]) * ${TimeScale}))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,rate(factorio_entity_build_count_output{force=~\"${Force}\", name=~\"${Building}\"}[$__range]) * ${TimeScale}))",
"description": "helper_top_deconstructed",
"hide": 2,
"includeAll": true,
"label": "helper_top_deconstructed",
"multi": false,
"name": "helper_top_deconstructed",
"options": [],
"query": {
"query": "query_result(topk(6,rate(factorio_entity_build_count_output{force=~\"${Force}\", name=~\"${Building}\"}[$__range]) * ${TimeScale}))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "1.4 - Default: Buildings",
"uid": "CDzjJ4qnk",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,861 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"default"
],
"targetBlank": false,
"title": "Defaults",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Pollution production",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Pollution",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_pollution_production_input{force=~\"${Force}\",name=~\"${Producer}\"}[$__rate_interval]) * ${TimeScale}",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Production",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Production consumption",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Pollution",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 12,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_pollution_production_output{force=~\"${Force}\",name=~\"${Consumer}\"}[$__rate_interval]) * ${TimeScale}",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Consumption",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall produced pollution from ${helper_top_producer}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 0,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_producer",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_pollution_production_input{force=~\"${Force}\",name=\"${helper_top_producer}\"}[$__range])) * ${TimeScale}",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_producer}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top pollution producer",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 2,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,rate(factorio_pollution_production_input{force=~\"${Force}\",name=~\"${Producer}\"}[$__range])*${TimeScale})",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": " Production per ${TimeScale}",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall consumed pollution from ${helper_top_consumer}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 12,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_consumer",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_pollution_production_output{force=~\"${Force}\",name=\"${helper_top_consumer}\"}[$__range])) * ${TimeScale}",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_consumer}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top pollution consumer",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-RdYlGr"
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 14,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,rate(factorio_pollution_production_output{force=~\"${Force}\",name=~\"${Consumer}\"}[$__range]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": " Consumption per ${TimeScale}",
"type": "bargauge"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"default"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_pollution_production_input|factorio_pollution_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_pollution_production_input|factorio_pollution_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_pollution_production_input{force=~\"${Force}\"},name)",
"description": "Producer",
"hide": 0,
"includeAll": true,
"label": "Producer",
"multi": true,
"name": "Producer",
"options": [],
"query": {
"query": "label_values(factorio_pollution_production_input{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_pollution_production_output{force=~\"${Force}\"},name)",
"description": "Consumer",
"hide": 0,
"includeAll": true,
"label": "Consumer",
"multi": true,
"name": "Consumer",
"options": [],
"query": {
"query": "label_values(factorio_pollution_production_output{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,sum by (name) (rate(factorio_pollution_production_input{force=~\"${Force}\", name=~\"^${Producer}\"}[$__range]))))",
"description": "helper_top_producer",
"hide": 2,
"includeAll": true,
"label": "helper_top_producer",
"multi": true,
"name": "helper_top_producer",
"options": [],
"query": {
"query": "query_result(topk(6,sum by (name) (rate(factorio_pollution_production_input{force=~\"${Force}\", name=~\"^${Producer}\"}[$__range]))))",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,sum by (name) (rate(factorio_pollution_production_output{force=~\"${Force}\", name=~\"^${Consumer}\"}[$__range]))))",
"description": "helper_top_consumer",
"hide": 2,
"includeAll": true,
"label": "helper_top_consumer",
"multi": true,
"name": "helper_top_consumer",
"options": [],
"query": {
"query": "query_result(topk(6,sum by (name) (rate(factorio_pollution_production_output{force=~\"${Force}\", name=~\"^${Consumer}\"}[$__range]))))",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "1.5 - Default: Pollution",
"uid": "py-GxV3nz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,861 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"default"
],
"targetBlank": false,
"title": "Defaults",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Entity killed",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Kill",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Loss:queryparam}&var-Kill=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Loss:queryparam}&var-Kill=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&${Loss:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_kill_count_input{force=~\"${Force}\",name=~\"${Kill}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Kills",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Entity losses",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Loss",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&var-Loss=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&var-Loss=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 12,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&${Loss:queryparam}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_kill_count_output{force=~\"${Force}\",name=~\"${Loss}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Losses",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall kills ${helper_top_kills}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Loss:queryparam}&var-Kill=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Loss:queryparam}&var-Kill=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 0,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&${Loss:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_kills",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_kill_count_input{force=~\"${Force}\",name=\"${helper_top_kills}\"}[$__range]))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_kills}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top killed entities",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Loss:queryparam}&var-Kill=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Loss:queryparam}&var-Kill=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 2,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&${Loss:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,rate(factorio_kill_count_input{force=~\"${Force}\",name=~\"${Kill}\"}[$__range]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "Kills per ${TimeScale}",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall losses ${helper_top_losses}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&var-Loss=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&var-Loss=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 2,
"x": 12,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&${Loss:queryparam}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "helper_top_losses",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (increase(factorio_kill_count_output{force=~\"${Force}\",name=\"${helper_top_losses}\"}[$__range]))",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "${helper_top_losses}",
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Top lost entities",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&var-Loss=${__series.name}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&var-Loss=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 10,
"x": 14,
"y": 11
},
"links": [
{
"targetBlank": true,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__all_variables}"
},
{
"targetBlank": true,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&${Loss:queryparam}"
}
],
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(8,rate(factorio_kill_count_output{force=~\"${Force}\",name=~\"${Loss}\"}[$__range]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "{{name}}",
"range": false,
"refId": "A"
}
],
"title": "Losses per ${TimeScale}",
"type": "bargauge"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"default"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~ \"factorio_kill_count_input|factorio_kill_count_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~ \"factorio_kill_count_input|factorio_kill_count_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_kill_count_input{force=~\"${Force}\"},name)",
"description": "Kill",
"hide": 0,
"includeAll": true,
"label": "Kill",
"multi": true,
"name": "Kill",
"options": [],
"query": {
"query": "label_values(factorio_kill_count_input{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": ".*-spawner|.*-worm-.*|.*-biter.*|.*-spitter.*",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_kill_count_output{force=~\"${Force}\"},name)",
"description": "Loss",
"hide": 0,
"includeAll": true,
"label": "Loss",
"multi": true,
"name": "Loss",
"options": [],
"query": {
"query": "label_values(factorio_kill_count_output{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,rate(factorio_kill_count_input{force=~\"${Force}\", name=~\"${Kill}\"}[$__range]) * ${TimeScale}))",
"description": "helper_top_kills",
"hide": 2,
"includeAll": true,
"label": "helper_top_kills",
"multi": false,
"name": "helper_top_kills",
"options": [],
"query": {
"query": "query_result(topk(6,rate(factorio_kill_count_input{force=~\"${Force}\", name=~\"${Kill}\"}[$__range]) * ${TimeScale}))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "query_result(topk(6,rate(factorio_kill_count_output{force=~\"${Force}\", name=~\"${Loss}\"}[$__range]) * ${TimeScale}))",
"description": "helper_top_losses",
"hide": 2,
"includeAll": true,
"label": "helper_top_losses",
"multi": false,
"name": "helper_top_losses",
"options": [],
"query": {
"query": "query_result(topk(6,rate(factorio_kill_count_output{force=~\"${Force}\", name=~\"${Loss}\"}[$__range]) * ${TimeScale}))",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "/name=\"(.*)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "1.6 - Default: Kills",
"uid": "RA8BFSs7z",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,751 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"default"
],
"targetBlank": false,
"title": "Defaults",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
}
],
"panels": [],
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-RdYlGr"
},
"custom": {
"align": "auto",
"displayMode": "gradient-gauge",
"filterable": false,
"inspect": false
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&var-Item=${__data.fields.name}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&var-Item=${__data.fields.name}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&var-Item=${__data.fields.name}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&var-Item=${__data.fields.name}"
}
],
"mappings": [],
"noValue": "no items",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "location"
},
"properties": [
{
"id": "custom.width",
"value": 100
},
{
"id": "custom.displayMode",
"value": "auto"
}
]
},
{
"matcher": {
"id": "byName",
"options": "name"
},
"properties": [
{
"id": "custom.width",
"value": 200
},
{
"id": "custom.displayMode",
"value": "auto"
}
]
},
{
"matcher": {
"id": "byName",
"options": "network"
},
"properties": [
{
"id": "custom.width",
"value": 70
},
{
"id": "custom.displayMode",
"value": "auto"
}
]
}
]
},
"gridPos": {
"h": 25,
"w": 24,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
}
],
"options": {
"footer": {
"enablePagination": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "topk(25, factorio_logistic_network_items{force=~\"${Force}\",location=~\"${Surface}\",network=~\"${Network}\",name=~\"${Item}\"})",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Top Total Items",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"force": true,
"instance": true,
"job": true,
"location": false
},
"indexByName": {},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 26
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
}
],
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Item:queryparam}&var-Network=${Network}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 27
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
}
],
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum(factorio_logistic_network_items{force=~\"${Force}\",location=~\"${Surface}\",network=\"${Network}\",name=~\"${Item}\"}) or on() vector(0)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"type": "stat"
}
],
"title": "Network Items",
"type": "row"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 27
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": true,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
}
],
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Item:queryparam}&var-Network=${Network}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 40
},
"links": [],
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " sum(\r\n factorio_logistic_network_all_construction_robots{force=~\"${Force}\",location=~\"${Surface}\",network=\"${Network}\"}\r\n )\r\nor on ()\r\n vector(0)",
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"type": "stat"
}
],
"title": "Network Construction Robots",
"type": "row"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 28
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Item:queryparam}&var-Network=${Network}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 41
},
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " sum(\r\n factorio_logistic_network_all_logistic_robots{force=~\"${Force}\",location=~\"${Surface}\",network=\"${Network}\"}\r\n )\r\nor on ()\r\n vector(0)",
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"type": "stat"
}
],
"title": "Network Logistic Robots",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"default"
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_robot_limit,force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_robot_limit,force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_robot_limit,location)",
"description": "Surface",
"hide": 0,
"includeAll": true,
"label": "Surface",
"multi": true,
"name": "Surface",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_robot_limit,location)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_robot_limit{force=~\"${Force}\",location=~\"${Surface}\"},network)",
"description": "Network",
"hide": 0,
"includeAll": true,
"label": "Network",
"multi": true,
"name": "Network",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_robot_limit{force=~\"${Force}\",location=~\"${Surface}\"},network)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_items{force=~\"${Force}\",location=~\"${Surface}\",network=~\"^${Network}\"} ,name)",
"description": "Item",
"hide": 0,
"includeAll": true,
"label": "Item",
"multi": true,
"name": "Item",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_items{force=~\"${Force}\",location=~\"${Surface}\",network=~\"^${Network}\"} ,name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "1.7 - Default: Logistics",
"uid": "_bqLEhqnz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,813 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"panels": [],
"title": "Rate",
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Electricity production - consumption delta",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Watt",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.0.0",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(factorio_power_production_output{force=~\"${Force}\",network=~\"${Network}\",name=~\"${Consumer}|${Producer}\"}[$__rate_interval]))",
"interval": "",
"legendFormat": "Production",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(factorio_power_production_input{force=~\"${Force}\",network=~\"${Network}\",name=~\"${Consumer}|${Producer}\"}[$__rate_interval]))",
"hide": false,
"interval": "",
"legendFormat": "Consumption",
"range": true,
"refId": "B"
}
],
"title": "Electricity Rate",
"transformations": [
{
"id": "calculateField",
"options": {
"alias": "Delta",
"binary": {
"left": "Production",
"operator": "-",
"reducer": "sum",
"right": "Consumption"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
},
"replaceFields": true
}
}
],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Electricity production composition",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"decimals": 2,
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 12,
"x": 0,
"y": 8
},
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__all_variables}"
}
],
"options": {
"displayLabels": [],
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true,
"values": [
"percent",
"value"
]
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.0.0",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (rate(factorio_power_production_output{force=~\"${Force}\",network=~\"${Network}\",name=~\"${Consumer}|${Producer}\"}[$__range]))",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Electricity Production",
"transformations": [],
"type": "piechart"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Electricity consumption composition",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"decimals": 2,
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 8
},
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__all_variables}"
}
],
"options": {
"displayLabels": [],
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true,
"values": [
"percent",
"value"
]
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.0.0",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (rate(factorio_power_production_input{force=~\"${Force}\",network=~\"${Network}\",name=~\"${Consumer}|${Producer}\"}[$__range]))",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Electricity Consumption",
"transformations": [],
"type": "piechart"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 21
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Electricity production",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Watt",
"axisPlacement": "auto",
"axisWidth": 50,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 2,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 2,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 22
},
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"last"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (rate(factorio_power_production_output{force=~\"${Force}\",network=~\"${Network}\",name=~\"${Producer}\"}[$__rate_interval]))",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Electricity Production",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Electricity consumption",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Watt",
"axisPlacement": "auto",
"axisWidth": 50,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 2,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 2,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 34
},
"links": [
{
"targetBlank": false,
"title": "Default: Electricity",
"url": "/d/Wapwo437k?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Consumer:queryparam}&${Producer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Electricity",
"url": "/d/lyiFkmynz?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"last"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (rate(factorio_power_production_input{force=~\"${Force}\",network=~\"${Network}\",name=~\"${Consumer}\"}[$__rate_interval]))",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Electricity Consumption",
"type": "timeseries"
}
],
"title": "differentiated",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_power_production_input|factorio_power_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_power_production_input|factorio_power_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_power_production_input|factorio_power_production_output\"},network)",
"description": "Network",
"hide": 0,
"includeAll": true,
"label": "Network",
"multi": true,
"name": "Network",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_power_production_input|factorio_power_production_output\"},network)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_power_production_input{force=~\"$Force\",network=~\"^$Network\"}, name)",
"description": "Consumer",
"hide": 0,
"includeAll": true,
"label": "Consumer",
"multi": true,
"name": "Consumer",
"options": [],
"query": {
"query": "label_values(factorio_power_production_input{force=~\"$Force\",network=~\"^$Network\"}, name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_power_production_output{force=~\"${Force}\",network=~\"^${Network}\"},name)",
"description": "Producer",
"hide": 0,
"includeAll": true,
"label": "Producer",
"multi": true,
"name": "Producer",
"options": [],
"query": {
"query": "label_values(factorio_power_production_output{force=~\"${Force}\",network=~\"^${Network}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.1 - Rate: Electricity",
"uid": "lyiFkmynz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,657 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"title": "Rate",
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Item production - consumption delta",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 21,
"w": 24,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " rate(factorio_item_production_input{force=~\"${Force}\",name=~\"${Item}\"}[$__rate_interval]) * ${TimeScale}\r\n-\r\n rate(factorio_item_production_output{force=~\"${Force}\",name=~\"${Item}\"}[$__rate_interval]) * ${TimeScale}",
"hide": false,
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Item Rate",
"transformations": [],
"type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 22
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
}
],
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Item production",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 2,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 23
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_item_production_input{force=~\"${Force}\",name=~\"${Item}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Item Production",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Item consumption",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 2,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 35
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_item_production_output{force=~\"${Force}\",name=~\"${Item}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Item Consumption",
"type": "timeseries"
}
],
"title": "differentiated",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},name)",
"description": "Item",
"hide": 0,
"includeAll": true,
"label": "Item",
"multi": true,
"name": "Item",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.2 - Rate: Items",
"uid": "wqp85Iynk",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,389 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Stored items in logistic network",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 2,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&var-Item=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&var-Item=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 23,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (name) (factorio_logistic_network_items{force=\"${Force}\",location=\"${Surface}\",network=~\"${Network}\",name=~\"${Item}\"})",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Logistic Item",
"type": "timeseries"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_items,force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_items,force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"nauvis"
],
"value": [
"nauvis"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_items{force=~\"${Force}\"},location)",
"description": "Surface",
"hide": 0,
"includeAll": true,
"label": "Surface",
"multi": true,
"name": "Surface",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_items{force=~\"${Force}\"},location)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_items{force=~\"${Force}\",location=~\"${Surface}\"},network)",
"description": "Network",
"hide": 0,
"includeAll": true,
"label": "Network",
"multi": true,
"name": "Network",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_items{force=~\"${Force}\",location=~\"${Surface}\"},network)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},name)",
"description": "Item",
"hide": 0,
"includeAll": true,
"label": "Item",
"multi": true,
"name": "Item",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.2.1 - Rate: Storage",
"uid": "wUtHfWenz",
"version": 1,
"weekStart": ""
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,959 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": false,
"title": "Default: Fluids",
"url": "/d/9wDUJ43nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Fluid:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Fluids",
"url": "/d/N82SZms7z?orgId=1&${__all_variables}"
}
],
"panels": [],
"title": "Rate",
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Fluid production - consumption delta",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Liter",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Fluids",
"url": "/d/9wDUJ43nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Fluid=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Fluids",
"url": "/d/N82SZms7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Fluid=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "crude-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#000000",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "heavy-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "light-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "lubricant"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "petroleum-gas"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "sulfuric-acid"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "water"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "steam"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "text",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 21,
"w": 24,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Fluids",
"url": "/d/9wDUJ43nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Fluid:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Fluids",
"url": "/d/N82SZms7z?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " rate(factorio_fluid_production_input{force=~\"${Force}\",name=~\"${Fluid}\"}[$__rate_interval]) * ${TimeScale}\r\n-\r\n rate(factorio_fluid_production_output{force=~\"${Force}\",name=~\"${Fluid}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Fluid Rate",
"type": "timeseries"
},
{
"collapsed": true,
"datasource": {
"type": "prometheus"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 22
},
"links": [
{
"targetBlank": false,
"title": "Default: Fluids",
"url": "/d/9wDUJ43nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Fluid:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Fluids",
"url": "/d/N82SZms7z?orgId=1&${__all_variables}"
}
],
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Fluid production",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Liter",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 2,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Fluids",
"url": "/d/9wDUJ43nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Fluid=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Fluids",
"url": "/d/N82SZms7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Fluid=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "crude-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#000000",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "heavy-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "light-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "lubricant"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "petroleum-gas"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "sulfuric-acid"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "water"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "steam"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "text",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 23
},
"links": [
{
"targetBlank": false,
"title": "Default: Fluids",
"url": "/d/9wDUJ43nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Fluid:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Fluids",
"url": "/d/N82SZms7z?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_fluid_production_input{force=~\"${Force}\",name=~\"${Fluid}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Fluid Production",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Fluid consumption",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Liter",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 2,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Fluids",
"url": "/d/9wDUJ43nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Fluid=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Fluids",
"url": "/d/N82SZms7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Fluid=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "crude-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#000000",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "heavy-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "light-oil"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "lubricant"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "petroleum-gas"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "sulfuric-acid"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "super-light-yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "water"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "steam"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "text",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 35
},
"links": [
{
"targetBlank": false,
"title": "Default: Fluids",
"url": "/d/9wDUJ43nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Fluid:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Fluids",
"url": "/d/N82SZms7z?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_fluid_production_output{force=~\"${Force}\",name=~\"${Fluid}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Fluid Consumption",
"type": "timeseries"
}
],
"title": "differentiated",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_fluid_production_input|factorio_fluid_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_fluid_production_input|factorio_fluid_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_fluid_production_input|factorio_fluid_production_output\"},name)",
"description": "Fluid",
"hide": 0,
"includeAll": true,
"label": "Fluid",
"multi": true,
"name": "Fluid",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_fluid_production_input|factorio_fluid_production_output\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.3 - Rate: Fluids",
"uid": "N82SZms7z",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,774 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"title": "Rate",
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Building build - deconstruction - destroyed delta",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 21,
"w": 24,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " rate(factorio_entity_build_count_input{force=~\"${Force}\",name=~\"${Building}\"}[$__rate_interval]) * ${TimeScale}\r\n-\r\n (rate(factorio_entity_build_count_output{force=~\"${Force}\",name=~\"${Building}\"}[$__rate_interval]) * ${TimeScale} + rate(factorio_kill_count_output{force=~\"${Force}\",name=~\"${Building}\"}[$__rate_interval]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"title": "Building Rate",
"type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 22
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Building destroyed",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 20,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 23
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_kill_count_output{force=~\"${Force}\", name=~\"${Building}\", name!~\".*-spawner|.*-worm-.*|.*-biter.*|.*-spitter.*|tree-.*|.*rock-.*|.*-robot\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Building Destroyed",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Building build",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 20,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 34
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_entity_build_count_input{force=~\"${Force}\", name=~\"${Building}\"}[$__rate_interval]) * ${TimeScale}",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"title": "Building Construction",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Building deconstruction",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 20,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 10,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Building=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 45
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Building:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_entity_build_count_output{force=~\"${Force}\", name=~\"${Building}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Building Deconstruction",
"type": "timeseries"
}
],
"title": "differentiated",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_entity_build_count_input|factorio_entity_build_count_output\"},name)",
"description": "Building",
"hide": 0,
"includeAll": true,
"label": "Building",
"multi": true,
"name": "Building",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_entity_build_count_input|factorio_entity_build_count_output\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/^(?!tree-.*|.*rock-.*|.*-robot)/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.4 - Rate: Buildings",
"uid": "EESvUmsnz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,841 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__all_variables}"
}
],
"panels": [],
"title": "Rate",
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Pollution production - consumption delta",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"mean"
],
"displayMode": "table",
"placement": "right",
"showLegend": false,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(factorio_pollution_production_input{force=~\"${Force}\",name=~\"${Producer}\"}[$__rate_interval]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "Production",
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(factorio_pollution_production_output{force=~\"${Force}\",name=~\"${Consumer}\"}[$__rate_interval]) * ${TimeScale})",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "Consumption",
"refId": "B"
}
],
"title": "Pollution Rate",
"transformations": [
{
"id": "calculateField",
"options": {
"alias": "Delta",
"binary": {
"left": "Production",
"operator": "-",
"reducer": "sum",
"right": "Consumption"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
},
"replaceFields": true
}
}
],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Pollution production composition",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"decimals": 2,
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 12,
"x": 0,
"y": 8
},
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__all_variables}"
}
],
"options": {
"displayLabels": [],
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true,
"values": [
"percent",
"value"
]
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.0.0",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_pollution_production_input{force=~\"${Force}\",name=~\"${Producer}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Pollution Production",
"transformations": [],
"type": "piechart"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Pollution consumption composition",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"decimals": 2,
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 8
},
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__all_variables}"
}
],
"options": {
"displayLabels": [],
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true,
"values": [
"percent",
"value"
]
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.0.0",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_pollution_production_output{force=~\"${Force}\",name=~\"${Consumer}\"}[$__rate_interval]) * ${TimeScale}",
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Pollution Consumption",
"transformations": [],
"type": "piechart"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 21
},
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__all_variables}"
}
],
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Consumer:queryparam}&var-Producer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 22
},
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_pollution_production_input{force=~\"${Force}\",name=~\"${Producer}\"}[$__rate_interval]) * ${TimeScale}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"title": "Pollution Production",
"transformations": [],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&var-Consumer=${__series.name}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 34
},
"links": [
{
"targetBlank": false,
"title": "Default: Pollution",
"url": "/d/py-GxV3nz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Producer:queryparam}&${Consumer:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Pollution",
"url": "/d/poz5ij5Vk?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_pollution_production_output{force=~\"${Force}\",name=~\"${Consumer}\"}[$__rate_interval]) * ${TimeScale}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"title": "Pollution Consumption",
"transformations": [],
"type": "timeseries"
}
],
"title": "differentiated",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_pollution_production_input|factorio_pollution_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_pollution_production_input|factorio_pollution_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_pollution_production_input{force=~\"${Force}\"},name)",
"description": "Producer",
"hide": 0,
"includeAll": true,
"label": "Producer",
"multi": true,
"name": "Producer",
"options": [],
"query": {
"query": "label_values(factorio_pollution_production_input{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_pollution_production_output{force=~\"${Force}\"},name)",
"description": "Consumer",
"hide": 0,
"includeAll": true,
"label": "Consumer",
"multi": true,
"name": "Consumer",
"options": [],
"query": {
"query": "label_values(factorio_pollution_production_output{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.5 - Rate: Pollution",
"uid": "poz5ij5Vk",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,423 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Entity killed",
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"scaleDistribution": {
"type": "linear"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Loss:queryparam}&var-Kill=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Loss:queryparam}&var-Kill=${__series.name}"
}
]
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": false,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__all_variables}"
}
],
"options": {
"calculate": false,
"cellGap": 1,
"color": {
"exponent": 0.5,
"fill": "dark-orange",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "RdYlBu",
"steps": 64
},
"exemplars": {
"color": "text"
},
"filterValues": {
"le": 0
},
"legend": {
"show": true
},
"rowsFrame": {
"layout": "auto"
},
"tooltip": {
"show": true,
"yHistogram": true
},
"yAxis": {
"axisPlacement": "left",
"reverse": false
}
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_kill_count_input{force=~\"${Force}\",name=~\"${Kill}\"}[$__rate_interval]) * ${TimeScale}",
"format": "time_series",
"hide": false,
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Kill",
"type": "heatmap"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Entity losses",
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"scaleDistribution": {
"type": "linear"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&var-Loss=${__series.name}"
},
{
"targetBlank": false,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Kill:queryparam}&var-Loss=${__series.name}"
}
]
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 12
},
"links": [
{
"targetBlank": false,
"title": "Default: Kills",
"url": "/d/RA8BFSs7z?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Kills",
"url": "/d/ASS8DsF4k?orgId=1&${__all_variables}"
}
],
"options": {
"calculate": false,
"cellGap": 1,
"color": {
"exponent": 0.5,
"fill": "dark-orange",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "RdYlBu",
"steps": 64
},
"exemplars": {
"color": "text"
},
"filterValues": {
"le": 0
},
"legend": {
"show": true
},
"rowsFrame": {
"layout": "auto"
},
"tooltip": {
"show": true,
"yHistogram": true
},
"yAxis": {
"axisPlacement": "left",
"reverse": false
}
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_kill_count_output{force=~\"${Force}\",name=~\"${Loss}\"}[$__rate_interval]) * ${TimeScale}",
"format": "time_series",
"hide": false,
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Loss",
"type": "heatmap"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_kill_count_input|factorio_kill_count_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_kill_count_input|factorio_kill_count_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_kill_count_input{force=~\"${Force}\"},name)",
"description": "Kill",
"hide": 0,
"includeAll": true,
"label": "Kill",
"multi": true,
"name": "Kill",
"options": [],
"query": {
"query": "label_values(factorio_kill_count_input{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": ".*-spawner|.*-worm-.*|.*-biter.*|.*-spitter.*",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_kill_count_output{force=~\"${Force}\"},name)",
"description": "Loss",
"hide": 0,
"includeAll": true,
"label": "Loss",
"multi": true,
"name": "Loss",
"options": [],
"query": {
"query": "label_values(factorio_kill_count_output{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.6 - Rate: Kills",
"uid": "ASS8DsF4k",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,501 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Evolution progress",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Evolution",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 6,
"mappings": [],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 23,
"w": 18,
"x": 0,
"y": 0
},
"options": {
"legend": {
"calcs": [
"firstNotNull",
"lastNotNull",
"diff"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_evolution{force=~\"${Force}\",type=\"total\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{type}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_evolution{force=~\"${Force}\",type!=\"total\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{type}}",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(factorio_evolution{force=~\"${Force}\",type!=\"total\"})",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "sum",
"range": true,
"refId": "C"
}
],
"title": "Evolution Rate",
"transformations": [
{
"id": "calculateField",
"options": {
"alias": "",
"binary": {
"left": "by_killing_spawners",
"operator": "/",
"reducer": "sum",
"right": "sum"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
}
}
},
{
"id": "calculateField",
"options": {
"alias": "",
"binary": {
"left": "by_pollution",
"operator": "/",
"reducer": "sum",
"right": "sum"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
},
"replaceFields": false
}
},
{
"id": "calculateField",
"options": {
"alias": "",
"binary": {
"left": "by_time",
"operator": "/",
"reducer": "sum",
"right": "sum"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
},
"replaceFields": false
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Sum": true,
"Time": false,
"by_killing_spawners": true,
"by_pollution": true,
"by_time": true,
"sum": true
},
"indexByName": {},
"renameByName": {
"by_killing_spawners / Sum": "By Killing Spawners",
"by_killing_spawners / sum": "By Killing Spawners",
"by_pollution / Sum": "By Pollution",
"by_pollution / sum": "By Pollution",
"by_time / Sum": "By Time",
"by_time / sum": "By Time",
"total": "Evolution"
}
}
}
],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Evolution composition",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"decimals": 6,
"mappings": [],
"max": 1,
"min": 0,
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 23,
"w": 6,
"x": 18,
"y": 0
},
"options": {
"displayLabels": [
"percent",
"name"
],
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": false
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_evolution{force=~\"${Force}\",type!=\"total\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{type}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(factorio_evolution{force=~\"${Force}\",type!=\"total\"})",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "sum",
"range": true,
"refId": "B"
}
],
"title": "Evolution Composition",
"transformations": [
{
"id": "calculateField",
"options": {
"alias": "",
"binary": {
"left": "by_killing_spawners",
"operator": "/",
"reducer": "sum",
"right": "sum"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
}
}
},
{
"id": "calculateField",
"options": {
"alias": "",
"binary": {
"left": "by_pollution",
"operator": "/",
"reducer": "sum",
"right": "sum"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
},
"replaceFields": false
}
},
{
"id": "calculateField",
"options": {
"alias": "",
"binary": {
"left": "by_time",
"operator": "/",
"reducer": "sum",
"right": "sum"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
},
"replaceFields": false
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Sum": true,
"Time": false,
"by_killing_spawners": true,
"by_pollution": true,
"by_time": true,
"sum": true
},
"indexByName": {},
"renameByName": {
"by_killing_spawners / Sum": "By Killing Spawners",
"by_killing_spawners / sum": "By Killing Spawners",
"by_pollution / Sum": "By Pollution",
"by_pollution / sum": "By Pollution",
"by_time / Sum": "By Time",
"by_time / sum": "By Time",
"total": "Evolution"
}
}
}
],
"type": "piechart"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_evolution\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_evolution\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.7 - Rate: Evolution",
"uid": "ALJIz35Vz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,319 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Research progress",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Persent",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 2,
"links": [],
"mappings": [],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 23,
"w": 24,
"x": 0,
"y": 0
},
"options": {
"legend": {
"calcs": [
"firstNotNull",
"lastNotNull",
"diff"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_research_queue{force=~\"${Force}\",index=~\"${Index}\",level=~\"${Level}\",name=~\"${Research}\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{name}}-{{level}}",
"refId": "A"
}
],
"title": "Research Rate",
"type": "timeseries"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_research_queue\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_research_queue\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_research_queue{force=~\"${Force}\"},index)",
"description": "Index",
"hide": 0,
"includeAll": true,
"label": "Index",
"multi": true,
"name": "Index",
"options": [],
"query": {
"query": "label_values(factorio_research_queue{force=~\"${Force}\"},index)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_research_queue{force=~\"${Force}\",index=~\"${Index}\"},name)",
"description": "Research",
"hide": 0,
"includeAll": true,
"label": "Research",
"multi": true,
"name": "Research",
"options": [],
"query": {
"query": "label_values(factorio_research_queue{force=~\"${Force}\",index=~\"${Index}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_research_queue{force=~\"${Force}\",index=~\"${Index}\",name=~\"${Research}\"},level)",
"description": "Level",
"hide": 0,
"includeAll": true,
"label": "Level",
"multi": true,
"name": "Level",
"options": [],
"query": {
"query": "label_values(factorio_research_queue{force=~\"${Force}\",index=~\"${Index}\",name=~\"${Research}\"},level)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.8 - Rate: Research",
"uid": "QH-4DM54k",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,380 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"panels": [],
"title": "Rate",
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall launched rockets",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 21,
"w": 24,
"x": 0,
"y": 1
},
"options": {
"legend": {
"calcs": [
"firstNotNull",
"lastNotNull",
"diff"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_items_launched_total{force=~\"${Force}\",name=~\"${Cargo}\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "Rocket Rate",
"type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 22
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Overall launched rockets with ${Cargo}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [],
"mappings": [],
"noValue": "no research",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 23
},
"options": {
"legend": {
"calcs": [
"firstNotNull",
"lastNotNull",
"diff"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"repeat": "Cargo",
"repeatDirection": "v",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_items_launched_total{force=~\"${Force}\",name=\"${Cargo}\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
}
],
"title": "${Cargo}",
"type": "timeseries"
}
],
"title": "differentiated",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_items_launched_total\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_items_launched_total\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_items_launched_total\"},name)",
"description": "Cargo",
"hide": 0,
"includeAll": true,
"label": "Cargo",
"multi": true,
"name": "Cargo",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_items_launched_total\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.0.9 - Rate: Rockets",
"uid": "FMsTkj5Vz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,219 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"rate"
],
"targetBlank": false,
"title": "Rates",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Player counter",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "B"
},
"properties": [
{
"id": "custom.drawStyle",
"value": "bars"
}
]
}
]
},
"gridPos": {
"h": 23,
"w": 24,
"x": 0,
"y": 0
},
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Mean",
"sortDesc": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_total_player_count",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "Total Player",
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_connected_player_count",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "Connected Player",
"refId": "B"
}
],
"title": "Player",
"type": "timeseries"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"rate"
],
"templating": {
"list": []
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "2.1.0 - Rate: Players",
"uid": "sfGPe454k",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,563 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"limit": 100,
"name": "Annotations & Alerts",
"showIn": 0,
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"description": "",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"keepTime": true,
"tags": [
"misc"
],
"title": "Miscs",
"type": "dashboards"
},
{
"asDropdown": true,
"icon": "external link",
"keepTime": true,
"tags": [
"factorio"
],
"title": "",
"type": "dashboards"
}
],
"liveNow": false,
"panels": [
{
"collapsed": true,
"datasource": {
"type": "prometheus"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__all_variables}"
}
],
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "${Item}",
"fieldConfig": {
"defaults": {
"decimals": 1,
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Network:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__all_variables}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
},
{
"color": "red",
"value": -100000000000
},
{
"color": "yellow",
"value": -1
},
{
"color": "text",
"value": 0
},
{
"color": "green",
"value": 1
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 6,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__all_variables}"
}
],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum(factorio_logistic_network_items{force=~\"${Force}\",name=\"${Item}\",network=~\"${Network}\"}) or on () vector(0)",
"hide": false,
"legendFormat": "Logistic",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_item_production_input{force=~\"${Force}\",name=\"${Item}\"}[$__range]) * ${TimeScale} or on () vector(0)",
"interval": "",
"legendFormat": "Production",
"range": true,
"refId": "A",
"target": "randomWalk('myName')"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(factorio_item_production_output{force=~\"${Force}\",name=\"${Item}\"}[$__range]) * ${TimeScale} or on () vector(0)",
"interval": "",
"legendFormat": "Consumption",
"range": true,
"refId": "B",
"target": "randomWalk('myName')"
}
],
"title": "per ${TimeScale}",
"transformations": [
{
"id": "calculateField",
"options": {
"alias": "Delta",
"binary": {
"left": "Production",
"operator": "-",
"reducer": "sum",
"right": "Consumption"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
},
"replaceFields": false
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Stored ${Item}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"axisSoftMax": -2,
"axisWidth": -1,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 25,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "stepBefore",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Network:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__all_variables}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 18,
"x": 6,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__all_variables}"
}
],
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum by (name) (factorio_logistic_network_items{force=~\"${Force}\",name=~\"${Item}\",network=~\"${Network}\"})",
"legendFormat": "Stored",
"range": true,
"refId": "A"
}
],
"title": "Storage",
"type": "timeseries"
}
],
"repeat": "Item",
"repeatDirection": "h",
"title": "${Item}:",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"misc"
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_items{force=~\"${Force}\"},network)",
"description": "Network",
"hide": 0,
"includeAll": true,
"label": "Network",
"multi": true,
"name": "Network",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_items{force=~\"${Force}\"},network)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},name)",
"description": "Item",
"hide": 0,
"includeAll": true,
"label": "Item",
"multi": true,
"name": "Item",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"hidden": false,
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "3.0.1 - Misc: Items",
"uid": "Yuvk0a4Mz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,524 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"misc"
],
"targetBlank": false,
"title": "Miscs",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
}
],
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "Overall build ${Building}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 25,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "stepBefore",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&var-Building=${Building}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&var-Building=${Building}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&var-Building=${Building}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"Value"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 6,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"firstNotNull",
"lastNotNull",
"mean",
"diff"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.0.1",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum(\r\n sum(factorio_entity_build_count_input{force=~\"${Force}\",name=\"${Building}\"} or on () vector(0))\r\n -\r\n sum(factorio_entity_build_count_output{force=~\"${Force}\",name=\"${Building}\"} or on () vector(0))\r\n -\r\n sum(factorio_kill_count_output{force=~\"${Force}\",name=\"${Building}\"} or on () vector(0))\r\n) or on () vector(0)",
"legendFormat": "Overall",
"range": true,
"refId": "A"
}
],
"title": "Total",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Build timelines for ${Building}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 25,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"log": 2,
"type": "log"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&var-Building=${Building}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&var-Building=${Building}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&var-Building=${Building}"
}
],
"mappings": [],
"noValue": "0",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 18,
"x": 6,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Buildings",
"url": "/d/CDzjJ4qnk?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Buildings",
"url": "/d/EESvUmsnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Buildings",
"url": "/d/ZGKLKDqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${TimeScale:queryparam}"
}
],
"options": {
"legend": {
"calcs": [
"sum"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.0.1",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_entity_build_count_input{force=~\"${Force}\",name=\"${Building}\"}[$__rate_interval]) * ${TimeScale}",
"hide": false,
"legendFormat": "Build",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_entity_build_count_output{force=~\"${Force}\",name=\"${Building}\"}[$__rate_interval]) * ${TimeScale}",
"hide": false,
"legendFormat": "Deconstructed",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(factorio_kill_count_output{force=~\"${Force}\",name=\"${Building}\"}[$__rate_interval]) * ${TimeScale}",
"hide": false,
"legendFormat": "Destroyed",
"range": true,
"refId": "C"
}
],
"title": "per ${TimeScale}",
"transformations": [],
"type": "timeseries"
}
],
"repeat": "Building",
"repeatDirection": "h",
"title": "${Building}:",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"misc"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": false,
"text": "Hour",
"value": "3600"
}
],
"query": "Second : 1, Minute : 60, Hour : 3600",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_item_production_input|factorio_item_production_output\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_entity_build_count_input|factorio_entity_build_count_output\"},name)",
"description": "Building",
"hide": 0,
"includeAll": true,
"label": "Building",
"multi": true,
"name": "Building",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_entity_build_count_input|factorio_entity_build_count_output\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/^(?!tree-.*|.*rock-.*|.*-robot)/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "3.0.2 - Misc: Buildings",
"uid": "ZGKLKDqnz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,967 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"misc"
],
"targetBlank": false,
"title": "Miscs",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
}
],
"panels": [],
"title": "Network Items",
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Item:queryparam}&var-Network=${Network}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
}
],
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": " sum(\r\n factorio_logistic_network_items{name=~\"${Item}\",network=\"${Network}\"}\r\n )\r\nor on ()\r\n vector(0)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"type": "stat"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 13
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 14
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " sum(\r\n factorio_logistic_network_all_construction_robots{network=~\"${Network}\"}\r\n )\r\nor on ()\r\n vector(0)",
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"type": "stat"
}
],
"title": "Total Construction Robots",
"type": "row"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 14
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"mappings": [],
"max": 1,
"min": 0,
"noValue": "0%",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "#EAB839",
"value": 0.3
},
{
"color": "green",
"value": 0.7
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 0,
"y": 15
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"maxPerRow": 8,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum(\r\n factorio_logistic_network_available_construction_robots{network=\"${Network}\"}\r\n /\r\n factorio_logistic_network_all_construction_robots{network=\"${Network}\"}\r\n)",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"transformations": [],
"type": "gauge"
}
],
"title": "Availability Construction Robots",
"type": "row"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 15
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 16
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " sum(\r\n factorio_logistic_network_all_logistic_robots{network=~\"${Network}\"}\r\n )\r\nor on ()\r\n vector(0)",
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"type": "stat"
}
],
"title": "Total Logistic Robots",
"type": "row"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 16
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"mappings": [],
"max": 1,
"min": 0,
"noValue": "0%",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red"
},
{
"color": "#EAB839",
"value": 0.3
},
{
"color": "green",
"value": 0.7
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 0,
"y": 17
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"maxPerRow": 8,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum(\r\n factorio_logistic_network_available_logistic_robots{network=\"${Network}\"}\r\n /\r\n factorio_logistic_network_all_logistic_robots{network=\"${Network}\"}\r\n) or on () vector(0)",
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"transformations": [],
"type": "gauge"
}
],
"title": "Availability Logistic Robots",
"type": "row"
},
{
"collapsed": true,
"datasource": {
"type": "prometheus"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 17
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text"
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 18
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " sum(\r\n factorio_logistic_network_robot_limit{network=~\"${Network}\"}\r\n )\r\nor on ()\r\n vector(0)",
"instant": false,
"interval": "",
"legendFormat": "__auto",
"refId": "A"
}
],
"title": "Network ${Network}",
"transformations": [],
"type": "stat"
}
],
"title": "Roboports Slots",
"type": "row"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 18
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#ffffff"
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 19
},
"links": [
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__all_variables}"
},
{
"targetBlank": false,
"title": "Misc: Robots",
"url": "/d/diiDwaq7k?orgId=1&${Network:queryparam}"
}
],
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " sum(\r\n factorio_logistic_network_robot_limit{network=\"${Network}\"}\r\n -\r\n (\r\n factorio_logistic_network_all_construction_robots{network=\"${Network}\"}\r\n +\r\n factorio_logistic_network_all_logistic_robots{network=\"${Network}\"}\r\n )\r\n )\r\nor on ()\r\n vector(0)",
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": " Network ${Network}",
"transformations": [],
"type": "stat"
}
],
"title": "Roboports Slots Free",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"misc"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_robot_limit,network)",
"description": "Network",
"hide": 0,
"includeAll": true,
"label": "Network",
"multi": true,
"name": "Network",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_robot_limit,network)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 3,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_items{network=~\"^${Network}\"},name)",
"description": "Item",
"hide": 0,
"includeAll": true,
"label": "Item",
"multi": true,
"name": "Item",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_items{network=~\"^${Network}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "3.0.4 - Misc: Logistic Networks",
"uid": "oRqZymynz",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,526 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"misc"
],
"targetBlank": false,
"title": "Miscs",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"panels": [],
"title": "Network Items",
"type": "row"
},
{
"datasource": {
"type": "prometheus"
},
"description": "Overall items in network ${Network}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Item:queryparam}&var-Network=${Network}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__all_variables}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 1
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__all_variables}"
}
],
"maxPerRow": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Network",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": " sum(\r\n factorio_logistic_network_items{force=~\"${Force}\",location=~\"${Surface}\",name=~\"${Item}\",network=\"${Network}\"}\r\n )\r\nor on ()\r\n vector(0)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Network ${Network}",
"type": "stat"
},
{
"collapsed": true,
"datasource": {
"type": "prometheus"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 13
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"description": "overall ${Item} in network ${Network}",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&var-Item=${Item}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__all_variables}"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "text",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 14
},
"links": [
{
"targetBlank": false,
"title": "Default: Items",
"url": "/d/K3FuAV37k?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Default: Logistics",
"url": "/d/_bqLEhqnz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Items",
"url": "/d/wqp85Iynk?orgId=1&${__url_time_range}&${Force:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Rate: Storage",
"url": "/d/wUtHfWenz?orgId=1&${__url_time_range}&${Force:queryparam}&${Surface:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Items",
"url": "/d/Yuvk0a4Mz?orgId=1&${__url_time_range}&${Force:queryparam}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Networks",
"url": "/d/oRqZymynz?orgId=1&${__url_time_range}&${Network:queryparam}&${Item:queryparam}"
},
{
"targetBlank": false,
"title": "Misc: Logistic Items",
"url": "/d/C9cDwa37k?orgId=1&${__all_variables}"
}
],
"maxPerRow": 4,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.3.2",
"repeat": "Item",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": " sum(\r\n factorio_logistic_network_items{force=~\"${Force}\",location=~\"${Surface}\",name=\"${Item}\",network=\"${Network}\"}\r\n )\r\nor on ()\r\n vector(0)",
"instant": false,
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "${Item}",
"type": "stat"
}
],
"repeat": "Network",
"repeatDirection": "h",
"title": "Network ${Network}:",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"misc"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_robot_limit,force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_robot_limit,force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"nauvis"
],
"value": [
"nauvis"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_robot_limit,location)",
"description": "Surface",
"hide": 0,
"includeAll": true,
"label": "Surface",
"multi": true,
"name": "Surface",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_robot_limit,location)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_robot_limit{force=~\"${Force}\",location=~\"${Surface}\"},network)",
"description": "Network",
"hide": 0,
"includeAll": true,
"label": "Network",
"multi": true,
"name": "Network",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_robot_limit{force=~\"${Force}\",location=~\"${Surface}\"},network)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 3,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_logistic_network_items{network=~\"^${Network}\"},name)",
"description": "Item",
"hide": 0,
"includeAll": true,
"label": "Item",
"multi": true,
"name": "Item",
"options": [],
"query": {
"query": "label_values(factorio_logistic_network_items{network=~\"^${Network}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "3.0.4.1 - Misc: Logistic Items",
"uid": "C9cDwa37k",
"version": 1,
"weekStart": ""
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,519 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"misc"
],
"targetBlank": false,
"title": "Miscs",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 300
},
{
"color": "orange",
"value": 900
},
{
"color": "red",
"value": 1800
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 0
},
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"rowHeight": 0.9,
"showValue": "never",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"exemplar": false,
"expr": "factorio_train_arrival_time{station=~\"${Station}\"}",
"interval": "",
"legendFormat": "{{station}}",
"refId": "A"
}
],
"title": "Station Arrival TIme",
"type": "status-history"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 300
},
{
"color": "orange",
"value": 900
},
{
"color": "red",
"value": 1800
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 11
},
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"rowHeight": 0.9,
"showValue": "never",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_train_direct_loop_time{a=~\"${From}\",b=~\"${To}\"}",
"interval": "",
"legendFormat": "{{a}} -> {{b}}",
"range": true,
"refId": "A"
}
],
"title": "Train Loop TIme",
"type": "status-history"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 120
},
{
"color": "orange",
"value": 300
},
{
"color": "red",
"value": 600
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 22
},
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"rowHeight": 0.9,
"showValue": "never",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_train_trip_time{from=~\"${From}\",to=~\"${To}\",train_id=~\"${TrainID}\"}",
"interval": "",
"legendFormat": "{{train_id}}: {{from}} -> {{to}}",
"range": true,
"refId": "A"
}
],
"title": "Train Trip Time",
"type": "status-history"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "yellow",
"value": 120
},
{
"color": "orange",
"value": 300
},
{
"color": "red",
"value": 600
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 33
},
"options": {
"colWidth": 0.9,
"legend": {
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"rowHeight": 0.9,
"showValue": "never",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_train_wait_time{from=~\"${From}\",to=~\"${To}\",train_id=~\"${TrainID}\"}",
"interval": "",
"legendFormat": "{{train_id}}: {{from}} -> {{to}}",
"range": true,
"refId": "A"
}
],
"title": "Train Wait Time",
"type": "status-history"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"misc"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_train_trip_time,train_id)",
"description": "TrainID",
"hide": 0,
"includeAll": true,
"label": "TrainID",
"multi": true,
"name": "TrainID",
"options": [],
"query": {
"query": "label_values(factorio_train_trip_time,train_id)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_train_arrival_time,station)",
"description": "Station",
"hide": 0,
"includeAll": true,
"label": "Station",
"multi": true,
"name": "Station",
"options": [],
"query": {
"query": "label_values(factorio_train_arrival_time,station)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_train_trip_time{train_id=~\"^${TrainID}\"},from)",
"description": "From",
"hide": 0,
"includeAll": true,
"label": "From",
"multi": true,
"name": "From",
"options": [],
"query": {
"query": "label_values(factorio_train_trip_time{train_id=~\"^${TrainID}\"},from)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_train_trip_time{from=~\"^${From}\"},to)",
"description": "To",
"hide": 0,
"includeAll": true,
"label": "To",
"multi": true,
"name": "To",
"options": [],
"query": {
"query": "label_values(factorio_train_trip_time{from=~\"^${From}\"},to)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "3.0.5 - Misc: Trains",
"uid": "3Sk6zis7k",
"version": 1,
"weekStart": ""
}

View File

@@ -0,0 +1,691 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 2,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"mod"
],
"targetBlank": false,
"title": "Mods",
"tooltip": "",
"type": "dashboards",
"url": ""
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"factorio"
],
"targetBlank": false,
"title": "",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto",
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 0
},
"options": {
"footer": {
"enablePagination": true,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_yarm_site_amount{force=~\"${Force}\",name=~\"${Site}\",type=~\"${Type}\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Ore Amount",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"instance": true,
"job": true
},
"indexByName": {},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto",
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 12,
"y": 0
},
"options": {
"footer": {
"enablePagination": true,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_yarm_site_ore_per_minute{force=~\"${Force}\",name=~\"${Site}\",type=~\"${Type}\"} / 60 * ${TimeScale}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Ore Mined Per ${TimeScale}",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"instance": true,
"job": true
},
"indexByName": {},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 11
},
"panels": [
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "red"
},
{
"color": "orange",
"value": 20
},
{
"color": "yellow",
"value": 30
},
{
"color": "green",
"value": 40
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 0,
"y": 12
},
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_yarm_site_remaining_permille{force=~\"${Force}\",name=~\"${Site}\",type=~\"${Type}\"} / 10",
"format": "time_series",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Ore Remaining",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"instance": true,
"job": false
},
"indexByName": {},
"renameByName": {}
}
}
],
"type": "gauge"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 10,
"x": 4,
"y": 12
},
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "factorio_yarm_site_amount{force=~\"${Force}\",name=~\"${Site}\",type=~\"${Type}\"}",
"format": "time_series",
"instant": false,
"legendFormat": "{{type}}",
"range": true,
"refId": "A"
}
],
"title": "Ore Patch Size",
"transformations": [],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Amount",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 10,
"x": 14,
"y": 12
},
"options": {
"legend": {
"calcs": [
"min",
"max",
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "(factorio_yarm_site_ore_per_minute{force=~\"${Force}\",name=~\"${Site}\",type=~\"${Type}\"} * -1 / 60) * ${TimeScale} ",
"format": "time_series",
"instant": false,
"legendFormat": "{{type}}",
"range": true,
"refId": "A"
}
],
"title": "Ore Mined Per ${TimeScale}",
"transformations": [],
"type": "timeseries"
}
],
"repeat": "Site",
"repeatDirection": "h",
"title": "${Site}",
"type": "row"
}
],
"refresh": "30s",
"schemaVersion": 37,
"style": "dark",
"tags": [
"factorio",
"mod",
"none"
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "Minute",
"value": "60"
},
"description": "TimeScale",
"hide": 0,
"includeAll": false,
"label": "TimeScale",
"multi": false,
"name": "TimeScale",
"options": [
{
"selected": false,
"text": "Second",
"value": "1"
},
{
"selected": true,
"text": "Minute",
"value": "60"
},
{
"selected": true,
"text": "Hour",
"value": "60"
}
],
"query": "Second : 1, Minute : 60, Hour : 60",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": [
"player"
],
"value": [
"player"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values({__name__=~\"factorio_yarm_site_amount\"},force)",
"description": "Force",
"hide": 0,
"includeAll": true,
"label": "Force",
"multi": true,
"name": "Force",
"options": [],
"query": {
"query": "label_values({__name__=~\"factorio_yarm_site_amount\"},force)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_yarm_site_amount{force=~\"${Force}\"},name)",
"description": "Site",
"hide": 0,
"includeAll": true,
"label": "Site",
"multi": true,
"name": "Site",
"options": [],
"query": {
"query": "label_values(factorio_yarm_site_amount{force=~\"${Force}\"},name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(factorio_yarm_site_amount{force=~\"${Force}\",name=~\"${Site}\"},type)",
"description": "Type",
"hide": 0,
"includeAll": true,
"label": "Type",
"multi": true,
"name": "Type",
"options": [],
"query": {
"query": "label_values(factorio_yarm_site_amount{force=~\"${Force}\",name=~\"${Site}\"},type)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "4.0.1 - Mod: YARM",
"uid": "skf85Hp4k",
"version": 1,
"weekStart": ""
}