Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
import { getInfrastructureSettingsLocationLabel } from '@/utils/infrastructureSettingsPresentation';
export const PBS_THRESHOLDS_EMPTY_STATE = 'No PBS servers configured.';
export const GUEST_THRESHOLDS_EMPTY_STATE = 'No VMs or containers found.';
export const NODE_THRESHOLDS_FILTER_EMPTY_STATE =
'No virtualization hosts match the current filters.';
export const PBS_THRESHOLDS_FILTER_EMPTY_STATE = 'No PBS servers match the current filters.';
export const GUEST_THRESHOLDS_FILTER_EMPTY_STATE =
'No VMs or containers match the current filters.';
export const GUEST_DISKS_EMPTY_STATE =
'No guest filesystems found. Filesystems reported by QEMU guest agents will appear here.';
export const GUEST_DISKS_FILTER_EMPTY_STATE = 'No guest filesystems match the current filters.';
export const GUEST_FILTERING_EMPTY_STATE = 'Configure VM and container filtering rules.';
export const BACKUP_THRESHOLDS_EMPTY_STATE = 'Configure recovery alert thresholds.';
export const SNAPSHOT_THRESHOLDS_EMPTY_STATE = 'Configure snapshot age thresholds.';
export const STORAGE_THRESHOLDS_EMPTY_STATE = 'No storage devices found.';
export const STORAGE_THRESHOLDS_FILTER_EMPTY_STATE =
'No storage devices match the current filters.';
export const PMG_THRESHOLDS_EMPTY_STATE = `No mail gateways configured yet. Add a Proxmox Mail Gateway connection in ${getInfrastructureSettingsLocationLabel()} to manage thresholds.`;
export const PMG_THRESHOLDS_FILTER_EMPTY_STATE = 'No mail gateways match the current filters.';
export const AGENT_THRESHOLDS_FILTER_EMPTY_STATE = 'No machines match the current filters.';
export const AGENT_DISKS_EMPTY_STATE =
'No machine disks found. Machines with mounted filesystems will appear here.';
export const AGENT_DISKS_FILTER_EMPTY_STATE = 'No machine disks match the current filters.';
export const AGENT_SENSORS_EMPTY_STATE =
'No machine sensors found. Linux machines with lm-sensors temperature inputs will appear here.';
export const AGENT_SENSORS_FILTER_EMPTY_STATE = 'No machine sensors match the current filters.';
export const CONTAINER_RUNTIMES_FILTER_EMPTY_STATE =
'No container runtimes match the current filters.';
export const CONTAINERS_FILTER_EMPTY_STATE = 'No containers match the current filters.';
export const ALERT_THRESHOLDS_SEARCH_PLACEHOLDER = 'Search resources...';
export const ALERT_THRESHOLDS_HELP_DISMISS_LABEL = 'Dismiss tips';
export const ALERT_THRESHOLDS_OVERRIDES_TITLE = 'Custom overrides';
export const ALERT_THRESHOLDS_OVERRIDES_DESCRIPTION =
'These resources differ from the inherited defaults. Choose a group to review only its custom settings.';
export const ALERT_THRESHOLDS_GUEST_IGNORED_PREFIXES_TITLE = 'Ignored prefixes';
export const ALERT_THRESHOLDS_GUEST_IGNORED_PREFIXES_DESCRIPTION =
'Skip metrics for VMs and containers starting with:';
export const ALERT_THRESHOLDS_GUEST_IGNORED_PREFIXES_PLACEHOLDER = 'dev-';
export const ALERT_THRESHOLDS_GUEST_TAG_WHITELIST_TITLE = 'Required tags';
export const ALERT_THRESHOLDS_GUEST_TAG_WHITELIST_DESCRIPTION =
'Only monitor VMs and containers with at least one of these tags (leave empty to disable this filter):';
export const ALERT_THRESHOLDS_GUEST_TAG_WHITELIST_PLACEHOLDER = 'production';
export const ALERT_THRESHOLDS_GUEST_TAG_BLACKLIST_TITLE = 'Ignored tags';
export const ALERT_THRESHOLDS_GUEST_TAG_BLACKLIST_DESCRIPTION =
'Ignore VMs and containers with any of these tags:';
export const ALERT_THRESHOLDS_GUEST_TAG_BLACKLIST_PLACEHOLDER = 'maintenance';
export const ALERT_THRESHOLDS_BACKUP_ORPHANED_TITLE = 'Orphaned backups';
export const ALERT_THRESHOLDS_BACKUP_ORPHANED_DESCRIPTION =
'Alert when backups exist for VMIDs that are no longer in inventory.';
export const ALERT_THRESHOLDS_BACKUP_ORPHANED_TOGGLE_LABEL = 'Alerts';
export const ALERT_THRESHOLDS_BACKUP_ORPHANED_TOGGLE_DESCRIPTION =
'Toggle orphaned VM/Container backup alerts';
export const ALERT_THRESHOLDS_BACKUP_IGNORE_VMIDS_LABEL = 'Ignore VMIDs';
export const ALERT_THRESHOLDS_BACKUP_IGNORE_VMIDS_DESCRIPTION =
'One per line. Use a trailing * to match a prefix (example: 10*).';
export const ALERT_THRESHOLDS_BACKUP_IGNORE_VMIDS_PLACEHOLDER = '100, 200, 10*';
export const ALERT_THRESHOLDS_DOCKER_IGNORED_PREFIXES_TITLE = 'Ignored container patterns';
export const ALERT_THRESHOLDS_DOCKER_IGNORED_PREFIXES_DESCRIPTION =
'Containers whose name or ID matches any pattern below are skipped for container alerts. A bare entry matches as a prefix. Use * as a wildcard (runner-*, *-dev, *staging*). Enter one pattern per line. Matching is case-insensitive.';
export const ALERT_THRESHOLDS_DOCKER_IGNORED_PREFIXES_RESET_LABEL = 'Reset';
export const ALERT_THRESHOLDS_DOCKER_IGNORED_PREFIXES_PLACEHOLDER = 'runner-';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_TITLE = 'Swarm service alerts';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_DESCRIPTION =
'Pulse raises alerts when running replicas fall behind the desired count or a rollout gets stuck. Adjust the gap thresholds below or disable service alerts entirely.';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_TOGGLE_LABEL = 'Alerts';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_TOGGLE_DESCRIPTION =
'Toggle Swarm service replica monitoring';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_WARNING_GAP_LABEL = 'Warning gap %';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_WARNING_GAP_DESCRIPTION =
'Convert to warning when at least this percentage of replicas are missing.';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_CRITICAL_GAP_LABEL = 'Critical gap %';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_CRITICAL_GAP_DESCRIPTION =
'Raise a critical alert when the missing replica gap meets or exceeds this value.';
export const ALERT_THRESHOLDS_DOCKER_SERVICES_GAP_VALIDATION_MESSAGE =
'Critical gap must be greater than or equal to the warning gap when enabled.';
export const ALERT_THRESHOLDS_DOCKER_UPDATES_TITLE = 'Container update alerts';
export const ALERT_THRESHOLDS_DOCKER_UPDATES_DESCRIPTION =
'Pulse raises a warning when a container image update has been available for longer than the delay below. Turn this off to stop update alerts without affecting other container alerts.';
export const ALERT_THRESHOLDS_DOCKER_UPDATES_TOGGLE_LABEL = 'Alerts';
export const ALERT_THRESHOLDS_DOCKER_UPDATES_TOGGLE_DESCRIPTION =
'Toggle container image update alerts';
export const ALERT_THRESHOLDS_DOCKER_UPDATES_DELAY_LABEL = 'Delay (hours)';
export const ALERT_THRESHOLDS_DOCKER_UPDATES_DELAY_DESCRIPTION =
'Wait this many hours after an update is first seen before alerting.';
export const ALERT_THRESHOLDS_SECTION_TITLE_NODES = 'Virtualization Hosts';
export const ALERT_THRESHOLDS_SECTION_TITLE_PBS = 'PBS Servers';
export const ALERT_THRESHOLDS_SECTION_TITLE_GUESTS = 'VMs & Containers';
export const ALERT_THRESHOLDS_SECTION_TITLE_GUEST_DISKS = 'Guest Filesystems';
export const ALERT_THRESHOLDS_SECTION_TITLE_GUEST_FILTERING = 'VM and Container Filtering';
export const ALERT_THRESHOLDS_SECTION_TITLE_BACKUPS = 'Recovery';
export const ALERT_THRESHOLDS_SECTION_TITLE_SNAPSHOTS = 'Snapshot Age';
export const ALERT_THRESHOLDS_SECTION_TITLE_STORAGE = 'Storage Devices';
export const ALERT_THRESHOLDS_SECTION_TITLE_PMG = 'Mail Gateway Thresholds';
export const ALERT_THRESHOLDS_SECTION_TITLE_AGENTS = 'Machines';
export const ALERT_THRESHOLDS_SECTION_TITLE_AGENT_DISKS = 'Machine Disks';
export const ALERT_THRESHOLDS_SECTION_TITLE_AGENT_SENSORS = 'Machine Sensors';
export const ALERT_THRESHOLDS_SECTION_TITLE_DOCKER_HOSTS = 'Container Runtimes';
export const ALERT_THRESHOLDS_SECTION_TITLE_DOCKER_CONTAINERS = 'Containers';
export function getAlertThresholdsSearchPlaceholder() {
return ALERT_THRESHOLDS_SEARCH_PLACEHOLDER;
}
export function getAlertThresholdsHelpDismissLabel() {
return ALERT_THRESHOLDS_HELP_DISMISS_LABEL;
}
export function getAlertThresholdsHelpBanner() {
return {
title: 'How thresholds work',
toggleGuidance: 'Use the On/Off control beside a metric to enable or disable its alerts.',
inheritanceGuidance: 'Resources inherit their group defaults until you save a custom override.',
bulkGuidance: 'Select multiple resources to apply the same threshold changes in bulk.',
collapseHint: 'Resource groups start collapsed. Open only the group you need.',
} as const;
}
export function getAlertThresholdsOverridesPresentation() {
return {
title: ALERT_THRESHOLDS_OVERRIDES_TITLE,
description: ALERT_THRESHOLDS_OVERRIDES_DESCRIPTION,
} as const;
}
export function getAlertThresholdsOverrideCountLabel(count: number) {
return `${count} custom`;
}
export function getAlertThresholdsGuestFilterPresentation() {
return {
ignoredPrefixes: {
title: ALERT_THRESHOLDS_GUEST_IGNORED_PREFIXES_TITLE,
description: ALERT_THRESHOLDS_GUEST_IGNORED_PREFIXES_DESCRIPTION,
placeholder: ALERT_THRESHOLDS_GUEST_IGNORED_PREFIXES_PLACEHOLDER,
},
tagWhitelist: {
title: ALERT_THRESHOLDS_GUEST_TAG_WHITELIST_TITLE,
description: ALERT_THRESHOLDS_GUEST_TAG_WHITELIST_DESCRIPTION,
placeholder: ALERT_THRESHOLDS_GUEST_TAG_WHITELIST_PLACEHOLDER,
},
tagBlacklist: {
title: ALERT_THRESHOLDS_GUEST_TAG_BLACKLIST_TITLE,
description: ALERT_THRESHOLDS_GUEST_TAG_BLACKLIST_DESCRIPTION,
placeholder: ALERT_THRESHOLDS_GUEST_TAG_BLACKLIST_PLACEHOLDER,
},
} as const;
}
export function getAlertThresholdsBackupOrphanedPresentation() {
return {
title: ALERT_THRESHOLDS_BACKUP_ORPHANED_TITLE,
description: ALERT_THRESHOLDS_BACKUP_ORPHANED_DESCRIPTION,
toggleLabel: ALERT_THRESHOLDS_BACKUP_ORPHANED_TOGGLE_LABEL,
toggleDescription: ALERT_THRESHOLDS_BACKUP_ORPHANED_TOGGLE_DESCRIPTION,
ignoreVmidsLabel: ALERT_THRESHOLDS_BACKUP_IGNORE_VMIDS_LABEL,
ignoreVmidsDescription: ALERT_THRESHOLDS_BACKUP_IGNORE_VMIDS_DESCRIPTION,
ignoreVmidsPlaceholder: ALERT_THRESHOLDS_BACKUP_IGNORE_VMIDS_PLACEHOLDER,
} as const;
}
export function getAlertThresholdsDockerIgnoredPrefixesPresentation() {
return {
title: ALERT_THRESHOLDS_DOCKER_IGNORED_PREFIXES_TITLE,
description: ALERT_THRESHOLDS_DOCKER_IGNORED_PREFIXES_DESCRIPTION,
resetLabel: ALERT_THRESHOLDS_DOCKER_IGNORED_PREFIXES_RESET_LABEL,
placeholder: ALERT_THRESHOLDS_DOCKER_IGNORED_PREFIXES_PLACEHOLDER,
} as const;
}
export function getAlertThresholdsDockerServicePresentation() {
return {
title: ALERT_THRESHOLDS_DOCKER_SERVICES_TITLE,
description: ALERT_THRESHOLDS_DOCKER_SERVICES_DESCRIPTION,
toggleLabel: ALERT_THRESHOLDS_DOCKER_SERVICES_TOGGLE_LABEL,
toggleDescription: ALERT_THRESHOLDS_DOCKER_SERVICES_TOGGLE_DESCRIPTION,
warningGapLabel: ALERT_THRESHOLDS_DOCKER_SERVICES_WARNING_GAP_LABEL,
warningGapDescription: ALERT_THRESHOLDS_DOCKER_SERVICES_WARNING_GAP_DESCRIPTION,
criticalGapLabel: ALERT_THRESHOLDS_DOCKER_SERVICES_CRITICAL_GAP_LABEL,
criticalGapDescription: ALERT_THRESHOLDS_DOCKER_SERVICES_CRITICAL_GAP_DESCRIPTION,
gapValidationMessage: ALERT_THRESHOLDS_DOCKER_SERVICES_GAP_VALIDATION_MESSAGE,
} as const;
}
export function getAlertThresholdsDockerUpdatePresentation() {
return {
title: ALERT_THRESHOLDS_DOCKER_UPDATES_TITLE,
description: ALERT_THRESHOLDS_DOCKER_UPDATES_DESCRIPTION,
toggleLabel: ALERT_THRESHOLDS_DOCKER_UPDATES_TOGGLE_LABEL,
toggleDescription: ALERT_THRESHOLDS_DOCKER_UPDATES_TOGGLE_DESCRIPTION,
delayLabel: ALERT_THRESHOLDS_DOCKER_UPDATES_DELAY_LABEL,
delayDescription: ALERT_THRESHOLDS_DOCKER_UPDATES_DELAY_DESCRIPTION,
} as const;
}
export function getAlertThresholdsSectionTitles() {
return {
nodes: ALERT_THRESHOLDS_SECTION_TITLE_NODES,
pbs: ALERT_THRESHOLDS_SECTION_TITLE_PBS,
guests: ALERT_THRESHOLDS_SECTION_TITLE_GUESTS,
guestDisks: ALERT_THRESHOLDS_SECTION_TITLE_GUEST_DISKS,
guestFiltering: ALERT_THRESHOLDS_SECTION_TITLE_GUEST_FILTERING,
backups: ALERT_THRESHOLDS_SECTION_TITLE_BACKUPS,
snapshots: ALERT_THRESHOLDS_SECTION_TITLE_SNAPSHOTS,
storage: ALERT_THRESHOLDS_SECTION_TITLE_STORAGE,
pmg: ALERT_THRESHOLDS_SECTION_TITLE_PMG,
agents: ALERT_THRESHOLDS_SECTION_TITLE_AGENTS,
agentDisks: ALERT_THRESHOLDS_SECTION_TITLE_AGENT_DISKS,
agentSensors: ALERT_THRESHOLDS_SECTION_TITLE_AGENT_SENSORS,
dockerHosts: ALERT_THRESHOLDS_SECTION_TITLE_DOCKER_HOSTS,
dockerContainers: ALERT_THRESHOLDS_SECTION_TITLE_DOCKER_CONTAINERS,
} as const;
}