@cryptotaxi247 / netdata-1 / commits / c8b3ad5fd

go.d/portcheck schema add tabs (#18575)

Ilya Mashchenko committed Sep 18, 2024 at 11:21 UTC c8b3ad5fda1236e2495623d6baacd01bbb52722f
2 files changed +25 -5
src/go/plugin/go.d/modules/portcheck/config_schema.json
+20
@@ -63,6 +63,26 @@
63 }
64 },
65 "uiSchema": {
66 + "ui:flavour": "tabs",
67 + "ui:options": {
68 + "tabs": [
69 + {
70 + "title": "Base",
71 + "fields": [
72 + "update_every",
73 + "timeout",
74 + "host"
75 + ]
76 + },
77 + {
78 + "title": "Checks",
79 + "fields": [
80 + "ports",
81 + "udp_ports"
82 + ]
83 + }
84 + ]
85 + },
86 "uiOptions": {
87 "fullPage": true
88 },
src/go/plugin/go.d/modules/portcheck/metadata.yaml
+5 -5
@@ -39,7 +39,7 @@ modules:
39
40 Possible UDP statuses:
41
42 - | TCP Status | Description |
42 + | UDP Status | Description |
43 |---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
44 | open/filtered | No response received within the configured timeout. This status indicates the port is either open or filtered, but the exact state cannot be determined definitively. |
45 | closed | Received an ICMP Destination Unreachable message, indicating the port is closed. |
@@ -180,9 +180,9 @@ modules:
180 description: These metrics refer to the TCP endpoint.
181 labels:
182 - name: host
183 - description: host
183 + description: The hostname or IP address of the target system, as specified in the configuration.
184 - name: port
185 - description: port
185 + description: The TCP port being monitored, as defined in the 'ports' configuration parameter.
186 metrics:
187 - name: portcheck.status
188 description: TCP Check Status
@@ -208,9 +208,9 @@ modules:
208 description: These metrics refer to the UDP endpoint.
209 labels:
210 - name: host
211 - description: host
211 + description: The hostname or IP address of the target system, as specified in the configuration.
212 - name: port
213 - description: port
213 + description: The UDP port being monitored, as defined in the 'udp_ports' configuration parameter.
214 metrics:
215 - name: portcheck.udp_port_status
216 description: UDP Port Check Status