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>
16 lines
449 B
SQL
16 lines
449 B
SQL
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
|
|
);
|