675 lines
16 KiB
JSON
675 lines
16 KiB
JSON
|
{
|
||
|
"annotations": {
|
||
|
"list": [
|
||
|
{
|
||
|
"builtIn": 1,
|
||
|
"datasource": {
|
||
|
"type": "grafana",
|
||
|
"uid": "-- Grafana --"
|
||
|
},
|
||
|
"enable": true,
|
||
|
"hide": true,
|
||
|
"iconColor": "rgba(0, 211, 255, 1)",
|
||
|
"name": "Annotations & Alerts",
|
||
|
"type": "dashboard"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"editable": true,
|
||
|
"fiscalYearStartMonth": 0,
|
||
|
"graphTooltip": 0,
|
||
|
"id": 15,
|
||
|
"links": [],
|
||
|
"panels": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"custom": {
|
||
|
"align": "auto",
|
||
|
"cellOptions": {
|
||
|
"type": "auto"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": [
|
||
|
{
|
||
|
"matcher": {
|
||
|
"id": "byName",
|
||
|
"options": "size"
|
||
|
},
|
||
|
"properties": [
|
||
|
{
|
||
|
"id": "unit",
|
||
|
"value": "bytes"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 9,
|
||
|
"w": 16,
|
||
|
"x": 0,
|
||
|
"y": 0
|
||
|
},
|
||
|
"id": 1,
|
||
|
"options": {
|
||
|
"cellHeight": "sm",
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"fields": "",
|
||
|
"reducer": [
|
||
|
"sum"
|
||
|
],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true,
|
||
|
"sortBy": [
|
||
|
{
|
||
|
"desc": true,
|
||
|
"displayName": "size"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"pluginVersion": "10.4.2",
|
||
|
"targets": [
|
||
|
{
|
||
|
"dataset": "void_cat",
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT \n hex(void_cat.users.pubkey) as pubkey, \n count(void_cat.user_uploads.file) as uploads, \n sum(void_cat.uploads.size) as size\nFROM void_cat.users, void_cat.user_uploads, void_cat.uploads\nwhere void_cat.users.id = void_cat.user_uploads.user_id\nand void_cat.user_uploads.file = void_cat.uploads.id\ngroup by void_cat.users.pubkey",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [
|
||
|
{
|
||
|
"name": "*",
|
||
|
"type": "functionParameter"
|
||
|
}
|
||
|
],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
},
|
||
|
"table": "users"
|
||
|
}
|
||
|
],
|
||
|
"title": "Uploaders",
|
||
|
"type": "table"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "bytes"
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 4,
|
||
|
"w": 2,
|
||
|
"x": 16,
|
||
|
"y": 0
|
||
|
},
|
||
|
"id": 4,
|
||
|
"options": {
|
||
|
"colorMode": "value",
|
||
|
"graphMode": "area",
|
||
|
"justifyMode": "auto",
|
||
|
"orientation": "auto",
|
||
|
"reduceOptions": {
|
||
|
"calcs": [
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"fields": "",
|
||
|
"values": false
|
||
|
},
|
||
|
"showPercentChange": false,
|
||
|
"textMode": "auto",
|
||
|
"wideLayout": true
|
||
|
},
|
||
|
"pluginVersion": "10.4.2",
|
||
|
"targets": [
|
||
|
{
|
||
|
"dataset": "mysql",
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "select \n sum(uploads.size) as size\nfrom void_cat.uploads",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Total Size",
|
||
|
"type": "stat"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "locale"
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 4,
|
||
|
"w": 2,
|
||
|
"x": 18,
|
||
|
"y": 0
|
||
|
},
|
||
|
"id": 6,
|
||
|
"options": {
|
||
|
"colorMode": "value",
|
||
|
"graphMode": "area",
|
||
|
"justifyMode": "auto",
|
||
|
"orientation": "auto",
|
||
|
"reduceOptions": {
|
||
|
"calcs": [
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"fields": "",
|
||
|
"values": false
|
||
|
},
|
||
|
"showPercentChange": false,
|
||
|
"textMode": "auto",
|
||
|
"wideLayout": true
|
||
|
},
|
||
|
"pluginVersion": "10.4.2",
|
||
|
"targets": [
|
||
|
{
|
||
|
"dataset": "mysql",
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "select \n count(users.pubkey) as users\nfrom void_cat.users",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Total Users",
|
||
|
"type": "stat"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "locale"
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 4,
|
||
|
"w": 2,
|
||
|
"x": 16,
|
||
|
"y": 4
|
||
|
},
|
||
|
"id": 5,
|
||
|
"options": {
|
||
|
"colorMode": "value",
|
||
|
"graphMode": "area",
|
||
|
"justifyMode": "auto",
|
||
|
"orientation": "auto",
|
||
|
"reduceOptions": {
|
||
|
"calcs": [
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"fields": "",
|
||
|
"values": false
|
||
|
},
|
||
|
"showPercentChange": false,
|
||
|
"textMode": "auto",
|
||
|
"wideLayout": true
|
||
|
},
|
||
|
"pluginVersion": "10.4.2",
|
||
|
"targets": [
|
||
|
{
|
||
|
"dataset": "mysql",
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "select \n count(uploads.id) as files\nfrom void_cat.uploads",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Total Files",
|
||
|
"type": "stat"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"custom": {
|
||
|
"align": "auto",
|
||
|
"cellOptions": {
|
||
|
"type": "auto"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 8,
|
||
|
"w": 16,
|
||
|
"x": 0,
|
||
|
"y": 9
|
||
|
},
|
||
|
"id": 2,
|
||
|
"options": {
|
||
|
"cellHeight": "sm",
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"fields": "",
|
||
|
"reducer": [
|
||
|
"sum"
|
||
|
],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true
|
||
|
},
|
||
|
"pluginVersion": "10.4.2",
|
||
|
"targets": [
|
||
|
{
|
||
|
"dataset": "mysql",
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "select \n hex(uploads.id) as sha256,\n hex(users.pubkey) as uploader,\n uploads.name,\n sys.format_bytes(uploads.size) as size,\n uploads.mime_type,\n uploads.created,\n uploads.width,\n uploads.height\nfrom void_cat.uploads, void_cat.user_uploads, void_cat.users\nwhere uploads.id = user_uploads.file\nand users.id = user_uploads.user_id\norder by uploads.created desc\nlimit 50",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Latest Uploads",
|
||
|
"type": "table"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"custom": {
|
||
|
"align": "auto",
|
||
|
"cellOptions": {
|
||
|
"type": "auto"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 9,
|
||
|
"w": 16,
|
||
|
"x": 0,
|
||
|
"y": 17
|
||
|
},
|
||
|
"id": 3,
|
||
|
"options": {
|
||
|
"cellHeight": "sm",
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"fields": "",
|
||
|
"reducer": [
|
||
|
"sum"
|
||
|
],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true
|
||
|
},
|
||
|
"pluginVersion": "10.4.2",
|
||
|
"targets": [
|
||
|
{
|
||
|
"dataset": "mysql",
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "select \n hex(uploads.id) as sha256,\n hex(users.pubkey) as uploader,\n uploads.name,\n sys.format_bytes(uploads.size) as size,\n uploads.mime_type,\n uploads.created\nfrom void_cat.uploads, void_cat.user_uploads, void_cat.users\nwhere uploads.id = user_uploads.file\nand users.id = user_uploads.user_id\norder by uploads.size desc\nlimit 50",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Biggest files",
|
||
|
"type": "table"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "thresholds"
|
||
|
},
|
||
|
"custom": {
|
||
|
"align": "auto",
|
||
|
"cellOptions": {
|
||
|
"type": "auto"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 8,
|
||
|
"w": 16,
|
||
|
"x": 0,
|
||
|
"y": 26
|
||
|
},
|
||
|
"id": 7,
|
||
|
"options": {
|
||
|
"cellHeight": "sm",
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"fields": "",
|
||
|
"reducer": [
|
||
|
"sum"
|
||
|
],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true
|
||
|
},
|
||
|
"pluginVersion": "10.4.2",
|
||
|
"targets": [
|
||
|
{
|
||
|
"dataset": "mysql",
|
||
|
"datasource": {
|
||
|
"type": "mysql",
|
||
|
"uid": "cdnhzi5uxm8zkb"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "select hex(uf.file) as sha256, count(1) as count\nfrom user_uploads uf\ngroup by uf.file \norder by 2 desc\nlimit 20",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Most Duplicates",
|
||
|
"type": "table"
|
||
|
}
|
||
|
],
|
||
|
"schemaVersion": 39,
|
||
|
"tags": [],
|
||
|
"templating": {
|
||
|
"list": []
|
||
|
},
|
||
|
"time": {
|
||
|
"from": "now-6h",
|
||
|
"to": "now"
|
||
|
},
|
||
|
"timepicker": {},
|
||
|
"timezone": "browser",
|
||
|
"title": "route96",
|
||
|
"uid": "ddni0rqotyltse",
|
||
|
"version": 12,
|
||
|
"weekStart": ""
|
||
|
}
|