Update dash.

main
mathan 2024-03-13 11:33:13 -07:00
parent 76a50524a0
commit 9d429be424
2 changed files with 201 additions and 173 deletions

View File

@ -24,7 +24,7 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 6, "id": 1,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
@ -45,8 +45,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -73,7 +72,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -108,8 +107,7 @@
} }
] ]
}, },
"unit": "short", "unit": "short"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -136,7 +134,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -194,8 +192,7 @@
} }
] ]
}, },
"unit": "users/h", "unit": "users/h"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -221,7 +218,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto" "sizing": "auto"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -229,7 +226,7 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "rate(repos_fully_indexed{job=\"db\"}[$rate_interval])*60*60", "expr": "deriv(repos_fully_indexed{job=\"db\"}[$rate_interval])*60*60",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
@ -256,8 +253,7 @@
} }
] ]
}, },
"unit": "s", "unit": "s"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -284,7 +280,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -319,8 +315,7 @@
} }
] ]
}, },
"unit": "s", "unit": "s"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -347,7 +342,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -421,8 +416,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -554,8 +548,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -687,8 +680,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -822,8 +814,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -926,8 +917,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1030,8 +1020,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1134,8 +1123,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1238,8 +1226,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1296,7 +1283,7 @@
"auto_count": 30, "auto_count": 30,
"auto_min": "10s", "auto_min": "10s",
"current": { "current": {
"selected": true, "selected": false,
"text": "6h", "text": "6h",
"value": "6h" "value": "6h"
}, },
@ -1381,6 +1368,6 @@
"timezone": "", "timezone": "",
"title": "Bsky Statistics", "title": "Bsky Statistics",
"uid": "aXw6dQhSas", "uid": "aXw6dQhSas",
"version": 15, "version": 2,
"weekStart": "" "weekStart": ""
} }

View File

