grafana: make caches into gauges

This commit is contained in:
Alex Gleason 2024-09-21 11:36:08 -05:00
parent 15372ceb43
commit 9c9b87bc94
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -1043,7 +1043,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 0, "x": 0,
"y": 28 "y": 33
}, },
"id": 34, "id": 34,
"options": { "options": {
@ -1243,7 +1243,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 6, "x": 6,
"y": 28 "y": 33
}, },
"id": 25, "id": 25,
"options": { "options": {
@ -1443,7 +1443,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 12, "x": 12,
"y": 28 "y": 33
}, },
"id": 31, "id": 31,
"options": { "options": {
@ -1643,7 +1643,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 18, "x": 18,
"y": 28 "y": 33
}, },
"id": 32, "id": 32,
"options": { "options": {
@ -1843,7 +1843,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 0, "x": 0,
"y": 35 "y": 40
}, },
"id": 30, "id": 30,
"options": { "options": {
@ -2043,7 +2043,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 6, "x": 6,
"y": 35 "y": 40
}, },
"id": 35, "id": 35,
"options": { "options": {
@ -2243,7 +2243,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 12, "x": 12,
"y": 35 "y": 40
}, },
"id": 36, "id": 36,
"options": { "options": {
@ -2443,7 +2443,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 18, "x": 18,
"y": 35 "y": 40
}, },
"id": 28, "id": 28,
"options": { "options": {
@ -2643,7 +2643,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 0, "x": 0,
"y": 42 "y": 47
}, },
"id": 26, "id": 26,
"options": { "options": {
@ -2843,7 +2843,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 6, "x": 6,
"y": 42 "y": 47
}, },
"id": 29, "id": 29,
"options": { "options": {
@ -3043,7 +3043,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 12, "x": 12,
"y": 42 "y": 47
}, },
"id": 37, "id": 37,
"options": { "options": {
@ -3243,7 +3243,7 @@
"h": 7, "h": 7,
"w": 6, "w": 6,
"x": 18, "x": 18,
"y": 42 "y": 47
}, },
"id": 33, "id": 33,
"options": { "options": {
@ -3341,40 +3341,7 @@
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "palette-classic" "mode": "thresholds"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
@ -3382,10 +3349,6 @@
"steps": [ "steps": [
{ {
"color": "green" "color": "green"
},
{
"color": "red",
"value": 80
} }
] ]
} }
@ -3393,23 +3356,26 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 7, "h": 4,
"w": 6, "w": 3,
"x": 0, "x": 0,
"y": 29 "y": 28
}, },
"id": 42, "id": 42,
"options": { "options": {
"legend": { "minVizHeight": 75,
"calcs": [], "minVizWidth": 75,
"displayMode": "list", "orientation": "auto",
"placement": "bottom", "reduceOptions": {
"showLegend": false "calcs": [
"lastNotNull"
],
"fields": "",
"values": false
}, },
"tooltip": { "showThresholdLabels": false,
"mode": "single", "showThresholdMarkers": true,
"sort": "none" "sizing": "auto"
}
}, },
"pluginVersion": "11.2.0", "pluginVersion": "11.2.0",
"targets": [ "targets": [
@ -3421,13 +3387,14 @@
"editorMode": "code", "editorMode": "code",
"expr": "ditto_cached_link_previews_size", "expr": "ditto_cached_link_previews_size",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "Values",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "Cached Link Previews", "title": "Link Previews",
"type": "timeseries" "transparent": true,
"type": "gauge"
}, },
{ {
"datasource": { "datasource": {
@ -3438,40 +3405,7 @@
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "palette-classic" "mode": "thresholds"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
@ -3479,10 +3413,6 @@
"steps": [ "steps": [
{ {
"color": "green" "color": "green"
},
{
"color": "red",
"value": 80
} }
] ]
} }
@ -3490,23 +3420,26 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 7, "h": 4,
"w": 6, "w": 3,
"x": 6, "x": 3,
"y": 29 "y": 28
}, },
"id": 41, "id": 41,
"options": { "options": {
"legend": { "minVizHeight": 75,
"calcs": [], "minVizWidth": 75,
"displayMode": "list", "orientation": "auto",
"placement": "bottom", "reduceOptions": {
"showLegend": false "calcs": [
"lastNotNull"
],
"fields": "",
"values": false
}, },
"tooltip": { "showThresholdLabels": false,
"mode": "single", "showThresholdMarkers": true,
"sort": "none" "sizing": "auto"
}
}, },
"pluginVersion": "11.2.0", "pluginVersion": "11.2.0",
"targets": [ "targets": [
@ -3518,13 +3451,14 @@
"editorMode": "code", "editorMode": "code",
"expr": "ditto_cached_nip05s_size", "expr": "ditto_cached_nip05s_size",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "Values",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "Cached NIP-05 Results", "title": "NIP-05 Results",
"type": "timeseries" "transparent": true,
"type": "gauge"
}, },
{ {
"datasource": { "datasource": {
@ -3535,40 +3469,7 @@
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "palette-classic" "mode": "thresholds"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
@ -3576,10 +3477,6 @@
"steps": [ "steps": [
{ {
"color": "green" "color": "green"
},
{
"color": "red",
"value": 80
} }
] ]
} }
@ -3587,23 +3484,26 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 7, "h": 4,
"w": 6, "w": 3,
"x": 12, "x": 6,
"y": 29 "y": 28
}, },
"id": 40, "id": 40,
"options": { "options": {
"legend": { "minVizHeight": 75,
"calcs": [], "minVizWidth": 75,
"displayMode": "list", "orientation": "auto",
"placement": "bottom", "reduceOptions": {
"showLegend": false "calcs": [
"lastNotNull"
],
"fields": "",
"values": false
}, },
"tooltip": { "showThresholdLabels": false,
"mode": "single", "showThresholdMarkers": true,
"sort": "none" "sizing": "auto"
}
}, },
"pluginVersion": "11.2.0", "pluginVersion": "11.2.0",
"targets": [ "targets": [
@ -3615,13 +3515,14 @@
"editorMode": "code", "editorMode": "code",
"expr": "ditto_cached_lnurls_size", "expr": "ditto_cached_lnurls_size",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "Values",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "Cached LNURL Details", "title": "LNURL Details",
"type": "timeseries" "transparent": true,
"type": "gauge"
}, },
{ {
"datasource": { "datasource": {
@ -3632,40 +3533,7 @@
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "palette-classic" "mode": "thresholds"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
@ -3673,10 +3541,6 @@
"steps": [ "steps": [
{ {
"color": "green" "color": "green"
},
{
"color": "red",
"value": 80
} }
] ]
} }
@ -3684,23 +3548,26 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 7, "h": 4,
"w": 6, "w": 3,
"x": 18, "x": 9,
"y": 29 "y": 28
}, },
"id": 39, "id": 39,
"options": { "options": {
"legend": { "minVizHeight": 75,
"calcs": [], "minVizWidth": 75,
"displayMode": "list", "orientation": "auto",
"placement": "bottom", "reduceOptions": {
"showLegend": false "calcs": [
"lastNotNull"
],
"fields": "",
"values": false
}, },
"tooltip": { "showThresholdLabels": false,
"mode": "single", "showThresholdMarkers": true,
"sort": "none" "sizing": "auto"
}
}, },
"pluginVersion": "11.2.0", "pluginVersion": "11.2.0",
"targets": [ "targets": [
@ -3712,13 +3579,14 @@
"editorMode": "code", "editorMode": "code",
"expr": "ditto_cached_favicons_size", "expr": "ditto_cached_favicons_size",
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "Values",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "Cached Domain Favicons", "title": "Domain Favicons",
"type": "timeseries" "transparent": true,
"type": "gauge"
} }
], ],
"title": "Cache", "title": "Cache",
@ -4335,8 +4203,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -4952,6 +4819,6 @@
"timezone": "browser", "timezone": "browser",
"title": "Ditto", "title": "Ditto",
"uid": "ddps3ap51fv28d", "uid": "ddps3ap51fv28d",
"version": 8, "version": 9,
"weekStart": "" "weekStart": ""
} }