Update dash.

main
mathan 2024-03-13 14:21:05 -07:00
parent 9d429be424
commit 85259baa1c
1 changed files with 188 additions and 188 deletions

View File

@ -247,71 +247,6 @@
"title": "Disk", "title": "Disk",
"type": "gauge" "type": "gauge"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 6,
"y": 0
},
"id": 12,
"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{job=\"db\"}",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Total accs",
"type": "stat"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -335,8 +270,8 @@
}, },
"gridPos": { "gridPos": {
"h": 4, "h": 4,
"w": 3, "w": 2,
"x": 8, "x": 6,
"y": 0 "y": 0
}, },
"id": 34, "id": 34,
@ -398,7 +333,7 @@
"gridPos": { "gridPos": {
"h": 4, "h": 4,
"w": 3, "w": 3,
"x": 11, "x": 8,
"y": 0 "y": 0
}, },
"id": 24, "id": 24,
@ -460,7 +395,7 @@
"gridPos": { "gridPos": {
"h": 4, "h": 4,
"w": 3, "w": 3,
"x": 14, "x": 11,
"y": 0 "y": 0
}, },
"id": 35, "id": 35,
@ -498,6 +433,113 @@
"title": "Time to Full", "title": "Time to Full",
"type": "stat" "type": "stat"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds",
"seriesBy": "last"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 100,
"axisSoftMin": 0,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "scheme",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 3,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 15
},
{
"color": "orange",
"value": 30
},
{
"color": "red",
"value": 50
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 14,
"y": 0
},
"id": 28,
"options": {
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "right",
"showLegend": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "(sum by(instance) (rate(node_cpu_seconds_total{instance=\"host.docker.internal:9100\",job=\"node\", mode=\"iowait\"}[$rate_interval])) / on(instance) group_left sum by (instance)((rate(node_cpu_seconds_total{instance=\"host.docker.internal:9100\",job=\"node\"}[$rate_interval]))))*100",
"instant": false,
"legendFormat": "Busy Iowait",
"range": true,
"refId": "A"
}
],
"title": "IO wait",
"type": "timeseries"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -1316,7 +1358,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "Disk usage", "title": "Disk",
"type": "stat" "type": "stat"
}, },
{ {
@ -1346,6 +1388,68 @@
"x": 6, "x": 6,
"y": 4 "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": {
"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": 23, "id": 23,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
@ -1388,12 +1492,15 @@
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "blue", "color": "green",
"value": null "value": null
} }
] ]
@ -1405,10 +1512,10 @@
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 8, "x": 11,
"y": 4 "y": 4
}, },
"id": 36, "id": 12,
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "area", "graphMode": "area",
@ -1433,14 +1540,14 @@
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "repos_seen - on(instance) (repos_failed + on(instance) repos_fully_indexed)", "expr": "repos_seen{job=\"db\"}",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "Left to index", "title": "Total accs",
"type": "stat" "type": "stat"
}, },
{ {
@ -1490,7 +1597,7 @@
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 11, "x": 14,
"y": 4 "y": 4
}, },
"id": 16, "id": 16,
@ -1527,113 +1634,6 @@
"title": "Indexing speed", "title": "Indexing speed",
"type": "gauge" "type": "gauge"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds",
"seriesBy": "last"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 100,
"axisSoftMin": 0,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "scheme",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 3,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 15
},
{
"color": "orange",
"value": 30
},
{
"color": "red",
"value": 50
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 14,
"y": 4
},
"id": 28,
"options": {
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "right",
"showLegend": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "(sum by(instance) (rate(node_cpu_seconds_total{instance=\"host.docker.internal:9100\",job=\"node\", mode=\"iowait\"}[$rate_interval])) / on(instance) group_left sum by (instance)((rate(node_cpu_seconds_total{instance=\"host.docker.internal:9100\",job=\"node\"}[$rate_interval]))))*100",
"instant": false,
"legendFormat": "Busy Iowait",
"range": true,
"refId": "A"
}
],
"title": "IO wait",
"type": "timeseries"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -2749,8 +2749,8 @@
"auto_min": "10s", "auto_min": "10s",
"current": { "current": {
"selected": false, "selected": false,
"text": "10m", "text": "5m",
"value": "10m" "value": "5m"
}, },
"hide": 0, "hide": 0,
"label": "Rate interval", "label": "Rate interval",
@ -2762,12 +2762,12 @@
"value": "1m" "value": "1m"
}, },
{ {
"selected": false, "selected": true,
"text": "5m", "text": "5m",
"value": "5m" "value": "5m"
}, },
{ {
"selected": true, "selected": false,
"text": "10m", "text": "10m",
"value": "10m" "value": "10m"
}, },
@ -2833,6 +2833,6 @@
"timezone": "", "timezone": "",
"title": "Bsky indexer", "title": "Bsky indexer",
"uid": "aXw6dQhSzs", "uid": "aXw6dQhSzs",
"version": 3, "version": 7,
"weekStart": "" "weekStart": ""
} }