{ "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": "" }