@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
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import OneUptimeDate from "../Date";
|
|
2
|
+
import { JSONObject } from "../JSON";
|
|
3
|
+
import { ParsedPodmanResource } from "../../Server/Services/PodmanResourceService";
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* ------------------------------------------------------------------
|
|
7
|
+
* PodmanInventoryExtractor
|
|
8
|
+
* ------------------------------------------------------------------
|
|
9
|
+
*
|
|
10
|
+
* Parses a single inventory log record emitted by the OneUptime
|
|
11
|
+
* Podman Agent's snapshot script. The script polls the local Podman
|
|
12
|
+
* daemon every 5 minutes for containers / images / networks /
|
|
13
|
+
* volumes and emits one JSON object per line into a log file that
|
|
14
|
+
* the OTel filelog receiver forwards as an OTLP log.
|
|
15
|
+
*
|
|
16
|
+
* The agreed wire format is a JSON envelope:
|
|
17
|
+
*
|
|
18
|
+
* {
|
|
19
|
+
* "kind": "Container" | "Image" | "Network" | "Volume",
|
|
20
|
+
* "data": { ...native podman payload... }
|
|
21
|
+
* }
|
|
22
|
+
*
|
|
23
|
+
* The kind discriminator is set as a log record attribute by the
|
|
24
|
+
* agent's filelog operator chain, but we also keep it inside the
|
|
25
|
+
* envelope so the parser can sanity-check.
|
|
26
|
+
*
|
|
27
|
+
* Each kind has a small dedicated parser that pulls out the fields
|
|
28
|
+
* we promote to first-class columns on `PodmanResource` (name,
|
|
29
|
+
* containerId, imageName, state, labels, creation timestamp). The
|
|
30
|
+
* full payload is *not* persisted — it lives on the original log
|
|
31
|
+
* record in ClickHouse if a user ever needs the raw blob.
|
|
32
|
+
*
|
|
33
|
+
* ------------------------------------------------------------------
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
export const INVENTORY_KIND_ATTRIBUTE: string = "oneuptime.podman.kind";
|
|
37
|
+
|
|
38
|
+
export const INVENTORIED_PODMAN_KINDS: ReadonlyArray<string> = [
|
|
39
|
+
"Container",
|
|
40
|
+
"Image",
|
|
41
|
+
"Network",
|
|
42
|
+
"Volume",
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
const INVENTORIED_KIND_SET: Set<string> = new Set(
|
|
46
|
+
INVENTORIED_PODMAN_KINDS.map((k: string) => {
|
|
47
|
+
return k.toLowerCase();
|
|
48
|
+
}),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export function isInventoriedPodmanKind(kind: string): boolean {
|
|
52
|
+
return INVENTORIED_KIND_SET.has(kind.toLowerCase());
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* Map a kind in any common form (lowercase plural, lowercase
|
|
57
|
+
* singular, or PascalCase) to the canonical PascalCase kind we store
|
|
58
|
+
* in the database. Returns null for anything we don't model.
|
|
59
|
+
*/
|
|
60
|
+
export function canonicalPodmanKind(raw: string): string | null {
|
|
61
|
+
const trimmed: string = (raw || "").trim().toLowerCase();
|
|
62
|
+
if (!trimmed) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
const map: Record<string, string> = {
|
|
66
|
+
container: "Container",
|
|
67
|
+
containers: "Container",
|
|
68
|
+
image: "Image",
|
|
69
|
+
images: "Image",
|
|
70
|
+
network: "Network",
|
|
71
|
+
networks: "Network",
|
|
72
|
+
volume: "Volume",
|
|
73
|
+
volumes: "Volume",
|
|
74
|
+
};
|
|
75
|
+
return map[trimmed] || null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function parseLogBody(logBody: string): JSONObject | null {
|
|
79
|
+
try {
|
|
80
|
+
const parsed: unknown = JSON.parse(logBody);
|
|
81
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
82
|
+
return parsed as JSONObject;
|
|
83
|
+
}
|
|
84
|
+
return null;
|
|
85
|
+
} catch {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function readString(obj: JSONObject, key: string): string | null {
|
|
91
|
+
const v: unknown = obj[key];
|
|
92
|
+
if (typeof v === "string" && v.trim().length > 0) {
|
|
93
|
+
return v.trim();
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function readJSONObject(obj: JSONObject, key: string): JSONObject | null {
|
|
99
|
+
const v: unknown = obj[key];
|
|
100
|
+
if (v && typeof v === "object" && !Array.isArray(v)) {
|
|
101
|
+
return v as JSONObject;
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function parseTimestamp(raw: string | null): Date | null {
|
|
107
|
+
if (!raw) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
try {
|
|
111
|
+
const d: Date = OneUptimeDate.fromString(raw);
|
|
112
|
+
if (isNaN(d.getTime())) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
return d;
|
|
116
|
+
} catch {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/*
|
|
122
|
+
* Container shape emitted by `podman container ls --format json` plus
|
|
123
|
+
* a few enrichments the agent script adds:
|
|
124
|
+
* { Id, Names, Image, State, Status, CreatedAt, Labels }
|
|
125
|
+
*
|
|
126
|
+
* Names from the Podman CLI is a slash-prefixed comma-joined string
|
|
127
|
+
* ("/web,/web-1"). We strip the leading slash and take the first
|
|
128
|
+
* entry — that's what `docker_stats` reports as `container.name` in
|
|
129
|
+
* metric attributes, so the row keys stay consistent across paths.
|
|
130
|
+
*/
|
|
131
|
+
function parseContainer(
|
|
132
|
+
data: JSONObject,
|
|
133
|
+
lastSeenAt: Date,
|
|
134
|
+
): ParsedPodmanResource | null {
|
|
135
|
+
const rawNames: string | null = readString(data, "Names");
|
|
136
|
+
const rawName: string | null = readString(data, "Name");
|
|
137
|
+
const namesField: string = rawNames || rawName || "";
|
|
138
|
+
const firstName: string = namesField
|
|
139
|
+
.split(",")
|
|
140
|
+
.map((n: string) => {
|
|
141
|
+
return n.trim().replace(/^\//, "");
|
|
142
|
+
})
|
|
143
|
+
.filter((n: string) => {
|
|
144
|
+
return n.length > 0;
|
|
145
|
+
})[0]!;
|
|
146
|
+
|
|
147
|
+
if (!firstName) {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const idRaw: string | null = readString(data, "Id");
|
|
152
|
+
const containerId: string | null = idRaw ? idRaw.substring(0, 12) : null;
|
|
153
|
+
const imageName: string | null = readString(data, "Image");
|
|
154
|
+
const state: string | null = readString(data, "State");
|
|
155
|
+
const labels: JSONObject | null = readJSONObject(data, "Labels");
|
|
156
|
+
const created: Date | null = parseTimestamp(readString(data, "CreatedAt"));
|
|
157
|
+
|
|
158
|
+
return {
|
|
159
|
+
kind: "Container",
|
|
160
|
+
name: firstName,
|
|
161
|
+
containerId,
|
|
162
|
+
imageName,
|
|
163
|
+
state: state ? state.toLowerCase() : null,
|
|
164
|
+
labels,
|
|
165
|
+
resourceCreationTimestamp: created,
|
|
166
|
+
lastSeenAt,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/*
|
|
171
|
+
* Image shape from `podman image ls --format json`:
|
|
172
|
+
* { ID, Repository, Tag, CreatedAt, Labels }
|
|
173
|
+
*
|
|
174
|
+
* Name = Repository:Tag (matches what container.image.name emits).
|
|
175
|
+
* Skip dangling images (Repository=<none> with no tag) — they would
|
|
176
|
+
* collide on the unique key and are noise in a list view.
|
|
177
|
+
*/
|
|
178
|
+
function parseImage(
|
|
179
|
+
data: JSONObject,
|
|
180
|
+
lastSeenAt: Date,
|
|
181
|
+
): ParsedPodmanResource | null {
|
|
182
|
+
const repository: string | null = readString(data, "Repository");
|
|
183
|
+
const tag: string | null = readString(data, "Tag");
|
|
184
|
+
const explicitName: string | null = readString(data, "Name");
|
|
185
|
+
|
|
186
|
+
let name: string | null = explicitName;
|
|
187
|
+
if (!name && repository && repository !== "<none>") {
|
|
188
|
+
name = tag && tag !== "<none>" ? `${repository}:${tag}` : repository;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (!name) {
|
|
192
|
+
return null;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const idRaw: string | null = readString(data, "ID") || readString(data, "Id");
|
|
196
|
+
const containerId: string | null = idRaw
|
|
197
|
+
? idRaw.replace(/^sha256:/, "").substring(0, 12)
|
|
198
|
+
: null;
|
|
199
|
+
const labels: JSONObject | null = readJSONObject(data, "Labels");
|
|
200
|
+
const created: Date | null = parseTimestamp(readString(data, "CreatedAt"));
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
kind: "Image",
|
|
204
|
+
name,
|
|
205
|
+
containerId,
|
|
206
|
+
imageName: null,
|
|
207
|
+
state: null,
|
|
208
|
+
labels,
|
|
209
|
+
resourceCreationTimestamp: created,
|
|
210
|
+
lastSeenAt,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/*
|
|
215
|
+
* Network shape from `podman network ls --format json`:
|
|
216
|
+
* { ID, Name, Driver, Scope, CreatedAt, Labels }
|
|
217
|
+
*/
|
|
218
|
+
function parseNetwork(
|
|
219
|
+
data: JSONObject,
|
|
220
|
+
lastSeenAt: Date,
|
|
221
|
+
): ParsedPodmanResource | null {
|
|
222
|
+
const name: string | null = readString(data, "Name");
|
|
223
|
+
if (!name) {
|
|
224
|
+
return null;
|
|
225
|
+
}
|
|
226
|
+
const idRaw: string | null = readString(data, "ID") || readString(data, "Id");
|
|
227
|
+
const driver: string | null = readString(data, "Driver");
|
|
228
|
+
const scope: string | null = readString(data, "Scope");
|
|
229
|
+
const labels: JSONObject | null = readJSONObject(data, "Labels");
|
|
230
|
+
const created: Date | null = parseTimestamp(readString(data, "CreatedAt"));
|
|
231
|
+
|
|
232
|
+
/*
|
|
233
|
+
* Driver and scope are surfaced in the State column in the widget
|
|
234
|
+
* (e.g. "bridge / local"). Encoded as "driver/scope" so we don't
|
|
235
|
+
* need a new column on the table.
|
|
236
|
+
*/
|
|
237
|
+
const stateParts: Array<string> = [];
|
|
238
|
+
if (driver) {
|
|
239
|
+
stateParts.push(driver);
|
|
240
|
+
}
|
|
241
|
+
if (scope) {
|
|
242
|
+
stateParts.push(scope);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
return {
|
|
246
|
+
kind: "Network",
|
|
247
|
+
name,
|
|
248
|
+
containerId: idRaw ? idRaw.substring(0, 12) : null,
|
|
249
|
+
imageName: null,
|
|
250
|
+
state: stateParts.length > 0 ? stateParts.join("/") : null,
|
|
251
|
+
labels,
|
|
252
|
+
resourceCreationTimestamp: created,
|
|
253
|
+
lastSeenAt,
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/*
|
|
258
|
+
* Volume shape from `podman volume ls --format json`:
|
|
259
|
+
* { Name, Driver, Mountpoint, Scope, Labels, CreatedAt }
|
|
260
|
+
*/
|
|
261
|
+
function parseVolume(
|
|
262
|
+
data: JSONObject,
|
|
263
|
+
lastSeenAt: Date,
|
|
264
|
+
): ParsedPodmanResource | null {
|
|
265
|
+
const name: string | null = readString(data, "Name");
|
|
266
|
+
if (!name) {
|
|
267
|
+
return null;
|
|
268
|
+
}
|
|
269
|
+
const driver: string | null = readString(data, "Driver");
|
|
270
|
+
const scope: string | null = readString(data, "Scope");
|
|
271
|
+
const labels: JSONObject | null = readJSONObject(data, "Labels");
|
|
272
|
+
const created: Date | null = parseTimestamp(readString(data, "CreatedAt"));
|
|
273
|
+
|
|
274
|
+
const stateParts: Array<string> = [];
|
|
275
|
+
if (driver) {
|
|
276
|
+
stateParts.push(driver);
|
|
277
|
+
}
|
|
278
|
+
if (scope) {
|
|
279
|
+
stateParts.push(scope);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return {
|
|
283
|
+
kind: "Volume",
|
|
284
|
+
name,
|
|
285
|
+
containerId: null,
|
|
286
|
+
imageName: null,
|
|
287
|
+
state: stateParts.length > 0 ? stateParts.join("/") : null,
|
|
288
|
+
labels,
|
|
289
|
+
resourceCreationTimestamp: created,
|
|
290
|
+
lastSeenAt,
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export interface ExtractedPodmanInventoryRecord {
|
|
295
|
+
resource: ParsedPodmanResource;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Parse a single inventory log line. Returns null when the body is
|
|
300
|
+
* malformed or the kind is not modeled — callers should swallow nulls
|
|
301
|
+
* silently rather than fail the whole batch.
|
|
302
|
+
*/
|
|
303
|
+
export function extractPodmanInventoryResource(data: {
|
|
304
|
+
kind: string;
|
|
305
|
+
logBody: string;
|
|
306
|
+
lastSeenAt: Date;
|
|
307
|
+
}): ExtractedPodmanInventoryRecord | null {
|
|
308
|
+
const canonical: string | null = canonicalPodmanKind(data.kind);
|
|
309
|
+
if (!canonical) {
|
|
310
|
+
return null;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
const body: JSONObject | null = parseLogBody(data.logBody);
|
|
314
|
+
if (!body) {
|
|
315
|
+
return null;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/*
|
|
319
|
+
* The agent wraps the native podman payload in `{ kind, data }`.
|
|
320
|
+
* Older snapshot lines or test inputs may be the raw payload — we
|
|
321
|
+
* accept either by pulling `data` if present, else using the body
|
|
322
|
+
* directly.
|
|
323
|
+
*/
|
|
324
|
+
const inner: JSONObject =
|
|
325
|
+
(readJSONObject(body, "data") as JSONObject) || body;
|
|
326
|
+
|
|
327
|
+
let parsed: ParsedPodmanResource | null = null;
|
|
328
|
+
if (canonical === "Container") {
|
|
329
|
+
parsed = parseContainer(inner, data.lastSeenAt);
|
|
330
|
+
} else if (canonical === "Image") {
|
|
331
|
+
parsed = parseImage(inner, data.lastSeenAt);
|
|
332
|
+
} else if (canonical === "Network") {
|
|
333
|
+
parsed = parseNetwork(inner, data.lastSeenAt);
|
|
334
|
+
} else if (canonical === "Volume") {
|
|
335
|
+
parsed = parseVolume(inner, data.lastSeenAt);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (!parsed) {
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
return { resource: parsed };
|
|
343
|
+
}
|
|
@@ -27,6 +27,29 @@ enum EntityType {
|
|
|
27
27
|
KubernetesNode = "k8s.node",
|
|
28
28
|
KubernetesPod = "k8s.pod",
|
|
29
29
|
KubernetesDeployment = "k8s.deployment",
|
|
30
|
+
/*
|
|
31
|
+
* Proxmox VE / Ceph types are OneUptime-defined (no upstream semconv
|
|
32
|
+
* exists for either) but follow the same dotted naming convention. The
|
|
33
|
+
* identifying attributes (`proxmox.cluster.name`, `proxmox.node.name`,
|
|
34
|
+
* `proxmox.guest.vmid`, `ceph.cluster.name`) are stamped by our agent
|
|
35
|
+
* collector configs — see Internal/Roadmap/ProxmoxCephProducts.md §1.
|
|
36
|
+
*/
|
|
37
|
+
ProxmoxCluster = "proxmox.cluster",
|
|
38
|
+
ProxmoxNode = "proxmox.node",
|
|
39
|
+
ProxmoxGuest = "proxmox.guest",
|
|
40
|
+
CephCluster = "ceph.cluster",
|
|
41
|
+
/*
|
|
42
|
+
* Docker Swarm types are OneUptime-defined (no upstream semconv
|
|
43
|
+
* exists) but follow the same dotted naming convention. The
|
|
44
|
+
* identifying attributes (`docker.swarm.cluster.name`,
|
|
45
|
+
* `docker.swarm.node.id`, `docker.swarm.service.id`) are stamped by
|
|
46
|
+
* the OneUptime Docker Swarm agent's collector config / inventory
|
|
47
|
+
* poller.
|
|
48
|
+
*/
|
|
49
|
+
DockerSwarmCluster = "docker.swarm.cluster",
|
|
50
|
+
DockerSwarmNode = "docker.swarm.node",
|
|
51
|
+
DockerSwarmService = "docker.swarm.service",
|
|
52
|
+
DockerSwarmTask = "docker.swarm.task",
|
|
30
53
|
TelemetrySdk = "telemetry.sdk",
|
|
31
54
|
}
|
|
32
55
|
|
|
@@ -13,7 +13,11 @@ enum ServiceType {
|
|
|
13
13
|
Incident = "Incident",
|
|
14
14
|
Host = "Host",
|
|
15
15
|
DockerHost = "DockerHost",
|
|
16
|
+
PodmanHost = "PodmanHost",
|
|
16
17
|
KubernetesCluster = "KubernetesCluster",
|
|
18
|
+
ProxmoxCluster = "ProxmoxCluster",
|
|
19
|
+
CephCluster = "CephCluster",
|
|
20
|
+
DockerSwarmCluster = "DockerSwarmCluster",
|
|
17
21
|
ServerlessFunction = "ServerlessFunction",
|
|
18
22
|
CloudResource = "CloudResource",
|
|
19
23
|
RealUserMonitor = "RealUserMonitor",
|
|
@@ -2894,6 +2894,147 @@ const Icon: FunctionComponent<ComponentProps> = ({
|
|
|
2894
2894
|
/>
|
|
2895
2895
|
</>,
|
|
2896
2896
|
);
|
|
2897
|
+
} else if (icon === IconProp.Podman) {
|
|
2898
|
+
/*
|
|
2899
|
+
* Podman glyph — a pod (rounded enclosure) grouping containers, with a
|
|
2900
|
+
* small seal-head nod to Podman's mascot. Intentionally a hand-drawn
|
|
2901
|
+
* generic mark (not the official Podman seal logo / trademark), matching
|
|
2902
|
+
* the generic-glyph convention used for Kubernetes/Docker above and
|
|
2903
|
+
* deliberately distinct from the Docker whale.
|
|
2904
|
+
*/
|
|
2905
|
+
return getSvgWrapper(
|
|
2906
|
+
<>
|
|
2907
|
+
{/* Pod enclosure */}
|
|
2908
|
+
<rect
|
|
2909
|
+
x="3"
|
|
2910
|
+
y="8"
|
|
2911
|
+
width="18"
|
|
2912
|
+
height="11"
|
|
2913
|
+
rx="2"
|
|
2914
|
+
strokeLinecap="round"
|
|
2915
|
+
strokeLinejoin="round"
|
|
2916
|
+
/>
|
|
2917
|
+
{/* Grouped containers inside the pod */}
|
|
2918
|
+
<rect
|
|
2919
|
+
x="6"
|
|
2920
|
+
y="12"
|
|
2921
|
+
width="3.5"
|
|
2922
|
+
height="4"
|
|
2923
|
+
rx="0.4"
|
|
2924
|
+
strokeLinecap="round"
|
|
2925
|
+
strokeLinejoin="round"
|
|
2926
|
+
/>
|
|
2927
|
+
<rect
|
|
2928
|
+
x="10.25"
|
|
2929
|
+
y="12"
|
|
2930
|
+
width="3.5"
|
|
2931
|
+
height="4"
|
|
2932
|
+
rx="0.4"
|
|
2933
|
+
strokeLinecap="round"
|
|
2934
|
+
strokeLinejoin="round"
|
|
2935
|
+
/>
|
|
2936
|
+
<rect
|
|
2937
|
+
x="14.5"
|
|
2938
|
+
y="12"
|
|
2939
|
+
width="3.5"
|
|
2940
|
+
height="4"
|
|
2941
|
+
rx="0.4"
|
|
2942
|
+
strokeLinecap="round"
|
|
2943
|
+
strokeLinejoin="round"
|
|
2944
|
+
/>
|
|
2945
|
+
{/* Seal head peeking over the pod */}
|
|
2946
|
+
<circle cx="17" cy="5.5" r="2" />
|
|
2947
|
+
<path
|
|
2948
|
+
strokeLinecap="round"
|
|
2949
|
+
strokeLinejoin="round"
|
|
2950
|
+
d="M19 6.2c1 0.1 1.8-0.2 2.4-0.9"
|
|
2951
|
+
/>
|
|
2952
|
+
</>,
|
|
2953
|
+
);
|
|
2954
|
+
} else if (icon === IconProp.Proxmox) {
|
|
2955
|
+
/*
|
|
2956
|
+
* Generic hypervisor glyph — VM tiles running on a server base.
|
|
2957
|
+
* Intentionally NOT the official Proxmox logo (trademark of Proxmox
|
|
2958
|
+
* Server Solutions GmbH); follows the hand-drawn-generic convention
|
|
2959
|
+
* used for Kubernetes/Docker above.
|
|
2960
|
+
*/
|
|
2961
|
+
return getSvgWrapper(
|
|
2962
|
+
<>
|
|
2963
|
+
{/* Virtual machine tiles */}
|
|
2964
|
+
<rect
|
|
2965
|
+
x="4"
|
|
2966
|
+
y="4"
|
|
2967
|
+
width="4.5"
|
|
2968
|
+
height="4.5"
|
|
2969
|
+
rx="0.5"
|
|
2970
|
+
strokeLinecap="round"
|
|
2971
|
+
strokeLinejoin="round"
|
|
2972
|
+
/>
|
|
2973
|
+
<rect
|
|
2974
|
+
x="9.75"
|
|
2975
|
+
y="4"
|
|
2976
|
+
width="4.5"
|
|
2977
|
+
height="4.5"
|
|
2978
|
+
rx="0.5"
|
|
2979
|
+
strokeLinecap="round"
|
|
2980
|
+
strokeLinejoin="round"
|
|
2981
|
+
/>
|
|
2982
|
+
<rect
|
|
2983
|
+
x="15.5"
|
|
2984
|
+
y="4"
|
|
2985
|
+
width="4.5"
|
|
2986
|
+
height="4.5"
|
|
2987
|
+
rx="0.5"
|
|
2988
|
+
strokeLinecap="round"
|
|
2989
|
+
strokeLinejoin="round"
|
|
2990
|
+
/>
|
|
2991
|
+
{/* Connectors from VMs down to the hypervisor */}
|
|
2992
|
+
<line x1="6.25" y1="8.5" x2="6.25" y2="14.5" strokeLinecap="round" />
|
|
2993
|
+
<line x1="12" y1="8.5" x2="12" y2="14.5" strokeLinecap="round" />
|
|
2994
|
+
<line x1="17.75" y1="8.5" x2="17.75" y2="14.5" strokeLinecap="round" />
|
|
2995
|
+
{/* Hypervisor / server base */}
|
|
2996
|
+
<rect
|
|
2997
|
+
x="3"
|
|
2998
|
+
y="14.5"
|
|
2999
|
+
width="18"
|
|
3000
|
+
height="5.5"
|
|
3001
|
+
rx="1"
|
|
3002
|
+
strokeLinecap="round"
|
|
3003
|
+
strokeLinejoin="round"
|
|
3004
|
+
/>
|
|
3005
|
+
<circle cx="6" cy="17.25" r="0.6" fill="currentColor" />
|
|
3006
|
+
<line x1="9" y1="17.25" x2="18" y2="17.25" strokeLinecap="round" />
|
|
3007
|
+
</>,
|
|
3008
|
+
);
|
|
3009
|
+
} else if (icon === IconProp.Ceph) {
|
|
3010
|
+
/*
|
|
3011
|
+
* Generic hexagon-cluster glyph — honeycomb of storage nodes.
|
|
3012
|
+
* Intentionally NOT the official Ceph logo (trademark of the Ceph
|
|
3013
|
+
* Foundation); follows the hand-drawn-generic convention used for
|
|
3014
|
+
* Kubernetes/Docker above.
|
|
3015
|
+
*/
|
|
3016
|
+
return getSvgWrapper(
|
|
3017
|
+
<>
|
|
3018
|
+
<polygon
|
|
3019
|
+
points="7.6,3.6 11.24,5.7 11.24,9.9 7.6,12 3.96,9.9 3.96,5.7"
|
|
3020
|
+
strokeLinecap="round"
|
|
3021
|
+
strokeLinejoin="round"
|
|
3022
|
+
/>
|
|
3023
|
+
<polygon
|
|
3024
|
+
points="16.4,3.6 20.04,5.7 20.04,9.9 16.4,12 12.76,9.9 12.76,5.7"
|
|
3025
|
+
strokeLinecap="round"
|
|
3026
|
+
strokeLinejoin="round"
|
|
3027
|
+
/>
|
|
3028
|
+
<polygon
|
|
3029
|
+
points="12,12 15.64,14.1 15.64,18.3 12,20.4 8.36,18.3 8.36,14.1"
|
|
3030
|
+
strokeLinecap="round"
|
|
3031
|
+
strokeLinejoin="round"
|
|
3032
|
+
/>
|
|
3033
|
+
<circle cx="7.6" cy="7.8" r="0.8" fill="currentColor" />
|
|
3034
|
+
<circle cx="16.4" cy="7.8" r="0.8" fill="currentColor" />
|
|
3035
|
+
<circle cx="12" cy="16.2" r="0.8" fill="currentColor" />
|
|
3036
|
+
</>,
|
|
3037
|
+
);
|
|
2897
3038
|
} else if (icon === IconProp.Gauge) {
|
|
2898
3039
|
// Gauge/speedometer icon — semicircular meter with needle
|
|
2899
3040
|
return getSvgWrapper(
|
|
@@ -23,6 +23,7 @@ import ErrorMessage from "../ErrorMessage/ErrorMessage";
|
|
|
23
23
|
import Service from "../../../Models/DatabaseModels/Service";
|
|
24
24
|
import Host from "../../../Models/DatabaseModels/Host";
|
|
25
25
|
import DockerHost from "../../../Models/DatabaseModels/DockerHost";
|
|
26
|
+
import PodmanHost from "../../../Models/DatabaseModels/PodmanHost";
|
|
26
27
|
import KubernetesCluster from "../../../Models/DatabaseModels/KubernetesCluster";
|
|
27
28
|
import { LIMIT_PER_PROJECT } from "../../../Types/Database/LimitMax";
|
|
28
29
|
import SortOrder from "../../../Types/BaseDatabase/SortOrder";
|
|
@@ -228,6 +229,9 @@ const LogsViewer: FunctionComponent<ComponentProps> = (
|
|
|
228
229
|
const [dockerHostMap, setDockerHostMap] = useState<Dictionary<DockerHost>>(
|
|
229
230
|
{},
|
|
230
231
|
);
|
|
232
|
+
const [podmanHostMap, setPodmanHostMap] = useState<Dictionary<PodmanHost>>(
|
|
233
|
+
{},
|
|
234
|
+
);
|
|
231
235
|
const [kubernetesClusterMap, setKubernetesClusterMap] = useState<
|
|
232
236
|
Dictionary<KubernetesCluster>
|
|
233
237
|
>({});
|
|
@@ -394,10 +398,17 @@ const LogsViewer: FunctionComponent<ComponentProps> = (
|
|
|
394
398
|
setIsPageLoading(true);
|
|
395
399
|
setPageError("");
|
|
396
400
|
|
|
397
|
-
const [
|
|
401
|
+
const [
|
|
402
|
+
telemetryServices,
|
|
403
|
+
hosts,
|
|
404
|
+
dockerHosts,
|
|
405
|
+
podmanHosts,
|
|
406
|
+
kubernetesClusters,
|
|
407
|
+
]: [
|
|
398
408
|
ListResult<Service>,
|
|
399
409
|
ListResult<Host>,
|
|
400
410
|
ListResult<DockerHost>,
|
|
411
|
+
ListResult<PodmanHost>,
|
|
401
412
|
ListResult<KubernetesCluster>,
|
|
402
413
|
] = await Promise.all([
|
|
403
414
|
ModelAPI.getList({
|
|
@@ -439,6 +450,19 @@ const LogsViewer: FunctionComponent<ComponentProps> = (
|
|
|
439
450
|
name: SortOrder.Ascending,
|
|
440
451
|
},
|
|
441
452
|
}),
|
|
453
|
+
ModelAPI.getList({
|
|
454
|
+
modelType: PodmanHost,
|
|
455
|
+
query: {},
|
|
456
|
+
select: {
|
|
457
|
+
name: true,
|
|
458
|
+
hostIdentifier: true,
|
|
459
|
+
},
|
|
460
|
+
limit: LIMIT_PER_PROJECT,
|
|
461
|
+
skip: 0,
|
|
462
|
+
sort: {
|
|
463
|
+
name: SortOrder.Ascending,
|
|
464
|
+
},
|
|
465
|
+
}),
|
|
442
466
|
ModelAPI.getList({
|
|
443
467
|
modelType: KubernetesCluster,
|
|
444
468
|
query: {},
|
|
@@ -492,6 +516,14 @@ const LogsViewer: FunctionComponent<ComponentProps> = (
|
|
|
492
516
|
dockerHostsById[dockerHost.id.toString()] = dockerHost;
|
|
493
517
|
});
|
|
494
518
|
|
|
519
|
+
const podmanHostsById: Dictionary<PodmanHost> = {};
|
|
520
|
+
podmanHosts.data.forEach((podmanHost: PodmanHost) => {
|
|
521
|
+
if (!podmanHost.id) {
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
podmanHostsById[podmanHost.id.toString()] = podmanHost;
|
|
525
|
+
});
|
|
526
|
+
|
|
495
527
|
const clustersById: Dictionary<KubernetesCluster> = {};
|
|
496
528
|
kubernetesClusters.data.forEach((cluster: KubernetesCluster) => {
|
|
497
529
|
if (!cluster.id) {
|
|
@@ -503,6 +535,7 @@ const LogsViewer: FunctionComponent<ComponentProps> = (
|
|
|
503
535
|
setServiceMap(services);
|
|
504
536
|
setHostMap(hostsById);
|
|
505
537
|
setDockerHostMap(dockerHostsById);
|
|
538
|
+
setPodmanHostMap(podmanHostsById);
|
|
506
539
|
setKubernetesClusterMap(clustersById);
|
|
507
540
|
} catch (err) {
|
|
508
541
|
setPageError(
|
|
@@ -846,6 +879,14 @@ const LogsViewer: FunctionComponent<ComponentProps> = (
|
|
|
846
879
|
dockerHost?.name || dockerHost?.hostIdentifier || filter.value,
|
|
847
880
|
};
|
|
848
881
|
}
|
|
882
|
+
if (filter.facetKey === "podmanHostId" && podmanHostMap[filter.value]) {
|
|
883
|
+
const podmanHost: PodmanHost | undefined = podmanHostMap[filter.value];
|
|
884
|
+
return {
|
|
885
|
+
...filter,
|
|
886
|
+
displayValue:
|
|
887
|
+
podmanHost?.name || podmanHost?.hostIdentifier || filter.value,
|
|
888
|
+
};
|
|
889
|
+
}
|
|
849
890
|
if (
|
|
850
891
|
filter.facetKey === "kubernetesClusterId" &&
|
|
851
892
|
kubernetesClusterMap[filter.value]
|
|
@@ -866,6 +907,7 @@ const LogsViewer: FunctionComponent<ComponentProps> = (
|
|
|
866
907
|
serviceMap,
|
|
867
908
|
hostMap,
|
|
868
909
|
dockerHostMap,
|
|
910
|
+
podmanHostMap,
|
|
869
911
|
kubernetesClusterMap,
|
|
870
912
|
]);
|
|
871
913
|
|
|
@@ -1084,6 +1126,7 @@ const LogsViewer: FunctionComponent<ComponentProps> = (
|
|
|
1084
1126
|
serviceMap={serviceMap}
|
|
1085
1127
|
hostMap={hostMap}
|
|
1086
1128
|
dockerHostMap={dockerHostMap}
|
|
1129
|
+
podmanHostMap={podmanHostMap}
|
|
1087
1130
|
kubernetesClusterMap={kubernetesClusterMap}
|
|
1088
1131
|
onIncludeFilter={props.onFacetInclude || (() => {})}
|
|
1089
1132
|
onExcludeFilter={props.onFacetExclude || (() => {})}
|