Prometheus, Immich and Paperless-ngx integrations

Three read-only integrations, each with a monitoring page, alerts, maintenance
silencing and held-when-unreadable handling.

Prometheus: scrape targets that stop answering (5 minutes, one alert per job)
and alerts that Prometheus's own rules fire (critical when labelled so).
Immich: disk under the library filling, failed background jobs, counts.
Paperless-ngx: worker/database/Redis in error, documents that failed to
import, index and sanity check, disk. Immich and Paperless also in /metrics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-24 22:33:17 +02:00
1 parent aebe98bf15
commit 251a4a9d73
47 files changed
+24148 -7

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
CREATE TABLE `prometheus_state` (
`integration_id` integer PRIMARY KEY NOT NULL,
`version` text,
`jobs` text,
`down` text,
`alerts` text,
`updated_at` text NOT NULL,
FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade
);
+15
View File
@@ -0,0 +1,15 @@
CREATE TABLE `immich_state` (
`integration_id` integer PRIMARY KEY NOT NULL,
`version` text,
`latest_version` text,
`update_available` integer DEFAULT false NOT NULL,
`disk_size` integer,
`disk_used` integer,
`disk_percent` real,
`photos` integer,
`videos` integer,
`usage_bytes` integer,
`queues` text,
`updated_at` text NOT NULL,
FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade
);
@@ -0,0 +1,14 @@
CREATE TABLE `paperless_state` (
`integration_id` integer PRIMARY KEY NOT NULL,
`version` text,
`latest_version` text,
`update_available` integer DEFAULT false NOT NULL,
`storage_total` integer,
`storage_available` integer,
`components` text,
`documents` integer,
`inbox` integer,
`failed` text,
`updated_at` text NOT NULL,
FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade
);
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+21
View File
@@ -414,6 +414,27 @@
"when": 1792872166034,
"tag": "0058_flippant_sasquatch",
"breakpoints": true
},
{
"idx": 59,
"version": "6",
"when": 1792872843134,
"tag": "0059_secret_bullseye",
"breakpoints": true
},
{
"idx": 60,
"version": "6",
"when": 1792873156389,
"tag": "0060_big_kylun",
"breakpoints": true
},
{
"idx": 61,
"version": "6",
"when": 1792873347697,
"tag": "0061_reflective_daimon_hellstrom",
"breakpoints": true
}
]
}