Skip to content

Commit

Permalink
fixup! [Metricbeat][Kubernetes] Extend state_node with conditions (#2…
Browse files Browse the repository at this point in the history
…3905)

Signed-off-by: Ioannis Androulidakis <[email protected]>
  • Loading branch information
ioandr committed Feb 16, 2021
1 parent 33d7406 commit 98cd81b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 28 deletions.
27 changes: 13 additions & 14 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29811,7 +29811,7 @@ type: boolean

--

*`kubernetes.node.status.memorypressure`*::
*`kubernetes.node.status.memory_pressure`*::
+
--
Node MemoryPressure status
Expand All @@ -29821,7 +29821,7 @@ type: boolean

--

*`kubernetes.node.status.diskpressure`*::
*`kubernetes.node.status.disk_pressure`*::
+
--
Node DiskPressure status
Expand All @@ -29831,7 +29831,7 @@ type: boolean

--

*`kubernetes.node.status.outofdisk`*::
*`kubernetes.node.status.out_of_disk`*::
+
--
Node OutOfDisk status
Expand All @@ -29841,7 +29841,7 @@ type: boolean

--

*`kubernetes.node.status.pidpressure`*::
*`kubernetes.node.status.pid_pressure`*::
+
--
Node PIDPressure status
Expand Down Expand Up @@ -30814,7 +30814,7 @@ type: long
*`linux.conntrack.summary.insert_failed`*::
+
--
Number of entries where list insert insert failed
Number of entries where list insert insert failed


type: long
Expand Down Expand Up @@ -40442,7 +40442,7 @@ format: bytes
*`redis.info.memory.used.lua`*::
+
--
Used memory by the Lua engine.
Used memory by the Lua engine.


type: long
Expand All @@ -40454,7 +40454,7 @@ format: bytes
*`redis.info.memory.used.dataset`*::
+
--
The size in bytes of the dataset
The size in bytes of the dataset


type: long
Expand Down Expand Up @@ -40699,7 +40699,7 @@ format: duration
*`redis.info.persistence.rdb.copy_on_write.last_size`*::
+
--
The size in bytes of copy-on-write allocations during the last RBD save operation
The size in bytes of copy-on-write allocations during the last RBD save operation


type: long
Expand Down Expand Up @@ -40828,7 +40828,7 @@ format: bytes
*`redis.info.persistence.aof.size.current`*::
+
--
AOF current file size
AOF current file size


type: long
Expand Down Expand Up @@ -40934,7 +40934,7 @@ format: bytes
*`redis.info.replication.backlog.first_byte_offset`*::
+
--
The master offset of the replication backlog buffer
The master offset of the replication backlog buffer


type: long
Expand Down Expand Up @@ -44599,7 +44599,7 @@ type: keyword
*`system.raid.sync_action`*::
+
--
Current sync action, if the RAID array is redundant
Current sync action, if the RAID array is redundant


type: keyword
Expand Down Expand Up @@ -45040,7 +45040,7 @@ All TCP connections
*`system.socket.summary.tcp.memory`*::
+
--
Memory used by TCP sockets in bytes, based on number of allocated pages and system page size. Corresponds to limits set in /proc/sys/net/ipv4/tcp_mem. Only available on Linux.
Memory used by TCP sockets in bytes, based on number of allocated pages and system page size. Corresponds to limits set in /proc/sys/net/ipv4/tcp_mem. Only available on Linux.


type: integer
Expand Down Expand Up @@ -45186,7 +45186,7 @@ All UDP connections
*`system.socket.summary.udp.memory`*::
+
--
Memory used by UDP sockets in bytes, based on number of allocated pages and system page size. Corresponds to limits set in /proc/sys/net/ipv4/udp_mem. Only available on Linux.
Memory used by UDP sockets in bytes, based on number of allocated pages and system page size. Corresponds to limits set in /proc/sys/net/ipv4/udp_mem. Only available on Linux.


type: integer
Expand Down Expand Up @@ -46877,4 +46877,3 @@ Epoch value of the Zookeeper transaction ID. An epoch signifies the period in wh
type: long

--

8 changes: 4 additions & 4 deletions metricbeat/module/kubernetes/state_node/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
type: boolean
description: >
Node unschedulable status
- name: memorypressure
- name: memory_pressure
type: boolean
description: >
Node MemoryPressure status
- name: diskpressure
- name: disk_pressure
type: boolean
description: >
Node DiskPressure status
- name: outofdisk
- name: out_of_disk
type: boolean
description: >
Node OutOfDisk status
- name: pidpressure
- name: pid_pressure
type: boolean
description: >
Node PIDPressure status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
}
},
"status": {
"diskpressure": "false",
"memorypressure": "false",
"outofdisk": "false",
"disk_pressure": "false",
"memory_pressure": "false",
"out_of_disk": "false",
"ready": "true",
"unschedulable": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
}
},
"status": {
"diskpressure": "false",
"memorypressure": "false",
"pidpressure": "false",
"disk_pressure": "false",
"memory_pressure": "false",
"pid_pressure": "false",
"ready": "true",
"unschedulable": false
}
Expand Down
8 changes: 4 additions & 4 deletions metricbeat/module/kubernetes/state_node/state_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ var (
"kube_node_status_condition": p.LabelMetric("status", "status", p.OpFilterMap(
"condition", map[string]string{
"Ready": "ready",
"MemoryPressure": "memorypressure",
"DiskPressure": "diskpressure",
"OutOfDisk": "outofdisk",
"PIDPressure": "pidpressure",
"MemoryPressure": "memory_pressure",
"DiskPressure": "disk_pressure",
"OutOfDisk": "out_of_disk",
"PIDPressure": "pid_pressure",
},
)),
},
Expand Down

0 comments on commit 98cd81b

Please sign in to comment.