Skip to content

Commit

Permalink
Add condition (#34976)
Browse files Browse the repository at this point in the history
  • Loading branch information
constanca-m authored Mar 31, 2023
1 parent 1a9d627 commit 6f99799
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
10 changes: 10 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -46008,6 +46008,16 @@ type: keyword
Node PIDPressure status (true, false or unknown)


type: keyword

--

*`kubernetes.node.status.network_unavailable`*::
+
--
Node NetworkUnavailable status (true, false or unknown)


type: keyword

--
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/kubernetes/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions metricbeat/module/kubernetes/state_node/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
type: keyword
description: >
Node PIDPressure status (true, false or unknown)
- name: network_unavailable
type: keyword
description: >
Node NetworkUnavailable status (true, false or unknown)
- name: cpu
type: group
fields:
Expand Down
11 changes: 6 additions & 5 deletions metricbeat/module/kubernetes/state_node/state_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ var mapping = &p.MetricsMapping{

"kube_node_status_condition": p.LabelMetric("status", "status", p.OpFilterMap(
"condition", map[string]string{
"Ready": "ready",
"MemoryPressure": "memory_pressure",
"DiskPressure": "disk_pressure",
"OutOfDisk": "out_of_disk",
"PIDPressure": "pid_pressure",
"Ready": "ready",
"MemoryPressure": "memory_pressure",
"DiskPressure": "disk_pressure",
"OutOfDisk": "out_of_disk",
"PIDPressure": "pid_pressure",
"NetworkUnavailable": "network_unavailable",
},
)),
},
Expand Down

0 comments on commit 6f99799

Please sign in to comment.