grafana fix

This commit is contained in:
friendly Friend 2023-03-18 09:57:41 -07:00
parent 22438c0558
commit 8eb9bda5c5

View file

@ -1,47 +1,4 @@
{ {
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.4.3"
},
{
"type": "panel",
"id": "piechart",
"name": "Pie chart",
"version": ""
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": { "annotations": {
"list": [ "list": [
{ {
@ -67,14 +24,14 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": null, "id": 11,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -123,7 +80,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
@ -140,7 +97,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -190,7 +147,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_user_count", "expr": "immich_server_stats_user_count",
@ -205,7 +162,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -252,7 +209,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "sum(immich_server_stats_usage_by_users)", "expr": "sum(immich_server_stats_usage_by_users)",
@ -267,7 +224,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -314,7 +271,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_info_totalDiskSize", "expr": "immich_server_info_totalDiskSize",
@ -329,7 +286,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -376,7 +333,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_info_diskUse", "expr": "immich_server_info_diskUse",
@ -391,7 +348,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -413,6 +370,10 @@
{ {
"color": "#EAB839", "color": "#EAB839",
"value": 20 "value": 20
},
{
"color": "#6ED0E0",
"value": 30
} }
] ]
}, },
@ -428,7 +389,7 @@
}, },
"id": 16, "id": 16,
"options": { "options": {
"colorMode": "none", "colorMode": "value",
"graphMode": "none", "graphMode": "none",
"justifyMode": "auto", "justifyMode": "auto",
"orientation": "auto", "orientation": "auto",
@ -446,11 +407,11 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "immich_server_info_diskUsagePercentage", "expr": "100 - immich_server_info_diskUsagePercentage",
"format": "time_series", "format": "time_series",
"instant": true, "instant": true,
"interval": "", "interval": "",
@ -465,7 +426,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -513,7 +474,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
@ -531,7 +492,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -579,7 +540,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_useage_growth[7d])", "expr": "increase(immich_server_stats_useage_growth[7d])",
@ -595,7 +556,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -647,7 +608,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_usage_by_users", "expr": "immich_server_stats_usage_by_users",
@ -662,7 +623,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -710,7 +671,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_useage_growth[30h])", "expr": "increase(immich_server_stats_useage_growth[30h])",
@ -726,7 +687,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -774,7 +735,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_useage_growth[365d])", "expr": "increase(immich_server_stats_useage_growth[365d])",
@ -790,7 +751,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -835,7 +796,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[24h])", "expr": "increase(immich_server_stats_photos_growth[24h])",
@ -851,7 +812,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -896,7 +857,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[7d])", "expr": "increase(immich_server_stats_photos_growth[7d])",
@ -912,7 +873,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -964,7 +925,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
@ -981,7 +942,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1028,7 +989,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[4w])", "expr": "increase(immich_server_stats_photos_growth[4w])",
@ -1044,7 +1005,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1091,7 +1052,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_photos_growth[52w])", "expr": "increase(immich_server_stats_photos_growth[52w])",
@ -1107,7 +1068,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"description": "amount of photos over time", "description": "amount of photos over time",
"fieldConfig": { "fieldConfig": {
@ -1187,7 +1148,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_photos_by_users", "expr": "immich_server_stats_photos_by_users",
@ -1203,7 +1164,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1215,8 +1176,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
} }
@ -1250,7 +1210,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1d])", "expr": "increase(immich_server_stats_videos_growth[1d])",
@ -1266,7 +1226,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1278,8 +1238,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
} }
@ -1313,7 +1272,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[4w])\r\n", "expr": "increase(immich_server_stats_videos_growth[4w])\r\n",
@ -1329,7 +1288,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1381,7 +1340,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_videos_by_users", "expr": "immich_server_stats_videos_by_users",
@ -1396,7 +1355,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1408,8 +1367,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
} }
@ -1443,7 +1401,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[1w])", "expr": "increase(immich_server_stats_videos_growth[1w])",
@ -1459,7 +1417,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1471,8 +1429,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
} }
@ -1506,7 +1463,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(immich_server_stats_videos_growth[52w])\r\n", "expr": "increase(immich_server_stats_videos_growth[52w])\r\n",
@ -1522,7 +1479,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"description": "amount of videos over time", "description": "amount of videos over time",
"fieldConfig": { "fieldConfig": {
@ -1568,8 +1525,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
} }
@ -1599,7 +1555,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "o-nLTb0Vz"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "immich_server_stats_videos_by_users", "expr": "immich_server_stats_videos_by_users",
@ -1629,6 +1585,6 @@
"timezone": "", "timezone": "",
"title": "immich", "title": "immich",
"uid": "ZWWp3aa4k", "uid": "ZWWp3aa4k",
"version": 7, "version": 3,
"weekStart": "" "weekStart": ""
} }