Skip to content

Commit 069aeeb

Browse files
committed
add kube_node_status_addresses metric to docs
1 parent a403bb3 commit 069aeeb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/node-metrics.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
| kube_node_spec_unschedulable | Gauge | Whether a node can schedule new pods | | `node`=<node-address> | STABLE |
1010
| kube_node_spec_taint | Gauge | The taint of a cluster node. | | `node`=&lt;node-address&gt; <br> `key`=&lt;taint-key&gt; <br> `value=`&lt;taint-value&gt; <br> `effect=`&lt;taint-effect&gt; | STABLE |
1111
| kube_node_status_capacity | Gauge | The total amount of resources available for a node | `cpu`=&lt;core&gt; <br> `ephemeral_storage`=&lt;byte&gt; <br> `pods`=&lt;integer&gt; <br> `attachable_volumes_*`=&lt;byte&gt; <br> `hugepages_*`=&lt;byte&gt; <br> `memory`=&lt;byte&gt; | `node`=&lt;node-address&gt; <br> `resource`=&lt;resource-name&gt; <br> `unit`=&lt;resource-unit&gt; | STABLE |
12+
| kube_node_status_addresses | Gauge | The addresses of a node | | `node`=&lt;node-address&gt; <br> `type`=&lt;address-type&gt; <br> `address`=&lt;address-value&gt; | EXPERIMENTAL |
1213
| kube_node_status_allocatable | Gauge | The amount of resources allocatable for pods (after reserving some for system daemons) | `cpu`=&lt;core&gt; <br> `ephemeral_storage`=&lt;byte&gt; <br> `pods`=&lt;integer&gt; <br> `attachable_volumes_*`=&lt;byte&gt; <br> `hugepages_*`=&lt;byte&gt; <br> `memory`=&lt;byte&gt; | `node`=&lt;node-address&gt; <br> `resource`=&lt;resource-name&gt; <br> `unit`=&lt;resource-unit&gt; | STABLE |
1314
| kube_node_status_condition | Gauge | The condition of a cluster node | | `node`=&lt;node-address&gt; <br> `condition`=&lt;node-condition&gt; <br> `status`=&lt;true\|false\|unknown&gt; | STABLE |
1415
| kube_node_created | Gauge | Unix creation timestamp | seconds | `node`=&lt;node-address&gt; | STABLE |

internal/store/node.go

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ func createNodeInfoFamilyGenerator() generator.FamilyGenerator {
158158
n.Status.NodeInfo.SystemUUID,
159159
}
160160

161+
// TODO: remove internal_ip in v3, replaced by kube_node_status_addresses
161162
internalIP := ""
162163
for _, address := range n.Status.Addresses {
163164
if address.Type == "InternalIP" {

0 commit comments

Comments
 (0)