@oneuptime/common 11.0.1 → 11.0.2
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 +110 -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/Host.ts +64 -0
- package/Models/DatabaseModels/Incident.ts +110 -0
- package/Models/DatabaseModels/Index.ts +24 -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 +110 -0
- package/Server/API/BillingInvoiceAPI.ts +47 -7
- package/Server/API/CephResourceAPI.ts +134 -0
- package/Server/API/DashboardAPI.ts +46 -0
- package/Server/API/ProjectAPI.ts +15 -0
- package/Server/API/ProxmoxResourceAPI.ts +132 -0
- package/Server/API/ResellerPlanAPI.ts +17 -0
- package/Server/Infrastructure/GlobalCache.ts +8 -2
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781500000000-AddProxmoxAndCephClusterTables.ts +163 -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 +8 -0
- package/Server/Infrastructure/Redis.ts +40 -12
- 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/ExceptionAggregationService.ts +2 -0
- package/Server/Services/HostService.ts +11 -3
- package/Server/Services/Index.ts +24 -0
- package/Server/Services/KubernetesClusterService.ts +11 -3
- package/Server/Services/LogAggregationService.ts +2 -0
- package/Server/Services/MetricAggregationService.ts +2 -0
- package/Server/Services/OpenTelemetryIngestService.ts +36 -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/ServerlessFunctionService.ts +11 -3
- package/Server/Services/TelemetryUsageBillingService.ts +41 -3
- package/Server/Services/TraceAggregationService.ts +2 -0
- package/Server/Types/AnalyticsDatabase/AggregateBy.ts +8 -23
- package/Server/Utils/Monitor/MonitorAlert.ts +45 -0
- package/Server/Utils/Monitor/MonitorClusterContext.ts +129 -0
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +344 -4
- package/Server/Utils/Monitor/MonitorIncident.ts +130 -7
- package/Server/Utils/Monitor/MonitorMaintenanceSuppression.ts +39 -6
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +3 -1
- package/Server/Utils/Monitor/SeriesResourceLabels.ts +33 -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/TelemetryEntity.ts +85 -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 +13 -0
- package/Tests/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.test.ts +879 -0
- package/Tests/Server/Utils/Telemetry/TelemetryEntity.test.ts +196 -0
- package/Tests/Types/Monitor/CephAlertTemplates.test.ts +1231 -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 +4 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardCephOsdListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardCephPoolListComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent.ts +16 -0
- package/Types/Dashboard/DashboardTemplates.ts +446 -0
- package/Types/Icon/IconProp.ts +2 -0
- package/Types/Monitor/CephAlertTemplates.ts +1647 -0
- package/Types/Monitor/CephMetricCatalog.ts +409 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.ts +44 -0
- package/Types/Monitor/MonitorStep.ts +64 -0
- package/Types/Monitor/MonitorStepCephMonitor.ts +57 -0
- package/Types/Monitor/MonitorStepProxmoxMonitor.ts +81 -0
- package/Types/Monitor/MonitorType.ts +29 -1
- package/Types/Monitor/ProxmoxAlertTemplates.ts +899 -0
- package/Types/Monitor/ProxmoxMetricCatalog.ts +382 -0
- package/Types/Permission.ts +464 -0
- package/Types/Telemetry/EntityType.ts +11 -0
- package/Types/Telemetry/ServiceType.ts +2 -0
- package/UI/Components/Icon/Icon.tsx +84 -0
- package/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.ts +9 -5
- package/UI/Utils/Telemetry/Telemetry.ts +16 -21
- package/UI/Utils/TelemetryService.ts +7 -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/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 +28 -0
- package/Utils/Telemetry/EntityKey.ts +35 -0
- package/Utils/Telemetry/EntityRelationship.ts +6 -0
- package/Utils/Telemetry/HeartbeatAvailability.ts +262 -0
- package/build/dist/Models/DatabaseModels/Alert.js +108 -0
- package/build/dist/Models/DatabaseModels/Alert.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/Host.js +63 -0
- package/build/dist/Models/DatabaseModels/Host.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Incident.js +108 -0
- package/build/dist/Models/DatabaseModels/Incident.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +24 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- 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 +108 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.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 +46 -0
- package/build/dist/Server/API/DashboardAPI.js.map +1 -1
- 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/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/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 +8 -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/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/ExceptionAggregationService.js +2 -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/Index.js +24 -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 +2 -0
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/MetricAggregationService.js +2 -0
- package/build/dist/Server/Services/MetricAggregationService.js.map +1 -1
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +37 -7
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- 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/ServerlessFunctionService.js +10 -2
- package/build/dist/Server/Services/ServerlessFunctionService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +30 -3
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/TraceAggregationService.js +2 -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/Utils/Monitor/MonitorAlert.js +36 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js +90 -0
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +228 -4
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +103 -8
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js +23 -6
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +3 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js +23 -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/TelemetryEntity.js +62 -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 +4 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +2 -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/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 +394 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -1
- package/build/dist/Types/Icon/IconProp.js +2 -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/MonitorStep.js +46 -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/MonitorStepProxmoxMonitor.js +36 -0
- package/build/dist/Types/Monitor/MonitorStepProxmoxMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorType.js +27 -1
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- 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 +408 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Telemetry/EntityType.js +11 -0
- package/build/dist/Types/Telemetry/EntityType.js.map +1 -1
- package/build/dist/Types/Telemetry/ServiceType.js +2 -0
- package/build/dist/Types/Telemetry/ServiceType.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +33 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js +5 -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 +5 -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/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 +16 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/build/dist/Utils/Telemetry/EntityKey.js +27 -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
|
@@ -26,6 +26,8 @@ export enum DashboardTemplateType {
|
|
|
26
26
|
Incident = "Incident",
|
|
27
27
|
Kubernetes = "Kubernetes",
|
|
28
28
|
Host = "Host",
|
|
29
|
+
Proxmox = "Proxmox",
|
|
30
|
+
Ceph = "Ceph",
|
|
29
31
|
Metrics = "Metrics",
|
|
30
32
|
}
|
|
31
33
|
|
|
@@ -71,6 +73,20 @@ export const DashboardTemplates: Array<DashboardTemplate> = [
|
|
|
71
73
|
"Per-host CPU, memory, disk and network charts, a live host inventory, CPU utilization gauge, process counts, and recent logs.",
|
|
72
74
|
icon: IconProp.Server,
|
|
73
75
|
},
|
|
76
|
+
{
|
|
77
|
+
type: DashboardTemplateType.Proxmox,
|
|
78
|
+
name: "Proxmox Dashboard",
|
|
79
|
+
description:
|
|
80
|
+
"Live node and guest inventories with status, CPU/memory trends, network throughput, and cluster logs.",
|
|
81
|
+
icon: IconProp.ServerStack,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: DashboardTemplateType.Ceph,
|
|
85
|
+
name: "Ceph Dashboard",
|
|
86
|
+
description:
|
|
87
|
+
"OSD wall and pool capacity lists, health and capacity stats, degraded-PG trends, client throughput, and cluster logs.",
|
|
88
|
+
icon: IconProp.Database,
|
|
89
|
+
},
|
|
74
90
|
{
|
|
75
91
|
type: DashboardTemplateType.Metrics,
|
|
76
92
|
name: "Metrics Dashboard",
|
|
@@ -451,6 +467,117 @@ function createHostListComponent(data: {
|
|
|
451
467
|
};
|
|
452
468
|
}
|
|
453
469
|
|
|
470
|
+
function createProxmoxNodeListComponent(data: {
|
|
471
|
+
title: string;
|
|
472
|
+
top: number;
|
|
473
|
+
left: number;
|
|
474
|
+
width: number;
|
|
475
|
+
height: number;
|
|
476
|
+
maxRows?: number;
|
|
477
|
+
statusFilter?: string;
|
|
478
|
+
}): DashboardBaseComponent {
|
|
479
|
+
return {
|
|
480
|
+
_type: ObjectType.DashboardComponent,
|
|
481
|
+
componentType: DashboardComponentType.ProxmoxNodeList,
|
|
482
|
+
componentId: ObjectID.generate(),
|
|
483
|
+
topInDashboardUnits: data.top,
|
|
484
|
+
leftInDashboardUnits: data.left,
|
|
485
|
+
widthInDashboardUnits: data.width,
|
|
486
|
+
heightInDashboardUnits: data.height,
|
|
487
|
+
minHeightInDashboardUnits: 3,
|
|
488
|
+
minWidthInDashboardUnits: 4,
|
|
489
|
+
arguments: {
|
|
490
|
+
title: data.title,
|
|
491
|
+
maxRows: data.maxRows ?? 20,
|
|
492
|
+
statusFilter: data.statusFilter,
|
|
493
|
+
},
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
function createProxmoxGuestListComponent(data: {
|
|
498
|
+
title: string;
|
|
499
|
+
top: number;
|
|
500
|
+
left: number;
|
|
501
|
+
width: number;
|
|
502
|
+
height: number;
|
|
503
|
+
maxRows?: number;
|
|
504
|
+
guestTypeFilter?: string;
|
|
505
|
+
statusFilter?: string;
|
|
506
|
+
}): DashboardBaseComponent {
|
|
507
|
+
return {
|
|
508
|
+
_type: ObjectType.DashboardComponent,
|
|
509
|
+
componentType: DashboardComponentType.ProxmoxGuestList,
|
|
510
|
+
componentId: ObjectID.generate(),
|
|
511
|
+
topInDashboardUnits: data.top,
|
|
512
|
+
leftInDashboardUnits: data.left,
|
|
513
|
+
widthInDashboardUnits: data.width,
|
|
514
|
+
heightInDashboardUnits: data.height,
|
|
515
|
+
minHeightInDashboardUnits: 3,
|
|
516
|
+
minWidthInDashboardUnits: 4,
|
|
517
|
+
arguments: {
|
|
518
|
+
title: data.title,
|
|
519
|
+
maxRows: data.maxRows ?? 20,
|
|
520
|
+
guestTypeFilter: data.guestTypeFilter,
|
|
521
|
+
statusFilter: data.statusFilter,
|
|
522
|
+
},
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
function createCephOsdListComponent(data: {
|
|
527
|
+
title: string;
|
|
528
|
+
top: number;
|
|
529
|
+
left: number;
|
|
530
|
+
width: number;
|
|
531
|
+
height: number;
|
|
532
|
+
maxRows?: number;
|
|
533
|
+
viewMode?: string;
|
|
534
|
+
stateFilter?: string;
|
|
535
|
+
}): DashboardBaseComponent {
|
|
536
|
+
return {
|
|
537
|
+
_type: ObjectType.DashboardComponent,
|
|
538
|
+
componentType: DashboardComponentType.CephOsdList,
|
|
539
|
+
componentId: ObjectID.generate(),
|
|
540
|
+
topInDashboardUnits: data.top,
|
|
541
|
+
leftInDashboardUnits: data.left,
|
|
542
|
+
widthInDashboardUnits: data.width,
|
|
543
|
+
heightInDashboardUnits: data.height,
|
|
544
|
+
minHeightInDashboardUnits: 3,
|
|
545
|
+
minWidthInDashboardUnits: 4,
|
|
546
|
+
arguments: {
|
|
547
|
+
title: data.title,
|
|
548
|
+
maxRows: data.maxRows ?? 50,
|
|
549
|
+
// The OSD wall — honeycomb is the view operators expect.
|
|
550
|
+
viewMode: data.viewMode ?? "honeycomb",
|
|
551
|
+
stateFilter: data.stateFilter,
|
|
552
|
+
},
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
function createCephPoolListComponent(data: {
|
|
557
|
+
title: string;
|
|
558
|
+
top: number;
|
|
559
|
+
left: number;
|
|
560
|
+
width: number;
|
|
561
|
+
height: number;
|
|
562
|
+
maxRows?: number;
|
|
563
|
+
}): DashboardBaseComponent {
|
|
564
|
+
return {
|
|
565
|
+
_type: ObjectType.DashboardComponent,
|
|
566
|
+
componentType: DashboardComponentType.CephPoolList,
|
|
567
|
+
componentId: ObjectID.generate(),
|
|
568
|
+
topInDashboardUnits: data.top,
|
|
569
|
+
leftInDashboardUnits: data.left,
|
|
570
|
+
widthInDashboardUnits: data.width,
|
|
571
|
+
heightInDashboardUnits: data.height,
|
|
572
|
+
minHeightInDashboardUnits: 3,
|
|
573
|
+
minWidthInDashboardUnits: 4,
|
|
574
|
+
arguments: {
|
|
575
|
+
title: data.title,
|
|
576
|
+
maxRows: data.maxRows ?? 20,
|
|
577
|
+
},
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
|
|
454
581
|
// -- Dashboard configs --
|
|
455
582
|
|
|
456
583
|
function createMonitorDashboardConfig(): DashboardViewConfig {
|
|
@@ -1785,6 +1912,321 @@ function createHostDashboardConfig(): DashboardViewConfig {
|
|
|
1785
1912
|
};
|
|
1786
1913
|
}
|
|
1787
1914
|
|
|
1915
|
+
function createProxmoxDashboardConfig(): DashboardViewConfig {
|
|
1916
|
+
/*
|
|
1917
|
+
* Layout notes:
|
|
1918
|
+
*
|
|
1919
|
+
* - Node / guest counts come from the Postgres inventory list widgets,
|
|
1920
|
+
* never from Sum-of-gauge Value widgets — pve_up re-emits 1 on every
|
|
1921
|
+
* scrape, so summing it across the dashboard window multiplies
|
|
1922
|
+
* (resources x scrapes), the exact failure the Kubernetes template
|
|
1923
|
+
* documents. The list-widget headers show the true current counts.
|
|
1924
|
+
*
|
|
1925
|
+
* - Template metric widgets cannot filter on datapoint attributes, so
|
|
1926
|
+
* the CPU / memory charts average across every PVE object that
|
|
1927
|
+
* reports the metric (nodes AND guests — pve-exporter emits
|
|
1928
|
+
* pve_cpu_usage_ratio / pve_memory_usage_bytes for both scopes).
|
|
1929
|
+
* That is a useful temperature signal for a wall dashboard; the
|
|
1930
|
+
* per-scope, capacity-weighted versions live on the cluster
|
|
1931
|
+
* Overview page.
|
|
1932
|
+
*
|
|
1933
|
+
* - pve_network_*_bytes are cumulative counters, so the throughput
|
|
1934
|
+
* charts use transformAsRate.
|
|
1935
|
+
*/
|
|
1936
|
+
const components: Array<DashboardBaseComponent> = [
|
|
1937
|
+
// Row 0: Title
|
|
1938
|
+
createTextComponent({
|
|
1939
|
+
text: "Proxmox Dashboard",
|
|
1940
|
+
top: 0,
|
|
1941
|
+
left: 0,
|
|
1942
|
+
width: 12,
|
|
1943
|
+
height: 1,
|
|
1944
|
+
isBold: true,
|
|
1945
|
+
}),
|
|
1946
|
+
|
|
1947
|
+
// Rows 1-4: Live inventory from the Postgres snapshot
|
|
1948
|
+
createProxmoxNodeListComponent({
|
|
1949
|
+
title: "Nodes",
|
|
1950
|
+
top: 1,
|
|
1951
|
+
left: 0,
|
|
1952
|
+
width: 6,
|
|
1953
|
+
height: 4,
|
|
1954
|
+
maxRows: 25,
|
|
1955
|
+
}),
|
|
1956
|
+
createProxmoxGuestListComponent({
|
|
1957
|
+
title: "Guests",
|
|
1958
|
+
top: 1,
|
|
1959
|
+
left: 6,
|
|
1960
|
+
width: 6,
|
|
1961
|
+
height: 4,
|
|
1962
|
+
maxRows: 25,
|
|
1963
|
+
}),
|
|
1964
|
+
|
|
1965
|
+
// Row 5: Section header
|
|
1966
|
+
createTextComponent({
|
|
1967
|
+
text: "Resource Usage",
|
|
1968
|
+
top: 5,
|
|
1969
|
+
left: 0,
|
|
1970
|
+
width: 12,
|
|
1971
|
+
height: 1,
|
|
1972
|
+
isBold: true,
|
|
1973
|
+
}),
|
|
1974
|
+
|
|
1975
|
+
// Rows 6-8: CPU and memory trends
|
|
1976
|
+
createChartComponent({
|
|
1977
|
+
title: "CPU Usage Ratio (avg across nodes & guests)",
|
|
1978
|
+
chartType: DashboardChartType.Line,
|
|
1979
|
+
top: 6,
|
|
1980
|
+
left: 0,
|
|
1981
|
+
width: 6,
|
|
1982
|
+
height: 3,
|
|
1983
|
+
metricConfig: {
|
|
1984
|
+
metricName: "pve_cpu_usage_ratio",
|
|
1985
|
+
aggregationType: MetricsAggregationType.Avg,
|
|
1986
|
+
legend: "CPU ratio",
|
|
1987
|
+
},
|
|
1988
|
+
}),
|
|
1989
|
+
createChartComponent({
|
|
1990
|
+
title: "Memory Usage (avg across nodes & guests)",
|
|
1991
|
+
chartType: DashboardChartType.Area,
|
|
1992
|
+
top: 6,
|
|
1993
|
+
left: 6,
|
|
1994
|
+
width: 6,
|
|
1995
|
+
height: 3,
|
|
1996
|
+
metricConfig: {
|
|
1997
|
+
metricName: "pve_memory_usage_bytes",
|
|
1998
|
+
aggregationType: MetricsAggregationType.Avg,
|
|
1999
|
+
legend: "Memory used",
|
|
2000
|
+
},
|
|
2001
|
+
}),
|
|
2002
|
+
|
|
2003
|
+
// Rows 9-11: Network throughput (cumulative counters -> rate)
|
|
2004
|
+
createChartComponent({
|
|
2005
|
+
title: "Network Receive Throughput",
|
|
2006
|
+
chartType: DashboardChartType.Area,
|
|
2007
|
+
top: 9,
|
|
2008
|
+
left: 0,
|
|
2009
|
+
width: 6,
|
|
2010
|
+
height: 3,
|
|
2011
|
+
metricConfig: {
|
|
2012
|
+
metricName: "pve_network_receive_bytes",
|
|
2013
|
+
aggregationType: MetricsAggregationType.Sum,
|
|
2014
|
+
legend: "RX bytes/sec",
|
|
2015
|
+
transformAsRate: true,
|
|
2016
|
+
},
|
|
2017
|
+
}),
|
|
2018
|
+
createChartComponent({
|
|
2019
|
+
title: "Network Transmit Throughput",
|
|
2020
|
+
chartType: DashboardChartType.Area,
|
|
2021
|
+
top: 9,
|
|
2022
|
+
left: 6,
|
|
2023
|
+
width: 6,
|
|
2024
|
+
height: 3,
|
|
2025
|
+
metricConfig: {
|
|
2026
|
+
metricName: "pve_network_transmit_bytes",
|
|
2027
|
+
aggregationType: MetricsAggregationType.Sum,
|
|
2028
|
+
legend: "TX bytes/sec",
|
|
2029
|
+
transformAsRate: true,
|
|
2030
|
+
},
|
|
2031
|
+
}),
|
|
2032
|
+
|
|
2033
|
+
// Rows 12-14: Logs
|
|
2034
|
+
createLogStreamComponent({
|
|
2035
|
+
title: "Cluster Logs",
|
|
2036
|
+
top: 12,
|
|
2037
|
+
left: 0,
|
|
2038
|
+
width: 12,
|
|
2039
|
+
height: 3,
|
|
2040
|
+
}),
|
|
2041
|
+
];
|
|
2042
|
+
|
|
2043
|
+
const variables: Array<DashboardVariable> = [
|
|
2044
|
+
createTelemetryAttributeVariable({
|
|
2045
|
+
name: "cluster",
|
|
2046
|
+
label: "Cluster",
|
|
2047
|
+
attributeKey: "resource.proxmox.cluster.name",
|
|
2048
|
+
}),
|
|
2049
|
+
];
|
|
2050
|
+
|
|
2051
|
+
return {
|
|
2052
|
+
_type: ObjectType.DashboardViewConfig,
|
|
2053
|
+
components,
|
|
2054
|
+
variables,
|
|
2055
|
+
heightInDashboardUnits: Math.max(DashboardSize.heightInDashboardUnits, 15),
|
|
2056
|
+
};
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
function createCephDashboardConfig(): DashboardViewConfig {
|
|
2060
|
+
/*
|
|
2061
|
+
* Layout notes:
|
|
2062
|
+
*
|
|
2063
|
+
* - The OSD wall (honeycomb) and pool capacity list read the Postgres
|
|
2064
|
+
* inventory, so their headers show true current counts — same
|
|
2065
|
+
* Sum-of-gauge reasoning as the Kubernetes / Proxmox templates.
|
|
2066
|
+
*
|
|
2067
|
+
* - ceph_health_status is a single per-cluster gauge (0 OK / 1 WARN /
|
|
2068
|
+
* 2 ERR), so a Max Value widget renders it correctly.
|
|
2069
|
+
*
|
|
2070
|
+
* - ceph_pool_rd_bytes / ceph_pool_wr_bytes are cumulative counters,
|
|
2071
|
+
* so the client-throughput charts use transformAsRate.
|
|
2072
|
+
*/
|
|
2073
|
+
const components: Array<DashboardBaseComponent> = [
|
|
2074
|
+
// Row 0: Title
|
|
2075
|
+
createTextComponent({
|
|
2076
|
+
text: "Ceph Dashboard",
|
|
2077
|
+
top: 0,
|
|
2078
|
+
left: 0,
|
|
2079
|
+
width: 12,
|
|
2080
|
+
height: 1,
|
|
2081
|
+
isBold: true,
|
|
2082
|
+
}),
|
|
2083
|
+
|
|
2084
|
+
// Rows 1-4: Live inventory from the Postgres snapshot
|
|
2085
|
+
createCephOsdListComponent({
|
|
2086
|
+
title: "OSDs",
|
|
2087
|
+
top: 1,
|
|
2088
|
+
left: 0,
|
|
2089
|
+
width: 6,
|
|
2090
|
+
height: 4,
|
|
2091
|
+
maxRows: 100,
|
|
2092
|
+
}),
|
|
2093
|
+
createCephPoolListComponent({
|
|
2094
|
+
title: "Pools",
|
|
2095
|
+
top: 1,
|
|
2096
|
+
left: 6,
|
|
2097
|
+
width: 6,
|
|
2098
|
+
height: 4,
|
|
2099
|
+
maxRows: 25,
|
|
2100
|
+
}),
|
|
2101
|
+
|
|
2102
|
+
// Row 5: Section header
|
|
2103
|
+
createTextComponent({
|
|
2104
|
+
text: "Health & Capacity",
|
|
2105
|
+
top: 5,
|
|
2106
|
+
left: 0,
|
|
2107
|
+
width: 12,
|
|
2108
|
+
height: 1,
|
|
2109
|
+
isBold: true,
|
|
2110
|
+
}),
|
|
2111
|
+
|
|
2112
|
+
// Row 6: Health and capacity stats
|
|
2113
|
+
createValueComponent({
|
|
2114
|
+
title: "Health (0 OK / 1 WARN / 2 ERR)",
|
|
2115
|
+
top: 6,
|
|
2116
|
+
left: 0,
|
|
2117
|
+
width: 4,
|
|
2118
|
+
metricConfig: {
|
|
2119
|
+
metricName: "ceph_health_status",
|
|
2120
|
+
aggregationType: MetricsAggregationType.Max,
|
|
2121
|
+
},
|
|
2122
|
+
trendDirection: DashboardValueTrendDirection.HigherIsWorse,
|
|
2123
|
+
}),
|
|
2124
|
+
createValueComponent({
|
|
2125
|
+
title: "Capacity Used",
|
|
2126
|
+
top: 6,
|
|
2127
|
+
left: 4,
|
|
2128
|
+
width: 4,
|
|
2129
|
+
metricConfig: {
|
|
2130
|
+
metricName: "ceph_cluster_total_used_bytes",
|
|
2131
|
+
aggregationType: MetricsAggregationType.Avg,
|
|
2132
|
+
},
|
|
2133
|
+
trendDirection: DashboardValueTrendDirection.HigherIsWorse,
|
|
2134
|
+
}),
|
|
2135
|
+
createValueComponent({
|
|
2136
|
+
title: "Capacity Total",
|
|
2137
|
+
top: 6,
|
|
2138
|
+
left: 8,
|
|
2139
|
+
width: 4,
|
|
2140
|
+
metricConfig: {
|
|
2141
|
+
metricName: "ceph_cluster_total_bytes",
|
|
2142
|
+
aggregationType: MetricsAggregationType.Avg,
|
|
2143
|
+
},
|
|
2144
|
+
}),
|
|
2145
|
+
|
|
2146
|
+
// Rows 7-9: Capacity growth and PG health
|
|
2147
|
+
createChartComponent({
|
|
2148
|
+
title: "Capacity Used Over Time",
|
|
2149
|
+
chartType: DashboardChartType.Area,
|
|
2150
|
+
top: 7,
|
|
2151
|
+
left: 0,
|
|
2152
|
+
width: 6,
|
|
2153
|
+
height: 3,
|
|
2154
|
+
metricConfig: {
|
|
2155
|
+
metricName: "ceph_cluster_total_used_bytes",
|
|
2156
|
+
aggregationType: MetricsAggregationType.Avg,
|
|
2157
|
+
legend: "Used bytes",
|
|
2158
|
+
},
|
|
2159
|
+
}),
|
|
2160
|
+
createChartComponent({
|
|
2161
|
+
title: "Degraded PGs",
|
|
2162
|
+
chartType: DashboardChartType.Line,
|
|
2163
|
+
top: 7,
|
|
2164
|
+
left: 6,
|
|
2165
|
+
width: 6,
|
|
2166
|
+
height: 3,
|
|
2167
|
+
metricConfig: {
|
|
2168
|
+
metricName: "ceph_pg_degraded",
|
|
2169
|
+
aggregationType: MetricsAggregationType.Max,
|
|
2170
|
+
legend: "Degraded PGs",
|
|
2171
|
+
},
|
|
2172
|
+
}),
|
|
2173
|
+
|
|
2174
|
+
// Rows 10-12: Client throughput (cumulative counters -> rate)
|
|
2175
|
+
createChartComponent({
|
|
2176
|
+
title: "Client Read Throughput",
|
|
2177
|
+
chartType: DashboardChartType.Area,
|
|
2178
|
+
top: 10,
|
|
2179
|
+
left: 0,
|
|
2180
|
+
width: 6,
|
|
2181
|
+
height: 3,
|
|
2182
|
+
metricConfig: {
|
|
2183
|
+
metricName: "ceph_pool_rd_bytes",
|
|
2184
|
+
aggregationType: MetricsAggregationType.Sum,
|
|
2185
|
+
legend: "Read bytes/sec",
|
|
2186
|
+
transformAsRate: true,
|
|
2187
|
+
},
|
|
2188
|
+
}),
|
|
2189
|
+
createChartComponent({
|
|
2190
|
+
title: "Client Write Throughput",
|
|
2191
|
+
chartType: DashboardChartType.Area,
|
|
2192
|
+
top: 10,
|
|
2193
|
+
left: 6,
|
|
2194
|
+
width: 6,
|
|
2195
|
+
height: 3,
|
|
2196
|
+
metricConfig: {
|
|
2197
|
+
metricName: "ceph_pool_wr_bytes",
|
|
2198
|
+
aggregationType: MetricsAggregationType.Sum,
|
|
2199
|
+
legend: "Write bytes/sec",
|
|
2200
|
+
transformAsRate: true,
|
|
2201
|
+
},
|
|
2202
|
+
}),
|
|
2203
|
+
|
|
2204
|
+
// Rows 13-15: Logs (the agent's filelog receiver ships ceph.log)
|
|
2205
|
+
createLogStreamComponent({
|
|
2206
|
+
title: "Cluster Logs",
|
|
2207
|
+
top: 13,
|
|
2208
|
+
left: 0,
|
|
2209
|
+
width: 12,
|
|
2210
|
+
height: 3,
|
|
2211
|
+
}),
|
|
2212
|
+
];
|
|
2213
|
+
|
|
2214
|
+
const variables: Array<DashboardVariable> = [
|
|
2215
|
+
createTelemetryAttributeVariable({
|
|
2216
|
+
name: "cluster",
|
|
2217
|
+
label: "Cluster",
|
|
2218
|
+
attributeKey: "resource.ceph.cluster.name",
|
|
2219
|
+
}),
|
|
2220
|
+
];
|
|
2221
|
+
|
|
2222
|
+
return {
|
|
2223
|
+
_type: ObjectType.DashboardViewConfig,
|
|
2224
|
+
components,
|
|
2225
|
+
variables,
|
|
2226
|
+
heightInDashboardUnits: Math.max(DashboardSize.heightInDashboardUnits, 16),
|
|
2227
|
+
};
|
|
2228
|
+
}
|
|
2229
|
+
|
|
1788
2230
|
export function getTemplateConfig(
|
|
1789
2231
|
type: DashboardTemplateType,
|
|
1790
2232
|
): DashboardViewConfig | null {
|
|
@@ -1797,6 +2239,10 @@ export function getTemplateConfig(
|
|
|
1797
2239
|
return createKubernetesDashboardConfig();
|
|
1798
2240
|
case DashboardTemplateType.Host:
|
|
1799
2241
|
return createHostDashboardConfig();
|
|
2242
|
+
case DashboardTemplateType.Proxmox:
|
|
2243
|
+
return createProxmoxDashboardConfig();
|
|
2244
|
+
case DashboardTemplateType.Ceph:
|
|
2245
|
+
return createCephDashboardConfig();
|
|
1800
2246
|
case DashboardTemplateType.Metrics:
|
|
1801
2247
|
return createMetricsDashboardConfig();
|
|
1802
2248
|
case DashboardTemplateType.Blank:
|