master
go 138 lines 4.54 KB
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 package vcsa
4
5 import "github.com/netdata/netdata/go/plugins/plugin/framework/collectorapi"
6
7 var (
8 vcsaHealthCharts = collectorapi.Charts{
9 systemHealthStatus.Copy(),
10 applMgmtHealthChart.Copy(),
11 loadHealthChart.Copy(),
12 memHealthChart.Copy(),
13 swapHealthChart.Copy(),
14 dbStorageHealthChart.Copy(),
15 storageHealthChart.Copy(),
16 softwarePackagesHealthChart.Copy(),
17 }
18
19 systemHealthStatus = collectorapi.Chart{
20 ID: "system_health_status",
21 Title: "VCSA Overall System health status",
22 Units: "status",
23 Fam: "system",
24 Ctx: "vcsa.system_health_status",
25 Dims: collectorapi.Dims{
26 {ID: "system_status_green", Name: "green"},
27 {ID: "system_status_red", Name: "red"},
28 {ID: "system_status_yellow", Name: "yellow"},
29 {ID: "system_status_orange", Name: "orange"},
30 {ID: "system_status_gray", Name: "gray"},
31 {ID: "system_status_unknown", Name: "unknown"},
32 },
33 }
34 applMgmtHealthChart = collectorapi.Chart{
35 ID: "applmgmt_health_status",
36 Title: "VCSA Appliance Management Service (applmgmt) health status",
37 Units: "status",
38 Fam: "appliance mgmt service",
39 Ctx: "vcsa.applmgmt_health_status",
40 Dims: collectorapi.Dims{
41 {ID: "applmgmt_status_green", Name: "green"},
42 {ID: "applmgmt_status_red", Name: "red"},
43 {ID: "applmgmt_status_yellow", Name: "yellow"},
44 {ID: "applmgmt_status_orange", Name: "orange"},
45 {ID: "applmgmt_status_gray", Name: "gray"},
46 {ID: "applmgmt_status_unknown", Name: "unknown"},
47 },
48 }
49 loadHealthChart = collectorapi.Chart{
50 ID: "load_health_status",
51 Title: "VCSA Load health status",
52 Units: "status",
53 Fam: "load",
54 Ctx: "vcsa.load_health_status",
55 Dims: collectorapi.Dims{
56 {ID: "load_status_green", Name: "green"},
57 {ID: "load_status_red", Name: "red"},
58 {ID: "load_status_yellow", Name: "yellow"},
59 {ID: "load_status_orange", Name: "orange"},
60 {ID: "load_status_gray", Name: "gray"},
61 {ID: "load_status_unknown", Name: "unknown"},
62 },
63 }
64 memHealthChart = collectorapi.Chart{
65 ID: "mem_health_status",
66 Title: "VCSA Memory health status",
67 Units: "status",
68 Fam: "mem",
69 Ctx: "vcsa.mem_health_status",
70 Dims: collectorapi.Dims{
71 {ID: "mem_status_green", Name: "green"},
72 {ID: "mem_status_red", Name: "red"},
73 {ID: "mem_status_yellow", Name: "yellow"},
74 {ID: "mem_status_orange", Name: "orange"},
75 {ID: "mem_status_gray", Name: "gray"},
76 {ID: "mem_status_unknown", Name: "unknown"},
77 },
78 }
79 swapHealthChart = collectorapi.Chart{
80 ID: "swap_health_status",
81 Title: "VCSA Swap health status",
82 Units: "status",
83 Fam: "swap",
84 Ctx: "vcsa.swap_health_status",
85 Dims: collectorapi.Dims{
86 {ID: "swap_status_green", Name: "green"},
87 {ID: "swap_status_red", Name: "red"},
88 {ID: "swap_status_yellow", Name: "yellow"},
89 {ID: "swap_status_orange", Name: "orange"},
90 {ID: "swap_status_gray", Name: "gray"},
91 {ID: "swap_status_unknown", Name: "unknown"},
92 },
93 }
94 dbStorageHealthChart = collectorapi.Chart{
95 ID: "database_storage_health_status",
96 Title: "VCSA Database Storage health status",
97 Units: "status",
98 Fam: "db storage",
99 Ctx: "vcsa.database_storage_health_status",
100 Dims: collectorapi.Dims{
101 {ID: "database_storage_status_green", Name: "green"},
102 {ID: "database_storage_status_red", Name: "red"},
103 {ID: "database_storage_status_yellow", Name: "yellow"},
104 {ID: "database_storage_status_orange", Name: "orange"},
105 {ID: "database_storage_status_gray", Name: "gray"},
106 {ID: "database_storage_status_unknown", Name: "unknown"},
107 },
108 }
109 storageHealthChart = collectorapi.Chart{
110 ID: "storage_health_status",
111 Title: "VCSA Storage health status",
112 Units: "status",
113 Fam: "storage",
114 Ctx: "vcsa.storage_health_status",
115 Dims: collectorapi.Dims{
116 {ID: "storage_status_green", Name: "green"},
117 {ID: "storage_status_red", Name: "red"},
118 {ID: "storage_status_yellow", Name: "yellow"},
119 {ID: "storage_status_orange", Name: "orange"},
120 {ID: "storage_status_gray", Name: "gray"},
121 {ID: "storage_status_unknown", Name: "unknown"},
122 },
123 }
124 softwarePackagesHealthChart = collectorapi.Chart{
125 ID: "software_packages_health_status",
126 Title: "VCSA Software Updates health status",
127 Units: "status",
128 Fam: "software packages",
129 Ctx: "vcsa.software_packages_health_status",
130 Dims: collectorapi.Dims{
131 {ID: "software_packages_status_green", Name: "green"},
132 {ID: "software_packages_status_red", Name: "red"},
133 {ID: "software_packages_status_orange", Name: "orange"},
134 {ID: "software_packages_status_gray", Name: "gray"},
135 {ID: "software_packages_status_unknown", Name: "unknown"},
136 },
137 }
138 )