- Restructured docker-compose for Nginx Proxy Manager (no custom nginx) - Added domain wordly.art configuration - Added Prometheus + Grafana monitoring stack with pre-configured dashboards - Added PostgreSQL backup script to NAS (daily/weekly/monthly rotation) - Added alert rules for backend, system, and Docker metrics - Updated deployment guide for NPM + IONOS DNS homelab setup - Added marketing plan document - PDF translator and watermark support - Enhanced middleware, routes, and translator modules Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
169 lines
4.4 KiB
JSON
169 lines
4.4 KiB
JSON
{
|
|
"annotations": { "list": [] },
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 1,
|
|
"id": null,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"title": "CPU Usage (%)",
|
|
"type": "timeseries",
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
|
|
"targets": [
|
|
{
|
|
"expr": "100 - (avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)",
|
|
"legendFormat": "{{instance}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": { "lineWidth": 2, "fillOpacity": 20 },
|
|
"unit": "percent",
|
|
"max": 100
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "RAM Usage",
|
|
"type": "timeseries",
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 },
|
|
"targets": [
|
|
{
|
|
"expr": "(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / node_memory_MemTotal_bytes * 100",
|
|
"legendFormat": "Used %"
|
|
},
|
|
{
|
|
"expr": "node_memory_Buffers_bytes / node_memory_MemTotal_bytes * 100",
|
|
"legendFormat": "Buffers %"
|
|
},
|
|
{
|
|
"expr": "node_memory_Cached_bytes / node_memory_MemTotal_bytes * 100",
|
|
"legendFormat": "Cache %"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": { "lineWidth": 2, "fillOpacity": 15 },
|
|
"unit": "percent",
|
|
"max": 100
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "Disk Space",
|
|
"type": "gauge",
|
|
"gridPos": { "h": 6, "w": 6, "x": 0, "y": 8 },
|
|
"targets": [
|
|
{
|
|
"expr": "(1 - node_filesystem_avail_bytes{mountpoint=\"/\"} / node_filesystem_size_bytes{mountpoint=\"/\"}) * 100",
|
|
"legendFormat": "Used"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "percent",
|
|
"min": 0,
|
|
"max": 100,
|
|
"thresholds": {
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 70 },
|
|
{ "color": "red", "value": 90 }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "Network I/O",
|
|
"type": "timeseries",
|
|
"gridPos": { "h": 6, "w": 10, "x": 6, "y": 8 },
|
|
"targets": [
|
|
{
|
|
"expr": "rate(node_network_receive_bytes_total{device!=\"lo\"}[5m]) * 8",
|
|
"legendFormat": "In {{device}}"
|
|
},
|
|
{
|
|
"expr": "-rate(node_network_transmit_bytes_total{device!=\"lo\"}[5m]) * 8",
|
|
"legendFormat": "Out {{device}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": { "lineWidth": 2 },
|
|
"unit": "bps"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "Container Memory",
|
|
"type": "barchart",
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 14 },
|
|
"targets": [
|
|
{
|
|
"expr": "container_memory_usage_bytes{name=~\"wordly.*|translate.*\"}",
|
|
"legendFormat": "{{name}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "bytes"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "Container CPU %",
|
|
"type": "barchart",
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 14 },
|
|
"targets": [
|
|
{
|
|
"expr": "rate(container_cpu_usage_seconds_total{name=~\"wordly.*|translate.*\"}[5m]) * 100",
|
|
"legendFormat": "{{name}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "percent"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "Service Status (Up/Down)",
|
|
"type": "stat",
|
|
"gridPos": { "h": 4, "w": 24, "x": 0, "y": 22 },
|
|
"targets": [
|
|
{
|
|
"expr": "up",
|
|
"legendFormat": "{{job}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"steps": [
|
|
{ "color": "red", "value": null },
|
|
{ "color": "green", "value": 1 }
|
|
]
|
|
},
|
|
"mappings": [
|
|
{ "type": "value", "options": { "0": { "text": "DOWN", "color": "red" }, "1": { "text": "UP", "color": "green" } } }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 39,
|
|
"tags": ["wordly", "infrastructure"],
|
|
"time": { "from": "now-1h", "to": "now" },
|
|
"timezone": "Europe/Paris",
|
|
"title": "Wordly - Infrastructure",
|
|
"uid": "wordly-infra",
|
|
"version": 1
|
|
}
|