From 10b745cba808ed2069ae51c23d75c02cf3ca3f65 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Mon, 18 Jan 2021 15:44:14 +0300 Subject: add `_is_k8s_node` label to the host labels (#10501) * auto format system-info.sh * detect whether the node is k8s node in system-info.sh * fix unmae=>uname * add_is_k8s_node_to_host_labels: Add new variable to structure * add_is_k8s_node_to_host_labels: Add is_k8_node to labels * add_is_k8s_node_to_host_labels: Add is_k8_node inside endpoint * add_is_k8s_node_to_host_labels: Add data to swagge file * change yes/no to true/false * Update web/api/netdata-swagger.json * add_is_k8s_node_to_host_labels: Add anonymous statistic * add_is_k8s_node_to_host_labels: Add information to using-host-labels.md * add_is_k8s_node_to_host_labels: Add variable to stream * add_is_k8s_node_to_host_labels: Change swagger.yaml * add_is_k8s_node_to_host_labels: Adding missing documentation * add_is_k8s_node_to_host_labels: rename variable * add_is_k8s_node_to_host_labels: Rename lables to match variable names * add_is_k8s_node_to_host_labels: Add to wget * add_is_k8s_node_to_host_labels: Add content to swagger files * add_is_k8s_node_to_host_labels: update both swagger files * add_is_k8s_node_to_host_labels: fix wrong exportation Co-authored-by: Thiago Marques --- docs/guides/using-host-labels.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/guides') diff --git a/docs/guides/using-host-labels.md b/docs/guides/using-host-labels.md index 9d235961ab..6d4af2e5da 100644 --- a/docs/guides/using-host-labels.md +++ b/docs/guides/using-host-labels.md @@ -50,6 +50,7 @@ read the status of your agent. For example, from a VPS system running Debian 10: { ... "host_labels": { + "_is_k8s_node": "false", "_is_parent": "false", "_virt_detection": "systemd-detect-virt", "_container_detection": "none", @@ -81,6 +82,7 @@ They capture the following: - Operating system name and version - CPU architecture, system cores, CPU frequency, RAM, and disk space - Whether Netdata is running inside of a container, and if so, the OS and hardware details about the container's host +- Whether Netdata is running inside K8s node - What virtualization layer the system runs on top of, if any - Whether the system is a streaming parent or child -- cgit v1.2.3