@ -24,7 +24,7 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 5, "id": 2,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
@ -57,8 +57,7 @@
"value": 90 "value": 90
} }
] ]
}, }
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -84,7 +83,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto" "sizing": "auto"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -131,8 +130,7 @@
"value": 90 "value": 90
} }
] ]
}, }
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -158,7 +156,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto" "sizing": "auto"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -205,8 +203,7 @@
} }
] ]
}, },
"unit": "percent", "unit": "percent"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -217,7 +214,6 @@
"y": 0 "y": 0
}, },
"id": 15, "id": 15,
"links": [],
"options": { "options": {
"minVizHeight": 75, "minVizHeight": 75,
"minVizWidth": 75, "minVizWidth": 75,
@ -233,7 +229,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto" "sizing": "auto"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -271,8 +267,7 @@
} }
] ]
}, },
"unit": "short", "unit": "short"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -299,7 +294,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -334,8 +329,7 @@
} }
] ]
}, },
"unit": "s", "unit": "s"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -362,7 +356,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -370,7 +364,7 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "(6000000-repos_fully_indexed{job=\"db\"})/rate(repos_fully_indexed{job=\"db\"}[1d])", "expr": "(6000000-repos_fully_indexed{job=\"db\"})/deriv(repos_fully_indexed{job=\"db\"}[1d])",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
@ -397,8 +391,7 @@
} }
] ]
}, },
"unit": "s", "unit": "s"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -425,7 +418,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -460,8 +453,7 @@
} }
] ]
}, },
"unit": "s", "unit": "s"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -488,7 +480,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -543,8 +535,7 @@
} }
] ]
}, },
"unit": "Bps", "unit": "Bps"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -555,7 +546,6 @@
"y": 0 "y": 0
}, },
"id": 25, "id": 25,
"links": [],
"options": { "options": {
"minVizHeight": 75, "minVizHeight": 75,
"minVizWidth": 75, "minVizWidth": 75,
@ -571,20 +561,24 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto" "sizing": "auto"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "disableTextWrap": false,
"editorMode": "builder",
"exemplar": false, "exemplar": false,
"expr": "-deriv(node_filesystem_free_bytes{mountpoint='/4t'}[$rate_interval])", "expr": "rate(node_disk_written_bytes_total{device=\"sda\"}[$rate_interval])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A",
"useBackend": false
} }
], ],
"title": "IO write", "title": "IO write",
@ -618,8 +612,7 @@
} }
] ]
}, },
"unit": "celsius", "unit": "celsius"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -695,7 +688,7 @@
"sizing": "auto", "sizing": "auto",
"valueMode": "color" "valueMode": "color"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -808,8 +801,7 @@
} }
] ]
}, },
"unit": "bps", "unit": "bps"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -1208,7 +1200,7 @@
}, },
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 6, "w": 4,
"x": 0, "x": 0,
"y": 3 "y": 3
}, },
@ -1264,6 +1256,69 @@
"title": "Network Traffic", "title": "Network Traffic",
"type": "timeseries" "type": "timeseries"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "",
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 2,
"x": 4,
"y": 3
},
"id": 7,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "node_filesystem_size_bytes{mountpoint='/4t'}-node_filesystem_free_bytes{mountpoint='/4t'}",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Disk usage",
"type": "stat"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -1281,8 +1336,7 @@
} }
] ]
}, },
"unit": "short", "unit": "short"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1309,7 +1363,7 @@
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -1327,6 +1381,68 @@
"title": "Indexed", "title": "Indexed",
"type": "stat" "type": "stat"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 8,
"y": 4
},
"id": 36,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "repos_seen - on(instance) (repos_failed + on(instance) repos_fully_indexed)",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Left to index",
"type": "stat"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -1367,15 +1483,14 @@
} }
] ]
}, },
"unit": "repo/h", "unit": "repo/h"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 8, "x": 11,
"y": 4 "y": 4
}, },
"id": 16, "id": 16,
@ -1394,7 +1509,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto" "sizing": "auto"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -1402,7 +1517,7 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "rate(repos_fully_indexed{job=\"db\"}[$rate_interval])*60*60", "expr": "deriv(repos_fully_indexed{job=\"db\"}[$rate_interval])*60*60",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
@ -1412,71 +1527,6 @@
"title": "Indexing speed", "title": "Indexing speed",
"type": "gauge" "type": "gauge"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "",
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "decbytes",
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 11,
"y": 4
},
"id": 7,
"links": [],
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "node_filesystem_size_bytes{mountpoint='/4t'}-node_filesystem_free_bytes{mountpoint='/4t'}",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Disk usage",
"type": "stat"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -1543,8 +1593,7 @@
"value": 50 "value": 50
} }
] ]
}, }
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1590,7 +1639,7 @@
"type": "prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"description": "", "description": "1.315068 TBW/d is max for an SSD to survive 3 years.",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"mappings": [], "mappings": [],
@ -1621,8 +1670,7 @@
} }
] ]
}, },
"unit": "TBW/d", "unit": "TBW/d"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1648,7 +1696,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"sizing": "auto" "sizing": "auto"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -1656,7 +1704,7 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "(rate(smartmon_total_lbas_written_raw_value{instance=\"host.docker.internal:9100\", disk=\"/dev/sda\"}[1d]) * 512 * 60 * 60 * 24)/(1024*1024*1024*1024)", "expr": "(rate(smartmon_total_lbas_written_raw_value{instance=\"host.docker.internal:9100\", disk=\"/dev/sda\"}[7d]) * 512 * 60 * 60 * 24)/(1024*1024*1024*1024)",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
@ -1693,8 +1741,7 @@
} }
] ]
}, },
"unit": "h", "unit": "h"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -1750,7 +1797,7 @@
"sizing": "auto", "sizing": "auto",
"valueMode": "color" "valueMode": "color"
}, },
"pluginVersion": "10.3.3", "pluginVersion": "10.4.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -1759,7 +1806,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "code", "editorMode": "code",
"expr": "1440 / ((rate(smartmon_total_lbas_written_raw_value{instance=\"host.docker.internal:9100\", disk=\"/dev/sda\"}[1d]) * 512 * 60 * 60)/(1024*1024*1024*1024))", "expr": "1440 / ((rate(smartmon_total_lbas_written_raw_value{instance=\"host.docker.internal:9100\", disk=\"/dev/sda\"}[7d]) * 512 * 60 * 60)/(1024*1024*1024*1024))",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"instant": false, "instant": false,
@ -1845,8 +1892,7 @@
} }
] ]
}, },
"unit": "commits/s", "unit": "commits/s"
"unitScale": true
}, },
"overrides": [] "overrides": []
}, },
@ -1965,8 +2011,7 @@
} }
] ]
}, },
"unit": "s", "unit": "s"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -2114,8 +2159,7 @@
} }
] ]
}, },
"unit": "posts/h", "unit": "posts/h"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -2262,8 +2306,7 @@
} }
] ]
}, },
"unit": "repos/h", "unit": "repos/h"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -2433,8 +2476,7 @@
"value": null "value": null
} }
] ]
}, }
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -2624,8 +2666,7 @@
} }
] ]
}, },
"unit": "records/s", "unit": "records/s"
"unitScale": true
}, },
"overrides": [ "overrides": [
{ {
@ -2708,8 +2749,8 @@
"auto_min": "10s", "auto_min": "10s",
"current": { "current": {
"selected": false, "selected": false,
"text": "30m", "text": "10m",
"value": "30m" "value": "10m"
}, },
"hide": 0, "hide": 0,
"label": "Rate interval", "label": "Rate interval",
@ -2726,12 +2767,12 @@
"value": "5m" "value": "5m"
}, },
{ {
"selected": false, "selected": true,
"text": "10m", "text": "10m",
"value": "10m" "value": "10m"
}, },
{ {
"selected": true, "selected": false,
"text": "30m", "text": "30m",
"value": "30m" "value": "30m"
}, },
@ -2792,6 +2833,6 @@
"timezone": "", "timezone": "",
"title": "Bsky indexer", "title": "Bsky indexer",
"uid": "aXw6dQhSzs", "uid": "aXw6dQhSzs",
"version": 63, "version": 3,
"weekStart": "" "weekStart": ""
} }