@oneuptime/common 11.0.1 → 11.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/Alert.ts +276 -0
- package/Models/DatabaseModels/AlertLabelRule.ts +38 -0
- package/Models/DatabaseModels/AlertOwnerRule.ts +38 -0
- package/Models/DatabaseModels/CephCluster.ts +964 -0
- package/Models/DatabaseModels/CephClusterLabelRule.ts +514 -0
- package/Models/DatabaseModels/CephClusterOwnerRule.ts +596 -0
- package/Models/DatabaseModels/CephClusterOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/CephClusterOwnerUser.ts +486 -0
- package/Models/DatabaseModels/CephResource.ts +809 -0
- package/Models/DatabaseModels/DockerSwarmCluster.ts +989 -0
- package/Models/DatabaseModels/DockerSwarmClusterLabelRule.ts +514 -0
- package/Models/DatabaseModels/DockerSwarmClusterOwnerRule.ts +596 -0
- package/Models/DatabaseModels/DockerSwarmClusterOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/DockerSwarmClusterOwnerUser.ts +486 -0
- package/Models/DatabaseModels/DockerSwarmResource.ts +750 -0
- package/Models/DatabaseModels/Host.ts +64 -0
- package/Models/DatabaseModels/Incident.ts +276 -0
- package/Models/DatabaseModels/IncidentLabelRule.ts +38 -0
- package/Models/DatabaseModels/IncidentOwnerRule.ts +38 -0
- package/Models/DatabaseModels/IncidentTemplate.ts +56 -0
- package/Models/DatabaseModels/Index.ts +48 -0
- package/Models/DatabaseModels/PodmanHost.ts +859 -0
- package/Models/DatabaseModels/PodmanHostLabelRule.ts +514 -0
- package/Models/DatabaseModels/PodmanHostOwnerRule.ts +596 -0
- package/Models/DatabaseModels/PodmanHostOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/PodmanHostOwnerUser.ts +486 -0
- package/Models/DatabaseModels/PodmanResource.ts +498 -0
- package/Models/DatabaseModels/ProxmoxCluster.ts +943 -0
- package/Models/DatabaseModels/ProxmoxClusterLabelRule.ts +514 -0
- package/Models/DatabaseModels/ProxmoxClusterOwnerRule.ts +596 -0
- package/Models/DatabaseModels/ProxmoxClusterOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/ProxmoxClusterOwnerUser.ts +486 -0
- package/Models/DatabaseModels/ProxmoxResource.ts +726 -0
- package/Models/DatabaseModels/ScheduledMaintenance.ts +220 -0
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.ts +38 -0
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.ts +38 -0
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.ts +56 -0
- package/Models/DatabaseModels/TelemetryException.ts +2 -0
- package/Server/API/BillingInvoiceAPI.ts +47 -7
- package/Server/API/CephResourceAPI.ts +134 -0
- package/Server/API/DashboardAPI.ts +135 -0
- package/Server/API/DockerSwarmResourceAPI.ts +137 -0
- package/Server/API/ProjectAPI.ts +15 -0
- package/Server/API/ProxmoxResourceAPI.ts +132 -0
- package/Server/API/ResellerPlanAPI.ts +17 -0
- package/Server/API/TelemetryAPI.ts +8 -1
- package/Server/Infrastructure/GlobalCache.ts +8 -2
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781500000000-AddProxmoxAndCephClusterTables.ts +163 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781587937032-MigrationName.ts +3199 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781600000000-AddProxmoxCephV2Columns.ts +211 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781600000001-AddProxmoxCephActivityAndRules.ts +590 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781700000000-AddProxmoxCephV3Columns.ts +64 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +10 -0
- package/Server/Infrastructure/Redis.ts +40 -12
- package/Server/Services/AlertLabelRuleEngineService.ts +29 -0
- package/Server/Services/AlertOwnerRuleEngineService.ts +67 -0
- package/Server/Services/AnalyticsDatabaseService.ts +1 -1
- package/Server/Services/BillingService.ts +109 -21
- package/Server/Services/CephClusterLabelRuleEngineService.ts +200 -0
- package/Server/Services/CephClusterLabelRuleService.ts +14 -0
- package/Server/Services/CephClusterOwnerRuleEngineService.ts +218 -0
- package/Server/Services/CephClusterOwnerRuleService.ts +14 -0
- package/Server/Services/CephClusterOwnerTeamService.ts +10 -0
- package/Server/Services/CephClusterOwnerUserService.ts +10 -0
- package/Server/Services/CephClusterService.ts +401 -0
- package/Server/Services/CephResourceService.ts +383 -0
- package/Server/Services/CloudResourceService.ts +11 -3
- package/Server/Services/DockerHostService.ts +11 -3
- package/Server/Services/DockerSwarmClusterLabelRuleEngineService.ts +214 -0
- package/Server/Services/DockerSwarmClusterLabelRuleService.ts +14 -0
- package/Server/Services/DockerSwarmClusterOwnerRuleEngineService.ts +232 -0
- package/Server/Services/DockerSwarmClusterOwnerRuleService.ts +14 -0
- package/Server/Services/DockerSwarmClusterOwnerTeamService.ts +10 -0
- package/Server/Services/DockerSwarmClusterOwnerUserService.ts +10 -0
- package/Server/Services/DockerSwarmClusterService.ts +404 -0
- package/Server/Services/DockerSwarmResourceService.ts +381 -0
- package/Server/Services/ExceptionAggregationService.ts +3 -0
- package/Server/Services/HostService.ts +11 -3
- package/Server/Services/IncidentLabelRuleEngineService.ts +27 -0
- package/Server/Services/IncidentOwnerRuleEngineService.ts +67 -0
- package/Server/Services/IncidentService.ts +11 -0
- package/Server/Services/Index.ts +38 -0
- package/Server/Services/KubernetesClusterService.ts +11 -3
- package/Server/Services/LogAggregationService.ts +3 -0
- package/Server/Services/MetricAggregationService.ts +3 -0
- package/Server/Services/OpenTelemetryIngestService.ts +73 -0
- package/Server/Services/PodmanHostLabelRuleEngineService.ts +198 -0
- package/Server/Services/PodmanHostLabelRuleService.ts +14 -0
- package/Server/Services/PodmanHostOwnerRuleEngineService.ts +216 -0
- package/Server/Services/PodmanHostOwnerRuleService.ts +14 -0
- package/Server/Services/PodmanHostOwnerTeamService.ts +10 -0
- package/Server/Services/PodmanHostOwnerUserService.ts +10 -0
- package/Server/Services/PodmanHostService.ts +368 -0
- package/Server/Services/PodmanResourceService.ts +310 -0
- package/Server/Services/ProxmoxClusterLabelRuleEngineService.ts +204 -0
- package/Server/Services/ProxmoxClusterLabelRuleService.ts +14 -0
- package/Server/Services/ProxmoxClusterOwnerRuleEngineService.ts +222 -0
- package/Server/Services/ProxmoxClusterOwnerRuleService.ts +14 -0
- package/Server/Services/ProxmoxClusterOwnerTeamService.ts +10 -0
- package/Server/Services/ProxmoxClusterOwnerUserService.ts +10 -0
- package/Server/Services/ProxmoxClusterService.ts +382 -0
- package/Server/Services/ProxmoxResourceService.ts +404 -0
- package/Server/Services/RumApplicationService.ts +11 -3
- package/Server/Services/ScheduledMaintenanceLabelRuleEngineService.ts +29 -0
- package/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.ts +67 -0
- package/Server/Services/ServerlessFunctionService.ts +11 -3
- package/Server/Services/TelemetryUsageBillingService.ts +59 -3
- package/Server/Services/TraceAggregationService.ts +3 -0
- package/Server/Types/AnalyticsDatabase/AggregateBy.ts +8 -23
- package/Server/Types/Database/Permissions/OwnerTableRegistry.ts +13 -0
- package/Server/Utils/Monitor/MonitorAlert.ts +55 -0
- package/Server/Utils/Monitor/MonitorClusterContext.ts +158 -0
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +650 -4
- package/Server/Utils/Monitor/MonitorIncident.ts +175 -7
- package/Server/Utils/Monitor/MonitorMaintenanceSuppression.ts +56 -6
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +6 -1
- package/Server/Utils/Monitor/SeriesResourceLabels.ts +59 -0
- package/Server/Utils/Profiling.ts +37 -2
- package/Server/Utils/Telemetry/EntityRegistry.ts +4 -0
- package/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.ts +1096 -0
- package/Server/Utils/Telemetry/ResourceFacetResolver.ts +49 -0
- package/Server/Utils/Telemetry/Telemetry.ts +10 -0
- package/Server/Utils/Telemetry/TelemetryEntity.ts +107 -0
- package/Server/Utils/Telemetry.ts +8 -19
- package/Tests/Server/API/BillingInvoiceAPI.test.ts +194 -0
- package/Tests/Server/API/ProjectAPI.test.ts +91 -0
- package/Tests/Server/API/ResellerPlanAPI.test.ts +207 -0
- package/Tests/Server/Infrastructure/GlobalCache.test.ts +100 -0
- package/Tests/Server/Services/BillingService.test.ts +323 -0
- package/Tests/Server/Services/CephResourceService.test.ts +264 -0
- package/Tests/Server/Services/ProxmoxResourceService.test.ts +326 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluator.test.ts +322 -0
- package/Tests/Server/Utils/Monitor/MonitorMaintenanceSuppression.test.ts +14 -0
- package/Tests/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.test.ts +879 -0
- package/Tests/Server/Utils/Telemetry/TelemetryEntity.test.ts +196 -0
- package/Tests/Types/DockerSwarm/DockerSwarmInventoryExtractor.test.ts +667 -0
- package/Tests/Types/Monitor/CephAlertTemplates.test.ts +1231 -0
- package/Tests/Types/Monitor/DockerSwarmAlertTemplates.test.ts +528 -0
- package/Tests/Types/Monitor/ProxmoxAlertTemplates.test.ts +732 -0
- package/Tests/Utils/Telemetry/EntityRelationship.test.ts +49 -0
- package/Tests/Utils/Telemetry/HeartbeatAvailability.test.ts +423 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.ts +74 -0
- package/Types/Dashboard/DashboardComponentType.ts +11 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +4 -0
- package/Types/Dashboard/DashboardComponents/DashboardCephOsdListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardCephPoolListComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerSwarmNodeListComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerSwarmServiceListComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanContainerListComponent.ts +16 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanHostListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanImageListComponent.ts +16 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanNetworkListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanVolumeListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent.ts +16 -0
- package/Types/Dashboard/DashboardTemplates.ts +640 -0
- package/Types/DockerSwarm/DockerSwarmInventoryExtractor.ts +452 -0
- package/Types/Icon/IconProp.ts +3 -0
- package/Types/Monitor/CephAlertTemplates.ts +1647 -0
- package/Types/Monitor/CephMetricCatalog.ts +409 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.ts +461 -0
- package/Types/Monitor/DockerSwarmMetricCatalog.ts +139 -0
- package/Types/Monitor/HostAlertTemplates.ts +455 -0
- package/Types/Monitor/HostMetricCatalog.ts +177 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.ts +65 -0
- package/Types/Monitor/MonitorStep.ts +163 -0
- package/Types/Monitor/MonitorStepCephMonitor.ts +57 -0
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.ts +74 -0
- package/Types/Monitor/MonitorStepHostMonitor.ts +30 -0
- package/Types/Monitor/MonitorStepPodmanMonitor.ts +38 -0
- package/Types/Monitor/MonitorStepProxmoxMonitor.ts +81 -0
- package/Types/Monitor/MonitorType.ts +71 -1
- package/Types/Monitor/PodmanAlertTemplates.ts +507 -0
- package/Types/Monitor/PodmanMetricCatalog.ts +226 -0
- package/Types/Monitor/ProxmoxAlertTemplates.ts +899 -0
- package/Types/Monitor/ProxmoxMetricCatalog.ts +382 -0
- package/Types/Permission.ts +1029 -104
- package/Types/Podman/PodmanInventoryExtractor.ts +343 -0
- package/Types/Telemetry/EntityType.ts +23 -0
- package/Types/Telemetry/ServiceType.ts +4 -0
- package/UI/Components/Icon/Icon.tsx +141 -0
- package/UI/Components/LogsViewer/LogsViewer.tsx +44 -1
- package/UI/Components/LogsViewer/components/LogsFacetSidebar.tsx +28 -0
- package/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.ts +15 -5
- package/UI/Utils/Telemetry/Telemetry.ts +16 -21
- package/UI/Utils/TelemetryService.ts +8 -3
- package/Utils/Dashboard/Components/DashboardCephOsdListComponent.ts +63 -0
- package/Utils/Dashboard/Components/DashboardCephPoolListComponent.ts +32 -0
- package/Utils/Dashboard/Components/DashboardCephResourceListShared.ts +61 -0
- package/Utils/Dashboard/Components/DashboardDockerSwarmNodeListComponent.ts +70 -0
- package/Utils/Dashboard/Components/DashboardDockerSwarmResourceListShared.ts +61 -0
- package/Utils/Dashboard/Components/DashboardDockerSwarmServiceListComponent.ts +71 -0
- package/Utils/Dashboard/Components/DashboardPodmanContainerListComponent.ts +100 -0
- package/Utils/Dashboard/Components/DashboardPodmanHostListComponent.ts +88 -0
- package/Utils/Dashboard/Components/DashboardPodmanImageListComponent.ts +97 -0
- package/Utils/Dashboard/Components/DashboardPodmanNetworkListComponent.ts +87 -0
- package/Utils/Dashboard/Components/DashboardPodmanVolumeListComponent.ts +87 -0
- package/Utils/Dashboard/Components/DashboardProxmoxGuestListComponent.ts +69 -0
- package/Utils/Dashboard/Components/DashboardProxmoxNodeListComponent.ts +55 -0
- package/Utils/Dashboard/Components/DashboardProxmoxResourceListShared.ts +61 -0
- package/Utils/Dashboard/Components/Index.ts +79 -0
- package/Utils/Telemetry/EntityKey.ts +53 -0
- package/Utils/Telemetry/EntityRelationship.ts +6 -0
- package/Utils/Telemetry/HeartbeatAvailability.ts +262 -0
- package/build/dist/Models/DatabaseModels/Alert.js +270 -0
- package/build/dist/Models/DatabaseModels/Alert.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertLabelRule.js +39 -0
- package/build/dist/Models/DatabaseModels/AlertLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertOwnerRule.js +39 -0
- package/build/dist/Models/DatabaseModels/AlertOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/CephCluster.js +992 -0
- package/build/dist/Models/DatabaseModels/CephCluster.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephClusterLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/CephClusterLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephResource.js +846 -0
- package/build/dist/Models/DatabaseModels/CephResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmCluster.js +1018 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmCluster.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmResource.js +787 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Host.js +63 -0
- package/build/dist/Models/DatabaseModels/Host.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Incident.js +270 -0
- package/build/dist/Models/DatabaseModels/Incident.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentLabelRule.js +39 -0
- package/build/dist/Models/DatabaseModels/IncidentLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentOwnerRule.js +39 -0
- package/build/dist/Models/DatabaseModels/IncidentOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentTemplate.js +54 -0
- package/build/dist/Models/DatabaseModels/IncidentTemplate.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +48 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/PodmanHost.js +885 -0
- package/build/dist/Models/DatabaseModels/PodmanHost.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHostLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/PodmanHostLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanResource.js +526 -0
- package/build/dist/Models/DatabaseModels/PodmanResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxCluster.js +967 -0
- package/build/dist/Models/DatabaseModels/ProxmoxCluster.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxResource.js +761 -0
- package/build/dist/Models/DatabaseModels/ProxmoxResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.js +216 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +39 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +39 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +54 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceTemplate.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetryException.js +2 -0
- package/build/dist/Models/DatabaseModels/TelemetryException.js.map +1 -1
- package/build/dist/Server/API/BillingInvoiceAPI.js +35 -5
- package/build/dist/Server/API/BillingInvoiceAPI.js.map +1 -1
- package/build/dist/Server/API/CephResourceAPI.js +98 -0
- package/build/dist/Server/API/CephResourceAPI.js.map +1 -0
- package/build/dist/Server/API/DashboardAPI.js +135 -0
- package/build/dist/Server/API/DashboardAPI.js.map +1 -1
- package/build/dist/Server/API/DockerSwarmResourceAPI.js +100 -0
- package/build/dist/Server/API/DockerSwarmResourceAPI.js.map +1 -0
- package/build/dist/Server/API/ProjectAPI.js +11 -0
- package/build/dist/Server/API/ProjectAPI.js.map +1 -1
- package/build/dist/Server/API/ProxmoxResourceAPI.js +95 -0
- package/build/dist/Server/API/ProxmoxResourceAPI.js.map +1 -0
- package/build/dist/Server/API/ResellerPlanAPI.js +17 -3
- package/build/dist/Server/API/ResellerPlanAPI.js.map +1 -1
- package/build/dist/Server/API/TelemetryAPI.js +8 -1
- package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
- package/build/dist/Server/Infrastructure/GlobalCache.js +7 -2
- package/build/dist/Server/Infrastructure/GlobalCache.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781500000000-AddProxmoxAndCephClusterTables.js +76 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781500000000-AddProxmoxAndCephClusterTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781587937032-MigrationName.js +1100 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781587937032-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781600000000-AddProxmoxCephV2Columns.js +108 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781600000000-AddProxmoxCephV2Columns.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781600000001-AddProxmoxCephActivityAndRules.js +253 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781600000001-AddProxmoxCephActivityAndRules.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781700000000-AddProxmoxCephV3Columns.js +43 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781700000000-AddProxmoxCephV3Columns.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +10 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/Redis.js +31 -8
- package/build/dist/Server/Infrastructure/Redis.js.map +1 -1
- package/build/dist/Server/Services/AlertLabelRuleEngineService.js +30 -4
- package/build/dist/Server/Services/AlertLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertOwnerRuleEngineService.js +62 -5
- package/build/dist/Server/Services/AlertOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js.map +1 -1
- package/build/dist/Server/Services/BillingService.js +85 -23
- package/build/dist/Server/Services/BillingService.js.map +1 -1
- package/build/dist/Server/Services/CephClusterLabelRuleEngineService.js +166 -0
- package/build/dist/Server/Services/CephClusterLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterLabelRuleService.js +13 -0
- package/build/dist/Server/Services/CephClusterLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterOwnerRuleEngineService.js +186 -0
- package/build/dist/Server/Services/CephClusterOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/CephClusterOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/CephClusterOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterOwnerUserService.js +9 -0
- package/build/dist/Server/Services/CephClusterOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterService.js +353 -0
- package/build/dist/Server/Services/CephClusterService.js.map +1 -0
- package/build/dist/Server/Services/CephResourceService.js +257 -0
- package/build/dist/Server/Services/CephResourceService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceService.js +10 -2
- package/build/dist/Server/Services/CloudResourceService.js.map +1 -1
- package/build/dist/Server/Services/DockerHostService.js +10 -2
- package/build/dist/Server/Services/DockerHostService.js.map +1 -1
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleEngineService.js +168 -0
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleService.js +13 -0
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleEngineService.js +188 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerUserService.js +9 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterService.js +353 -0
- package/build/dist/Server/Services/DockerSwarmClusterService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmResourceService.js +258 -0
- package/build/dist/Server/Services/DockerSwarmResourceService.js.map +1 -0
- package/build/dist/Server/Services/ExceptionAggregationService.js +3 -0
- package/build/dist/Server/Services/ExceptionAggregationService.js.map +1 -1
- package/build/dist/Server/Services/HostService.js +10 -2
- package/build/dist/Server/Services/HostService.js.map +1 -1
- package/build/dist/Server/Services/IncidentLabelRuleEngineService.js +28 -4
- package/build/dist/Server/Services/IncidentLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentOwnerRuleEngineService.js +62 -5
- package/build/dist/Server/Services/IncidentOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +8 -0
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +38 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/KubernetesClusterService.js +10 -2
- package/build/dist/Server/Services/KubernetesClusterService.js.map +1 -1
- package/build/dist/Server/Services/LogAggregationService.js +3 -0
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/MetricAggregationService.js +3 -0
- package/build/dist/Server/Services/MetricAggregationService.js.map +1 -1
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +69 -9
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- package/build/dist/Server/Services/PodmanHostLabelRuleEngineService.js +166 -0
- package/build/dist/Server/Services/PodmanHostLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostLabelRuleService.js +13 -0
- package/build/dist/Server/Services/PodmanHostLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostOwnerRuleEngineService.js +186 -0
- package/build/dist/Server/Services/PodmanHostOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/PodmanHostOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/PodmanHostOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostOwnerUserService.js +9 -0
- package/build/dist/Server/Services/PodmanHostOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostService.js +319 -0
- package/build/dist/Server/Services/PodmanHostService.js.map +1 -0
- package/build/dist/Server/Services/PodmanResourceService.js +196 -0
- package/build/dist/Server/Services/PodmanResourceService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleEngineService.js +166 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleService.js +13 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleEngineService.js +186 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerUserService.js +9 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterService.js +337 -0
- package/build/dist/Server/Services/ProxmoxClusterService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxResourceService.js +285 -0
- package/build/dist/Server/Services/ProxmoxResourceService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationService.js +10 -2
- package/build/dist/Server/Services/RumApplicationService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceLabelRuleEngineService.js +30 -4
- package/build/dist/Server/Services/ScheduledMaintenanceLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.js +62 -5
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ServerlessFunctionService.js +10 -2
- package/build/dist/Server/Services/ServerlessFunctionService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +43 -3
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/TraceAggregationService.js +3 -0
- package/build/dist/Server/Services/TraceAggregationService.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js +8 -25
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js +13 -0
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js +44 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js +118 -0
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +422 -4
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +137 -8
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js +32 -6
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +6 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js +39 -0
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js.map +1 -1
- package/build/dist/Server/Utils/Profiling.js +24 -3
- package/build/dist/Server/Utils/Profiling.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js +4 -0
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.js +854 -0
- package/build/dist/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js +30 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/Telemetry.js +6 -0
- package/build/dist/Server/Utils/Telemetry/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js +80 -0
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry.js +8 -10
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Types/BaseDatabase/AggregationIntervalUtil.js +69 -0
- package/build/dist/Types/BaseDatabase/AggregationIntervalUtil.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js +11 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +4 -0
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardCephOsdListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardCephOsdListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardCephPoolListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardCephPoolListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerSwarmNodeListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerSwarmNodeListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerSwarmServiceListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerSwarmServiceListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanContainerListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanContainerListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanHostListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanHostListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanImageListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanImageListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanNetworkListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanNetworkListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanVolumeListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanVolumeListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js +562 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -1
- package/build/dist/Types/DockerSwarm/DockerSwarmInventoryExtractor.js +359 -0
- package/build/dist/Types/DockerSwarm/DockerSwarmInventoryExtractor.js.map +1 -0
- package/build/dist/Types/Icon/IconProp.js +3 -0
- package/build/dist/Types/Icon/IconProp.js.map +1 -1
- package/build/dist/Types/Monitor/CephAlertTemplates.js +1379 -0
- package/build/dist/Types/Monitor/CephAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/CephMetricCatalog.js +353 -0
- package/build/dist/Types/Monitor/CephMetricCatalog.js.map +1 -0
- package/build/dist/Types/Monitor/DockerSwarmAlertTemplates.js +358 -0
- package/build/dist/Types/Monitor/DockerSwarmAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/DockerSwarmMetricCatalog.js +103 -0
- package/build/dist/Types/Monitor/DockerSwarmMetricCatalog.js.map +1 -0
- package/build/dist/Types/Monitor/HostAlertTemplates.js +365 -0
- package/build/dist/Types/Monitor/HostAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/HostMetricCatalog.js +138 -0
- package/build/dist/Types/Monitor/HostMetricCatalog.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStep.js +115 -0
- package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStepCephMonitor.js +34 -0
- package/build/dist/Types/Monitor/MonitorStepCephMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepDockerSwarmMonitor.js +21 -0
- package/build/dist/Types/Monitor/MonitorStepDockerSwarmMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepHostMonitor.js +20 -0
- package/build/dist/Types/Monitor/MonitorStepHostMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepPodmanMonitor.js +21 -0
- package/build/dist/Types/Monitor/MonitorStepPodmanMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepProxmoxMonitor.js +36 -0
- package/build/dist/Types/Monitor/MonitorStepProxmoxMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorType.js +66 -1
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- package/build/dist/Types/Monitor/PodmanAlertTemplates.js +410 -0
- package/build/dist/Types/Monitor/PodmanAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/PodmanMetricCatalog.js +192 -0
- package/build/dist/Types/Monitor/PodmanMetricCatalog.js.map +1 -0
- package/build/dist/Types/Monitor/ProxmoxAlertTemplates.js +743 -0
- package/build/dist/Types/Monitor/ProxmoxAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/ProxmoxMetricCatalog.js +320 -0
- package/build/dist/Types/Monitor/ProxmoxMetricCatalog.js.map +1 -0
- package/build/dist/Types/Permission.js +824 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Podman/PodmanInventoryExtractor.js +293 -0
- package/build/dist/Types/Podman/PodmanInventoryExtractor.js.map +1 -0
- package/build/dist/Types/Telemetry/EntityType.js +23 -0
- package/build/dist/Types/Telemetry/EntityType.js.map +1 -1
- package/build/dist/Types/Telemetry/ServiceType.js +4 -0
- package/build/dist/Types/Telemetry/ServiceType.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +49 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js +30 -2
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js +22 -0
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js +11 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js.map +1 -1
- package/build/dist/UI/Utils/Telemetry/Telemetry.js +11 -10
- package/build/dist/UI/Utils/Telemetry/Telemetry.js.map +1 -1
- package/build/dist/UI/Utils/TelemetryService.js +6 -2
- package/build/dist/UI/Utils/TelemetryService.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/DashboardCephOsdListComponent.js +50 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephOsdListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephPoolListComponent.js +27 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephPoolListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephResourceListShared.js +46 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephResourceListShared.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmNodeListComponent.js +55 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmNodeListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmResourceListShared.js +46 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmResourceListShared.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmServiceListComponent.js +55 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmServiceListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanContainerListComponent.js +77 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanContainerListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanHostListComponent.js +71 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanHostListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanImageListComponent.js +77 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanImageListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanNetworkListComponent.js +68 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanNetworkListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanVolumeListComponent.js +68 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanVolumeListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxGuestListComponent.js +55 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxGuestListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxNodeListComponent.js +42 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxNodeListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxResourceListShared.js +46 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxResourceListShared.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/Index.js +44 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/build/dist/Utils/Telemetry/EntityKey.js +41 -0
- package/build/dist/Utils/Telemetry/EntityKey.js.map +1 -1
- package/build/dist/Utils/Telemetry/EntityRelationship.js +3 -0
- package/build/dist/Utils/Telemetry/EntityRelationship.js.map +1 -1
- package/build/dist/Utils/Telemetry/HeartbeatAvailability.js +174 -0
- package/build/dist/Utils/Telemetry/HeartbeatAvailability.js.map +1 -0
- package/package.json +29 -21
|
@@ -54,6 +54,12 @@ import { DashboardClientUrl } from "../../EnvironmentConfig";
|
|
|
54
54
|
import MetricMonitorResponse, {
|
|
55
55
|
KubernetesAffectedResource,
|
|
56
56
|
KubernetesResourceBreakdown,
|
|
57
|
+
ProxmoxAffectedResource,
|
|
58
|
+
ProxmoxResourceBreakdown,
|
|
59
|
+
CephAffectedResource,
|
|
60
|
+
CephResourceBreakdown,
|
|
61
|
+
DockerSwarmAffectedResource,
|
|
62
|
+
DockerSwarmResourceBreakdown,
|
|
57
63
|
} from "../../../Types/Monitor/MetricMonitor/MetricMonitorResponse";
|
|
58
64
|
import MetricSeriesResult from "../../../Types/Monitor/MetricMonitor/MetricSeriesResult";
|
|
59
65
|
import MetricCriteriaContext, {
|
|
@@ -62,6 +68,11 @@ import MetricCriteriaContext, {
|
|
|
62
68
|
MetricComponentValue,
|
|
63
69
|
} from "../../../Types/Monitor/MetricMonitor/MetricCriteriaContext";
|
|
64
70
|
import MonitorStepDockerMonitor from "../../../Types/Monitor/MonitorStepDockerMonitor";
|
|
71
|
+
import MonitorStepHostMonitor from "../../../Types/Monitor/MonitorStepHostMonitor";
|
|
72
|
+
import MonitorStepPodmanMonitor from "../../../Types/Monitor/MonitorStepPodmanMonitor";
|
|
73
|
+
import MonitorStepProxmoxMonitor from "../../../Types/Monitor/MonitorStepProxmoxMonitor";
|
|
74
|
+
import MonitorStepCephMonitor from "../../../Types/Monitor/MonitorStepCephMonitor";
|
|
75
|
+
import MonitorStepDockerSwarmMonitor from "../../../Types/Monitor/MonitorStepDockerSwarmMonitor";
|
|
65
76
|
|
|
66
77
|
export default class MonitorCriteriaEvaluator {
|
|
67
78
|
public static async processMonitorStep(input: {
|
|
@@ -214,8 +225,8 @@ ${contextBlock}
|
|
|
214
225
|
}
|
|
215
226
|
|
|
216
227
|
/**
|
|
217
|
-
* For metric-backed monitors (Metrics/Kubernetes/Docker)
|
|
218
|
-
* per-series aggregated results, re-evaluate the matched criteria
|
|
228
|
+
* For metric-backed monitors (Metrics/Kubernetes/Docker/Proxmox/Ceph)
|
|
229
|
+
* with per-series aggregated results, re-evaluate the matched criteria
|
|
219
230
|
* once per series and return one entry per series that breached.
|
|
220
231
|
* Returns an empty array when the monitor is not series-aware or
|
|
221
232
|
* no series matched — the caller falls back to the single-incident
|
|
@@ -230,7 +241,12 @@ ${contextBlock}
|
|
|
230
241
|
if (
|
|
231
242
|
input.monitor.monitorType !== MonitorType.Metrics &&
|
|
232
243
|
input.monitor.monitorType !== MonitorType.Kubernetes &&
|
|
233
|
-
input.monitor.monitorType !== MonitorType.Docker
|
|
244
|
+
input.monitor.monitorType !== MonitorType.Docker &&
|
|
245
|
+
input.monitor.monitorType !== MonitorType.Host &&
|
|
246
|
+
input.monitor.monitorType !== MonitorType.Podman &&
|
|
247
|
+
input.monitor.monitorType !== MonitorType.DockerSwarm &&
|
|
248
|
+
input.monitor.monitorType !== MonitorType.Proxmox &&
|
|
249
|
+
input.monitor.monitorType !== MonitorType.Ceph
|
|
234
250
|
) {
|
|
235
251
|
return [];
|
|
236
252
|
}
|
|
@@ -676,7 +692,12 @@ ${contextBlock}
|
|
|
676
692
|
if (
|
|
677
693
|
input.monitor.monitorType === MonitorType.Metrics ||
|
|
678
694
|
input.monitor.monitorType === MonitorType.Kubernetes ||
|
|
679
|
-
input.monitor.monitorType === MonitorType.Docker
|
|
695
|
+
input.monitor.monitorType === MonitorType.Docker ||
|
|
696
|
+
input.monitor.monitorType === MonitorType.Host ||
|
|
697
|
+
input.monitor.monitorType === MonitorType.Podman ||
|
|
698
|
+
input.monitor.monitorType === MonitorType.DockerSwarm ||
|
|
699
|
+
input.monitor.monitorType === MonitorType.Proxmox ||
|
|
700
|
+
input.monitor.monitorType === MonitorType.Ceph
|
|
680
701
|
) {
|
|
681
702
|
const metricMonitorResult: string | null =
|
|
682
703
|
await MetricMonitorCriteria.isMonitorInstanceCriteriaFilterMet({
|
|
@@ -809,6 +830,31 @@ ${contextBlock}
|
|
|
809
830
|
return MonitorCriteriaEvaluator.buildDockerRootCauseContext(input);
|
|
810
831
|
}
|
|
811
832
|
|
|
833
|
+
// Handle Host monitors with resource context
|
|
834
|
+
if (input.monitor.monitorType === MonitorType.Host) {
|
|
835
|
+
return MonitorCriteriaEvaluator.buildHostRootCauseContext(input);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
// Handle Podman monitors with resource context
|
|
839
|
+
if (input.monitor.monitorType === MonitorType.Podman) {
|
|
840
|
+
return MonitorCriteriaEvaluator.buildPodmanRootCauseContext(input);
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
// Handle Proxmox monitors with resource context
|
|
844
|
+
if (input.monitor.monitorType === MonitorType.Proxmox) {
|
|
845
|
+
return MonitorCriteriaEvaluator.buildProxmoxRootCauseContext(input);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
// Handle Docker Swarm monitors with resource context
|
|
849
|
+
if (input.monitor.monitorType === MonitorType.DockerSwarm) {
|
|
850
|
+
return MonitorCriteriaEvaluator.buildDockerSwarmRootCauseContext(input);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
// Handle Ceph monitors with resource context
|
|
854
|
+
if (input.monitor.monitorType === MonitorType.Ceph) {
|
|
855
|
+
return MonitorCriteriaEvaluator.buildCephRootCauseContext(input);
|
|
856
|
+
}
|
|
857
|
+
|
|
812
858
|
// Handle generic Metric monitors with metric identity + breaching series
|
|
813
859
|
if (
|
|
814
860
|
input.monitor.monitorType === MonitorType.Metrics &&
|
|
@@ -1573,6 +1619,606 @@ ${contextBlock}
|
|
|
1573
1619
|
return sections.length > 0 ? sections.join("\n") : null;
|
|
1574
1620
|
}
|
|
1575
1621
|
|
|
1622
|
+
private static buildHostRootCauseContext(input: {
|
|
1623
|
+
dataToProcess: DataToProcess;
|
|
1624
|
+
monitorStep: MonitorStep;
|
|
1625
|
+
monitor: Monitor;
|
|
1626
|
+
}): string | null {
|
|
1627
|
+
const metricResponse: MetricMonitorResponse =
|
|
1628
|
+
input.dataToProcess as MetricMonitorResponse;
|
|
1629
|
+
|
|
1630
|
+
const sections: Array<string> = [];
|
|
1631
|
+
|
|
1632
|
+
// Host context
|
|
1633
|
+
const hostMonitor: MonitorStepHostMonitor | undefined =
|
|
1634
|
+
input.monitorStep.data?.hostMonitor;
|
|
1635
|
+
|
|
1636
|
+
if (hostMonitor) {
|
|
1637
|
+
const hostDetails: Array<string> = [];
|
|
1638
|
+
hostDetails.push(`- Host: ${hostMonitor.hostIdentifier || "Unknown"}`);
|
|
1639
|
+
|
|
1640
|
+
// Add metric name from the query config
|
|
1641
|
+
if (
|
|
1642
|
+
hostMonitor.metricViewConfig?.queryConfigs?.length > 0 &&
|
|
1643
|
+
hostMonitor.metricViewConfig.queryConfigs[0]
|
|
1644
|
+
) {
|
|
1645
|
+
const metricName: string = hostMonitor.metricViewConfig.queryConfigs[0]
|
|
1646
|
+
.metricQueryData?.filterData?.metricName as string;
|
|
1647
|
+
if (metricName) {
|
|
1648
|
+
hostDetails.push(`- Metric: \`${metricName}\``);
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
sections.push(`**Host Details**\n${hostDetails.join("\n")}`);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
// Metric results summary
|
|
1656
|
+
if (metricResponse.metricResult && metricResponse.metricResult.length > 0) {
|
|
1657
|
+
const resultDetails: Array<string> = [];
|
|
1658
|
+
|
|
1659
|
+
for (const result of metricResponse.metricResult) {
|
|
1660
|
+
if (result.data && result.data.length > 0) {
|
|
1661
|
+
resultDetails.push(
|
|
1662
|
+
`- ${result.data.length} metric data point(s) returned`,
|
|
1663
|
+
);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
if (resultDetails.length > 0) {
|
|
1668
|
+
sections.push(`\n\n**Metric Summary**\n${resultDetails.join("\n")}`);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
return sections.length > 0 ? sections.join("\n") : null;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
private static buildPodmanRootCauseContext(input: {
|
|
1676
|
+
dataToProcess: DataToProcess;
|
|
1677
|
+
monitorStep: MonitorStep;
|
|
1678
|
+
monitor: Monitor;
|
|
1679
|
+
}): string | null {
|
|
1680
|
+
const metricResponse: MetricMonitorResponse =
|
|
1681
|
+
input.dataToProcess as MetricMonitorResponse;
|
|
1682
|
+
|
|
1683
|
+
const sections: Array<string> = [];
|
|
1684
|
+
|
|
1685
|
+
// Podman host context
|
|
1686
|
+
const podmanMonitor: MonitorStepPodmanMonitor | undefined =
|
|
1687
|
+
input.monitorStep.data?.podmanMonitor;
|
|
1688
|
+
|
|
1689
|
+
if (podmanMonitor) {
|
|
1690
|
+
const hostDetails: Array<string> = [];
|
|
1691
|
+
hostDetails.push(`- Host: ${podmanMonitor.hostIdentifier || "Unknown"}`);
|
|
1692
|
+
|
|
1693
|
+
if (podmanMonitor.containerFilters?.containerName) {
|
|
1694
|
+
hostDetails.push(
|
|
1695
|
+
`- Container Name Filter: ${podmanMonitor.containerFilters.containerName}`,
|
|
1696
|
+
);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
if (podmanMonitor.containerFilters?.containerImage) {
|
|
1700
|
+
hostDetails.push(
|
|
1701
|
+
`- Container Image Filter: ${podmanMonitor.containerFilters.containerImage}`,
|
|
1702
|
+
);
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
// Add metric name from the query config
|
|
1706
|
+
if (
|
|
1707
|
+
podmanMonitor.metricViewConfig?.queryConfigs?.length > 0 &&
|
|
1708
|
+
podmanMonitor.metricViewConfig.queryConfigs[0]
|
|
1709
|
+
) {
|
|
1710
|
+
const metricName: string = podmanMonitor.metricViewConfig
|
|
1711
|
+
.queryConfigs[0].metricQueryData?.filterData?.metricName as string;
|
|
1712
|
+
if (metricName) {
|
|
1713
|
+
hostDetails.push(`- Metric: \`${metricName}\``);
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
sections.push(`**Podman Host Details**\n${hostDetails.join("\n")}`);
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
// Metric results summary
|
|
1721
|
+
if (metricResponse.metricResult && metricResponse.metricResult.length > 0) {
|
|
1722
|
+
const resultDetails: Array<string> = [];
|
|
1723
|
+
|
|
1724
|
+
for (const result of metricResponse.metricResult) {
|
|
1725
|
+
if (result.data && result.data.length > 0) {
|
|
1726
|
+
resultDetails.push(
|
|
1727
|
+
`- ${result.data.length} metric data point(s) returned`,
|
|
1728
|
+
);
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
if (resultDetails.length > 0) {
|
|
1733
|
+
sections.push(`\n\n**Metric Summary**\n${resultDetails.join("\n")}`);
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
return sections.length > 0 ? sections.join("\n") : null;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
private static buildProxmoxRootCauseContext(input: {
|
|
1741
|
+
dataToProcess: DataToProcess;
|
|
1742
|
+
monitorStep: MonitorStep;
|
|
1743
|
+
monitor: Monitor;
|
|
1744
|
+
}): string | null {
|
|
1745
|
+
const metricResponse: MetricMonitorResponse =
|
|
1746
|
+
input.dataToProcess as MetricMonitorResponse;
|
|
1747
|
+
|
|
1748
|
+
const breakdown: ProxmoxResourceBreakdown | undefined =
|
|
1749
|
+
metricResponse.proxmoxResourceBreakdown;
|
|
1750
|
+
|
|
1751
|
+
const sections: Array<string> = [];
|
|
1752
|
+
|
|
1753
|
+
// Proxmox cluster context
|
|
1754
|
+
const proxmoxMonitor: MonitorStepProxmoxMonitor | undefined =
|
|
1755
|
+
input.monitorStep.data?.proxmoxMonitor;
|
|
1756
|
+
|
|
1757
|
+
if (proxmoxMonitor || breakdown) {
|
|
1758
|
+
const clusterDetails: Array<string> = [];
|
|
1759
|
+
clusterDetails.push(
|
|
1760
|
+
`- Cluster: ${breakdown?.clusterName || proxmoxMonitor?.clusterIdentifier || "Unknown"}`,
|
|
1761
|
+
);
|
|
1762
|
+
|
|
1763
|
+
if (breakdown) {
|
|
1764
|
+
clusterDetails.push(
|
|
1765
|
+
`- Metric: ${breakdown.metricFriendlyName} (\`${breakdown.metricName}\`)`,
|
|
1766
|
+
);
|
|
1767
|
+
} else if (
|
|
1768
|
+
proxmoxMonitor &&
|
|
1769
|
+
proxmoxMonitor.metricViewConfig?.queryConfigs?.length > 0 &&
|
|
1770
|
+
proxmoxMonitor.metricViewConfig.queryConfigs[0]
|
|
1771
|
+
) {
|
|
1772
|
+
const metricName: string = proxmoxMonitor.metricViewConfig
|
|
1773
|
+
.queryConfigs[0].metricQueryData?.filterData?.metricName as string;
|
|
1774
|
+
if (metricName) {
|
|
1775
|
+
clusterDetails.push(`- Metric: \`${metricName}\``);
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
if (proxmoxMonitor?.resourceFilters?.scope) {
|
|
1780
|
+
clusterDetails.push(
|
|
1781
|
+
`- Scope Filter: ${proxmoxMonitor.resourceFilters.scope}`,
|
|
1782
|
+
);
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
if (proxmoxMonitor?.resourceFilters?.pveId) {
|
|
1786
|
+
clusterDetails.push(
|
|
1787
|
+
`- Resource ID Filter: ${proxmoxMonitor.resourceFilters.pveId}`,
|
|
1788
|
+
);
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
if (proxmoxMonitor?.resourceFilters?.nodeName) {
|
|
1792
|
+
clusterDetails.push(
|
|
1793
|
+
`- Node Filter: ${proxmoxMonitor.resourceFilters.nodeName}`,
|
|
1794
|
+
);
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
if (proxmoxMonitor?.resourceFilters?.guestId) {
|
|
1798
|
+
clusterDetails.push(
|
|
1799
|
+
`- Guest ID Filter: ${proxmoxMonitor.resourceFilters.guestId}`,
|
|
1800
|
+
);
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
sections.push(
|
|
1804
|
+
`**Proxmox Cluster Details**\n${clusterDetails.join("\n")}`,
|
|
1805
|
+
);
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
// Affected resources (Resource / Type / Node / Value)
|
|
1809
|
+
let renderedBreakdownTable: boolean = false;
|
|
1810
|
+
|
|
1811
|
+
if (breakdown && breakdown.affectedResources.length > 0) {
|
|
1812
|
+
/*
|
|
1813
|
+
* K8s-parity render: drop zero-value rows, worst (highest)
|
|
1814
|
+
* first, top 10. Note that for availability metrics (pve_up)
|
|
1815
|
+
* zero-valued rows ARE the down resources — those still drive
|
|
1816
|
+
* alerting through the per-series criteria evaluation; this
|
|
1817
|
+
* table is supplementary context only.
|
|
1818
|
+
*/
|
|
1819
|
+
const sortedResources: Array<ProxmoxAffectedResource> = [
|
|
1820
|
+
...breakdown.affectedResources,
|
|
1821
|
+
]
|
|
1822
|
+
.filter((r: ProxmoxAffectedResource) => {
|
|
1823
|
+
return r.metricValue > 0;
|
|
1824
|
+
})
|
|
1825
|
+
.sort((a: ProxmoxAffectedResource, b: ProxmoxAffectedResource) => {
|
|
1826
|
+
return b.metricValue - a.metricValue;
|
|
1827
|
+
});
|
|
1828
|
+
|
|
1829
|
+
/*
|
|
1830
|
+
* Skip the table when no row carries any identity label
|
|
1831
|
+
* (cluster-wide series) — it would add nothing.
|
|
1832
|
+
*/
|
|
1833
|
+
const hasIdentity: boolean = sortedResources.some(
|
|
1834
|
+
(r: ProxmoxAffectedResource) => {
|
|
1835
|
+
return r.resourceId || r.resourceName || r.nodeName;
|
|
1836
|
+
},
|
|
1837
|
+
);
|
|
1838
|
+
|
|
1839
|
+
if (sortedResources.length > 0 && hasIdentity) {
|
|
1840
|
+
const resourcesToShow: Array<ProxmoxAffectedResource> =
|
|
1841
|
+
sortedResources.slice(0, 10);
|
|
1842
|
+
|
|
1843
|
+
const resourceLines: Array<string> = [];
|
|
1844
|
+
resourceLines.push(`| Resource | Type | Node | Value |`);
|
|
1845
|
+
resourceLines.push(`| --- | --- | --- | --- |`);
|
|
1846
|
+
|
|
1847
|
+
for (const resource of resourcesToShow) {
|
|
1848
|
+
let resourceCell: string = "-";
|
|
1849
|
+
if (resource.resourceName && resource.resourceId) {
|
|
1850
|
+
resourceCell = `\`${resource.resourceName}\` (\`${resource.resourceId}\`)`;
|
|
1851
|
+
} else if (resource.resourceId) {
|
|
1852
|
+
resourceCell = `\`${resource.resourceId}\``;
|
|
1853
|
+
} else if (resource.resourceName) {
|
|
1854
|
+
resourceCell = `\`${resource.resourceName}\``;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
const typeCell: string =
|
|
1858
|
+
resource.resourceType || resource.scope || "-";
|
|
1859
|
+
const nodeCell: string = resource.nodeName
|
|
1860
|
+
? `\`${resource.nodeName}\``
|
|
1861
|
+
: "-";
|
|
1862
|
+
|
|
1863
|
+
resourceLines.push(
|
|
1864
|
+
`| ${resourceCell} | ${typeCell} | ${nodeCell} | **${resource.metricValue}** |`,
|
|
1865
|
+
);
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
if (sortedResources.length > 10) {
|
|
1869
|
+
resourceLines.push(
|
|
1870
|
+
`\n*... and ${sortedResources.length - 10} more affected resources*`,
|
|
1871
|
+
);
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
sections.push(
|
|
1875
|
+
`\n\n**Affected Resources** (${sortedResources.length} total)\n\n${resourceLines.join("\n")}`,
|
|
1876
|
+
);
|
|
1877
|
+
renderedBreakdownTable = true;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
// Metric results summary (fallback context when no table rendered)
|
|
1882
|
+
if (
|
|
1883
|
+
!renderedBreakdownTable &&
|
|
1884
|
+
metricResponse.metricResult &&
|
|
1885
|
+
metricResponse.metricResult.length > 0
|
|
1886
|
+
) {
|
|
1887
|
+
const resultDetails: Array<string> = [];
|
|
1888
|
+
|
|
1889
|
+
for (const result of metricResponse.metricResult) {
|
|
1890
|
+
if (result.data && result.data.length > 0) {
|
|
1891
|
+
resultDetails.push(
|
|
1892
|
+
`- ${result.data.length} metric data point(s) returned`,
|
|
1893
|
+
);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
if (resultDetails.length > 0) {
|
|
1898
|
+
sections.push(`\n\n**Metric Summary**\n${resultDetails.join("\n")}`);
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
return sections.length > 0 ? sections.join("\n") : null;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
private static buildDockerSwarmRootCauseContext(input: {
|
|
1906
|
+
dataToProcess: DataToProcess;
|
|
1907
|
+
monitorStep: MonitorStep;
|
|
1908
|
+
monitor: Monitor;
|
|
1909
|
+
}): string | null {
|
|
1910
|
+
const metricResponse: MetricMonitorResponse =
|
|
1911
|
+
input.dataToProcess as MetricMonitorResponse;
|
|
1912
|
+
|
|
1913
|
+
const breakdown: DockerSwarmResourceBreakdown | undefined =
|
|
1914
|
+
metricResponse.dockerSwarmResourceBreakdown;
|
|
1915
|
+
|
|
1916
|
+
const sections: Array<string> = [];
|
|
1917
|
+
|
|
1918
|
+
// Docker Swarm cluster context
|
|
1919
|
+
const dockerSwarmMonitor: MonitorStepDockerSwarmMonitor | undefined =
|
|
1920
|
+
input.monitorStep.data?.dockerSwarmMonitor;
|
|
1921
|
+
|
|
1922
|
+
if (dockerSwarmMonitor || breakdown) {
|
|
1923
|
+
const clusterDetails: Array<string> = [];
|
|
1924
|
+
clusterDetails.push(
|
|
1925
|
+
`- Cluster: ${breakdown?.clusterName || dockerSwarmMonitor?.clusterIdentifier || "Unknown"}`,
|
|
1926
|
+
);
|
|
1927
|
+
|
|
1928
|
+
if (breakdown) {
|
|
1929
|
+
clusterDetails.push(
|
|
1930
|
+
`- Metric: ${breakdown.metricFriendlyName} (\`${breakdown.metricName}\`)`,
|
|
1931
|
+
);
|
|
1932
|
+
} else if (
|
|
1933
|
+
dockerSwarmMonitor &&
|
|
1934
|
+
dockerSwarmMonitor.metricViewConfig?.queryConfigs?.length > 0 &&
|
|
1935
|
+
dockerSwarmMonitor.metricViewConfig.queryConfigs[0]
|
|
1936
|
+
) {
|
|
1937
|
+
const metricName: string = dockerSwarmMonitor.metricViewConfig
|
|
1938
|
+
.queryConfigs[0].metricQueryData?.filterData?.metricName as string;
|
|
1939
|
+
if (metricName) {
|
|
1940
|
+
clusterDetails.push(`- Metric: \`${metricName}\``);
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
if (dockerSwarmMonitor?.resourceFilters?.serviceName) {
|
|
1945
|
+
clusterDetails.push(
|
|
1946
|
+
`- Service Filter: ${dockerSwarmMonitor.resourceFilters.serviceName}`,
|
|
1947
|
+
);
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
if (dockerSwarmMonitor?.resourceFilters?.nodeName) {
|
|
1951
|
+
clusterDetails.push(
|
|
1952
|
+
`- Node Filter: ${dockerSwarmMonitor.resourceFilters.nodeName}`,
|
|
1953
|
+
);
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
if (dockerSwarmMonitor?.resourceFilters?.containerName) {
|
|
1957
|
+
clusterDetails.push(
|
|
1958
|
+
`- Container Name Filter: ${dockerSwarmMonitor.resourceFilters.containerName}`,
|
|
1959
|
+
);
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
if (dockerSwarmMonitor?.resourceFilters?.containerImage) {
|
|
1963
|
+
clusterDetails.push(
|
|
1964
|
+
`- Container Image Filter: ${dockerSwarmMonitor.resourceFilters.containerImage}`,
|
|
1965
|
+
);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
sections.push(
|
|
1969
|
+
`**Docker Swarm Cluster Details**\n${clusterDetails.join("\n")}`,
|
|
1970
|
+
);
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
// Affected resources (Task / Service / Node / Value)
|
|
1974
|
+
let renderedBreakdownTable: boolean = false;
|
|
1975
|
+
|
|
1976
|
+
if (breakdown && breakdown.affectedResources.length > 0) {
|
|
1977
|
+
/*
|
|
1978
|
+
* K8s/Proxmox-parity render: drop zero-value rows, worst (highest)
|
|
1979
|
+
* first, top 10. For the task-down template the breaching rows ARE
|
|
1980
|
+
* the zero-uptime ones — those still drive alerting through the
|
|
1981
|
+
* per-series criteria evaluation; this table is supplementary
|
|
1982
|
+
* context only.
|
|
1983
|
+
*/
|
|
1984
|
+
const sortedResources: Array<DockerSwarmAffectedResource> = [
|
|
1985
|
+
...breakdown.affectedResources,
|
|
1986
|
+
]
|
|
1987
|
+
.filter((r: DockerSwarmAffectedResource) => {
|
|
1988
|
+
return r.metricValue > 0;
|
|
1989
|
+
})
|
|
1990
|
+
.sort(
|
|
1991
|
+
(a: DockerSwarmAffectedResource, b: DockerSwarmAffectedResource) => {
|
|
1992
|
+
return b.metricValue - a.metricValue;
|
|
1993
|
+
},
|
|
1994
|
+
);
|
|
1995
|
+
|
|
1996
|
+
/*
|
|
1997
|
+
* Skip the table when no row carries any identity label
|
|
1998
|
+
* (cluster-wide series) — it would add nothing.
|
|
1999
|
+
*/
|
|
2000
|
+
const hasIdentity: boolean = sortedResources.some(
|
|
2001
|
+
(r: DockerSwarmAffectedResource) => {
|
|
2002
|
+
return r.containerName || r.serviceName || r.nodeName;
|
|
2003
|
+
},
|
|
2004
|
+
);
|
|
2005
|
+
|
|
2006
|
+
if (sortedResources.length > 0 && hasIdentity) {
|
|
2007
|
+
const resourcesToShow: Array<DockerSwarmAffectedResource> =
|
|
2008
|
+
sortedResources.slice(0, 10);
|
|
2009
|
+
|
|
2010
|
+
const resourceLines: Array<string> = [];
|
|
2011
|
+
resourceLines.push(`| Task / Container | Service | Node | Value |`);
|
|
2012
|
+
resourceLines.push(`| --- | --- | --- | --- |`);
|
|
2013
|
+
|
|
2014
|
+
for (const resource of resourcesToShow) {
|
|
2015
|
+
const taskCell: string = resource.containerName
|
|
2016
|
+
? `\`${resource.containerName}\``
|
|
2017
|
+
: "-";
|
|
2018
|
+
const serviceCell: string = resource.serviceName
|
|
2019
|
+
? `\`${resource.serviceName}\``
|
|
2020
|
+
: "-";
|
|
2021
|
+
const nodeCell: string = resource.nodeName
|
|
2022
|
+
? `\`${resource.nodeName}\``
|
|
2023
|
+
: "-";
|
|
2024
|
+
|
|
2025
|
+
resourceLines.push(
|
|
2026
|
+
`| ${taskCell} | ${serviceCell} | ${nodeCell} | **${resource.metricValue}** |`,
|
|
2027
|
+
);
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
if (sortedResources.length > 10) {
|
|
2031
|
+
resourceLines.push(
|
|
2032
|
+
`\n*... and ${sortedResources.length - 10} more affected tasks*`,
|
|
2033
|
+
);
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
sections.push(
|
|
2037
|
+
`\n\n**Affected Tasks** (${sortedResources.length} total)\n\n${resourceLines.join("\n")}`,
|
|
2038
|
+
);
|
|
2039
|
+
renderedBreakdownTable = true;
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
// Metric results summary (fallback context when no table rendered)
|
|
2044
|
+
if (
|
|
2045
|
+
!renderedBreakdownTable &&
|
|
2046
|
+
metricResponse.metricResult &&
|
|
2047
|
+
metricResponse.metricResult.length > 0
|
|
2048
|
+
) {
|
|
2049
|
+
const resultDetails: Array<string> = [];
|
|
2050
|
+
|
|
2051
|
+
for (const result of metricResponse.metricResult) {
|
|
2052
|
+
if (result.data && result.data.length > 0) {
|
|
2053
|
+
resultDetails.push(
|
|
2054
|
+
`- ${result.data.length} metric data point(s) returned`,
|
|
2055
|
+
);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
if (resultDetails.length > 0) {
|
|
2060
|
+
sections.push(`\n\n**Metric Summary**\n${resultDetails.join("\n")}`);
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
return sections.length > 0 ? sections.join("\n") : null;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
private static buildCephRootCauseContext(input: {
|
|
2068
|
+
dataToProcess: DataToProcess;
|
|
2069
|
+
monitorStep: MonitorStep;
|
|
2070
|
+
monitor: Monitor;
|
|
2071
|
+
}): string | null {
|
|
2072
|
+
const metricResponse: MetricMonitorResponse =
|
|
2073
|
+
input.dataToProcess as MetricMonitorResponse;
|
|
2074
|
+
|
|
2075
|
+
const breakdown: CephResourceBreakdown | undefined =
|
|
2076
|
+
metricResponse.cephResourceBreakdown;
|
|
2077
|
+
|
|
2078
|
+
const sections: Array<string> = [];
|
|
2079
|
+
|
|
2080
|
+
// Ceph cluster context
|
|
2081
|
+
const cephMonitor: MonitorStepCephMonitor | undefined =
|
|
2082
|
+
input.monitorStep.data?.cephMonitor;
|
|
2083
|
+
|
|
2084
|
+
if (cephMonitor || breakdown) {
|
|
2085
|
+
const clusterDetails: Array<string> = [];
|
|
2086
|
+
clusterDetails.push(
|
|
2087
|
+
`- Cluster: ${breakdown?.clusterName || cephMonitor?.clusterIdentifier || "Unknown"}`,
|
|
2088
|
+
);
|
|
2089
|
+
|
|
2090
|
+
if (breakdown) {
|
|
2091
|
+
clusterDetails.push(
|
|
2092
|
+
`- Metric: ${breakdown.metricFriendlyName} (\`${breakdown.metricName}\`)`,
|
|
2093
|
+
);
|
|
2094
|
+
} else if (
|
|
2095
|
+
cephMonitor &&
|
|
2096
|
+
cephMonitor.metricViewConfig?.queryConfigs?.length > 0 &&
|
|
2097
|
+
cephMonitor.metricViewConfig.queryConfigs[0]
|
|
2098
|
+
) {
|
|
2099
|
+
const metricName: string = cephMonitor.metricViewConfig.queryConfigs[0]
|
|
2100
|
+
.metricQueryData?.filterData?.metricName as string;
|
|
2101
|
+
if (metricName) {
|
|
2102
|
+
clusterDetails.push(`- Metric: \`${metricName}\``);
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
if (cephMonitor?.resourceFilters?.osdId) {
|
|
2107
|
+
clusterDetails.push(
|
|
2108
|
+
`- OSD Filter: ${cephMonitor.resourceFilters.osdId}`,
|
|
2109
|
+
);
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
if (cephMonitor?.resourceFilters?.poolId) {
|
|
2113
|
+
clusterDetails.push(
|
|
2114
|
+
`- Pool ID Filter: ${cephMonitor.resourceFilters.poolId}`,
|
|
2115
|
+
);
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
sections.push(`**Ceph Cluster Details**\n${clusterDetails.join("\n")}`);
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
// Affected resources (Daemon / Pool / Host / Value)
|
|
2122
|
+
let renderedBreakdownTable: boolean = false;
|
|
2123
|
+
|
|
2124
|
+
if (breakdown && breakdown.affectedResources.length > 0) {
|
|
2125
|
+
/*
|
|
2126
|
+
* K8s-parity render: drop zero-value rows, worst (highest)
|
|
2127
|
+
* first, top 10. Note that for availability metrics
|
|
2128
|
+
* (ceph_osd_up / ceph_osd_in / ceph_mon_quorum_status)
|
|
2129
|
+
* zero-valued rows ARE the down resources — those still drive
|
|
2130
|
+
* alerting through the per-series criteria evaluation; this
|
|
2131
|
+
* table is supplementary context only.
|
|
2132
|
+
*/
|
|
2133
|
+
const sortedResources: Array<CephAffectedResource> = [
|
|
2134
|
+
...breakdown.affectedResources,
|
|
2135
|
+
]
|
|
2136
|
+
.filter((r: CephAffectedResource) => {
|
|
2137
|
+
return r.metricValue > 0;
|
|
2138
|
+
})
|
|
2139
|
+
.sort((a: CephAffectedResource, b: CephAffectedResource) => {
|
|
2140
|
+
return b.metricValue - a.metricValue;
|
|
2141
|
+
});
|
|
2142
|
+
|
|
2143
|
+
/*
|
|
2144
|
+
* Skip the table when no row carries any identity label
|
|
2145
|
+
* (cluster-wide series like ceph_health_status) — it would add
|
|
2146
|
+
* nothing.
|
|
2147
|
+
*/
|
|
2148
|
+
const hasIdentity: boolean = sortedResources.some(
|
|
2149
|
+
(r: CephAffectedResource) => {
|
|
2150
|
+
return r.daemon || r.poolId || r.poolName || r.hostname;
|
|
2151
|
+
},
|
|
2152
|
+
);
|
|
2153
|
+
|
|
2154
|
+
if (sortedResources.length > 0 && hasIdentity) {
|
|
2155
|
+
const resourcesToShow: Array<CephAffectedResource> =
|
|
2156
|
+
sortedResources.slice(0, 10);
|
|
2157
|
+
|
|
2158
|
+
const resourceLines: Array<string> = [];
|
|
2159
|
+
resourceLines.push(`| Daemon | Pool | Host | Value |`);
|
|
2160
|
+
resourceLines.push(`| --- | --- | --- | --- |`);
|
|
2161
|
+
|
|
2162
|
+
for (const resource of resourcesToShow) {
|
|
2163
|
+
const daemonCell: string = resource.daemon
|
|
2164
|
+
? `\`${resource.daemon}\``
|
|
2165
|
+
: "-";
|
|
2166
|
+
|
|
2167
|
+
let poolCell: string = "-";
|
|
2168
|
+
if (resource.poolName && resource.poolId) {
|
|
2169
|
+
poolCell = `\`${resource.poolName}\` (\`${resource.poolId}\`)`;
|
|
2170
|
+
} else if (resource.poolName) {
|
|
2171
|
+
poolCell = `\`${resource.poolName}\``;
|
|
2172
|
+
} else if (resource.poolId) {
|
|
2173
|
+
poolCell = `\`${resource.poolId}\``;
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
const hostCell: string = resource.hostname
|
|
2177
|
+
? `\`${resource.hostname}\``
|
|
2178
|
+
: "-";
|
|
2179
|
+
|
|
2180
|
+
resourceLines.push(
|
|
2181
|
+
`| ${daemonCell} | ${poolCell} | ${hostCell} | **${resource.metricValue}** |`,
|
|
2182
|
+
);
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
if (sortedResources.length > 10) {
|
|
2186
|
+
resourceLines.push(
|
|
2187
|
+
`\n*... and ${sortedResources.length - 10} more affected resources*`,
|
|
2188
|
+
);
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
sections.push(
|
|
2192
|
+
`\n\n**Affected Resources** (${sortedResources.length} total)\n\n${resourceLines.join("\n")}`,
|
|
2193
|
+
);
|
|
2194
|
+
renderedBreakdownTable = true;
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
// Metric results summary (fallback context when no table rendered)
|
|
2199
|
+
if (
|
|
2200
|
+
!renderedBreakdownTable &&
|
|
2201
|
+
metricResponse.metricResult &&
|
|
2202
|
+
metricResponse.metricResult.length > 0
|
|
2203
|
+
) {
|
|
2204
|
+
const resultDetails: Array<string> = [];
|
|
2205
|
+
|
|
2206
|
+
for (const result of metricResponse.metricResult) {
|
|
2207
|
+
if (result.data && result.data.length > 0) {
|
|
2208
|
+
resultDetails.push(
|
|
2209
|
+
`- ${result.data.length} metric data point(s) returned`,
|
|
2210
|
+
);
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
if (resultDetails.length > 0) {
|
|
2215
|
+
sections.push(`\n\n**Metric Summary**\n${resultDetails.join("\n")}`);
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
return sections.length > 0 ? sections.join("\n") : null;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
1576
2222
|
private static buildKubernetesRootCauseAnalysis(input: {
|
|
1577
2223
|
breakdown: KubernetesResourceBreakdown;
|
|
1578
2224
|
topResource: KubernetesAffectedResource;
|