summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorFotis Voutsas <fotis@netdata.cloud>2024-04-22 14:11:22 +0300
committerGitHub <noreply@github.com>2024-04-22 14:11:22 +0300
commit9cc4786a97f06fb68d421603a1a663a28262ff34 (patch)
tree9f5c42e504974677bf114b952a3fab9d155b5781 /docs
parent93c0b0d82db4bb53c374aca87693cfcc28e5e78e (diff)
k8s doc edits (#17471)
Co-authored-by: ilyam8 <ilya@netdata.cloud>
Diffstat (limited to 'docs')
-rw-r--r--docs/cloud/visualize/kubernetes.md149
1 files changed, 27 insertions, 122 deletions
diff --git a/docs/cloud/visualize/kubernetes.md b/docs/cloud/visualize/kubernetes.md
index 3f1fccf53d..8854ff8247 100644
--- a/docs/cloud/visualize/kubernetes.md
+++ b/docs/cloud/visualize/kubernetes.md
@@ -1,137 +1,42 @@
-<!--
-title: "Kubernetes visualizations"
-description: "Netdata Cloud features rich, zero-configuration Kubernetes monitoring for the resource utilization and application metrics of Kubernetes (k8s) clusters."
-custom_edit_url: "https://github.com/netdata/netdata/blob/master/docs/cloud/visualize/kubernetes.md"
-sidebar_label: "Kubernetes visualizations"
-learn_status: "Published"
-learn_topic_type: "Concepts"
-learn_rel_path: "Operations/Visualizations"
--->
+# Kubernetes tab
-# Kubernetes visualizations
+The Netdata dashboards feature enhanced visualizations for the resource utilization of Kubernetes (k8s) clusters, embedded in the default [Metrics tab](https://github.com/netdata/netdata/blob/master/docs/dashboard/metrics-tab-and-single-node-tabs.md) dashboard.
-Netdata Cloud features enhanced visualizations for the resource utilization of Kubernetes (k8s) clusters, embedded in the default [Metrics tab](https://github.com/netdata/netdata/blob/master/docs/dashboard/metrics-tab-and-single-node-tabs.md) dashboard.
+These visualizations include a health map for viewing the status of k8s pods/containers, in addition to [Netdata charts](https://github.com/netdata/netdata/blob/master/docs/cloud/visualize/interact-new-charts.md) for viewing per-second CPU, memory, disk, and networking metrics from k8s nodes.
-These visualizations include a health map for viewing the status of k8s pods/containers, in addition to composite charts
-for viewing per-second CPU, memory, disk, and networking metrics from k8s nodes.
-
-See our [Kubernetes deployment instructions](https://github.com/netdata/netdata/blob/master/packaging/installer/methods/kubernetes.md) for details on
-installation and connecting to Netdata Cloud.
+See our [Kubernetes deployment instructions](https://github.com/netdata/netdata/blob/master/packaging/installer/methods/kubernetes.md) for details on deploying Netdata on your Kubernetes cluster.
## Available Kubernetes metrics
Netdata Cloud organizes and visualizes the following metrics from your Kubernetes cluster from every container:
-- `cpu_limit`: CPU utilization as a percentage of the limit defined by the [pod specification
- `spec.containers[].resources.limits.cpu`](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-requests-and-limits-of-pod-and-container)
- or a [`LimitRange`
- object](https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/#create-a-limitrange-and-a-pod).
-- `cpu`: CPU utilization of the pod/container. 100% usage equals 1 fully-utilized core, 200% equals 2 fully-utilized
- cores, and so on.
-- `cpu_per_core`: CPU utilization averaged across available cores.
-- `mem_usage_limit`: Memory utilization, without cache, as a percentage of the limit defined by the [pod specification
- `spec.containers[].resources.limits.memory`](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-requests-and-limits-of-pod-and-container)
- or a [`LimitRange`
- object](https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/#create-a-limitrange-and-a-pod).
-- `mem_usage`: Used memory, without cache.
-- `mem`: The sum of `cache` and `rss` (resident set size) memory usage.
-- `writeback`: The size of `dirty` and `writeback` cache.
-- `mem_activity`: Sum of `in` and `out` bandwidth.
-- `pgfaults`: Sum of page fault bandwidth, which are raised when the Kubernetes cluster tries accessing a memory page
- that is mapped into the virtual address space, but not actually loaded into main memory.
-- `throttle_io`: Sum of `read` and `write` per second across all PVs/PVCs attached to the container.
-- `throttle_serviced_ops`: Sum of the `read` and `write` operations per second across all PVs/PVCs attached to the
- container.
-- `net.net`: Sum of `received` and `sent` bandwidth per second.
-- `net.packets`: Sum of `multicast`, `received`, and `sent` packets.
-
-When viewing the [health map](#health-map), Netdata Cloud shows the above metrics per container, or aggregated based on
+| Metric | Description |
+|------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| `k8s.cgroup.cpu_limit` | CPU utilization as a percentage of the limit defined by the [pod specification `spec.containers[].resources.limits.cpu`](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-requests-and-limits-of-pod-and-container) or a [`LimitRange` object](https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/#create-a-limitrange-and-a-pod). |
+| `k8s.cgroup.cpu` | CPU utilization of the pod/container. 100% usage equals 1 fully-utilized core, 200% equals 2 fully-utilized cores, and so on. |
+| `k8s.cgroup.throttled` | The percentage of runnable periods when tasks in a cgroup have been throttled. |
+| `k8s.cgroup.throttled_duration` | The total time duration for which tasks in a cgroup have been throttled. |
+| `k8s.cgroup.mem_utilization` | Memory utilization within the configured or system-wide (if not set) limits. |
+| `k8s.cgroup.mem_usage_limit` | Memory utilization, without cache, as a percentage of the limit defined by the [pod specification `spec.containers[].resources.limits.memory`](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-requests-and-limits-of-pod-and-container) or a [`LimitRange` object](https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/#create-a-limitrange-and-a-pod). |
+| `k8s.cgroup.mem_usage` | Used memory, without cache. |
+| `k8s.cgroup.mem` | The sum of `cache` and `rss` (resident set size) memory usage. |
+| `k8s.cgroup.writeback` | The size of `dirty` and `writeback` cache. |
+| `k8s.cgroup.pgfaults` | Sum of page fault bandwidth, which are raised when the Kubernetes cluster tries accessing a memory page that is mapped into the virtual address space, but not actually loaded into main memory. |
+| `k8s.cgroup.throttle_io` | Sum of `read` and `write` per second across all PVs/PVCs attached to the container. |
+| `k8s.cgroup.throttle_serviced_ops` | Sum of the `read` and `write` operations per second across all PVs/PVCs attached to the container. |
+| `k8s.cgroup.net_net` | Sum of `received` and `sent` bandwidth per second. |
+| `k8s.cgroup.net_packets` | Sum of `multicast`, `received`, and `sent` packets. |
+
+
+When viewing the [overview of this dashboard](#kubernetes-containers-overview), Netdata presents the above metrics per container, or aggregated based on
their associated pods.
-When viewing the [composite charts](#composite-charts), Netdata Cloud aggregates metrics from multiple nodes, pods, or
-containers, depending on the grouping chosen. For example, if you group the `cpu_limit` composite chart by
-`k8s_namespace`, the metrics shown will be the average of `cpu_limit` metrics from all nodes/pods/containers that are
-part of that namespace.
-
-## Health map
-
-The health map places each container or pod as a single box, then varies the intensity of its color to visualize the
-resource utilization of specific k8s pods/containers.
-
-![The Kubernetes health map in Netdata
-Cloud](https://user-images.githubusercontent.com/1153921/106964367-39f54100-66ff-11eb-888c-5a04f8abb3d0.png)
-
-Change the health map's coloring, grouping, and displayed nodes to customize your experience and learn more about the
-status of your k8s cluster.
+## Kubernetes Containers overview
-### Color by
+At the top of the Kubernetes containers section there is a map, that with a given context colorizes the containers in terms of their utilization.
-Color the health map by choosing an aggregate function to apply to an [available Kubernetes
-metric](#available-kubernetes-metrics), then whether you to display boxes for individual pods or containers.
-
-The default is the _average, of CPU within the configured limit, organized by container_.
-
-### Group by
-
-Group the health map by the `k8s_cluster_id`, `k8s_controller_kind`, `k8s_controller_name`, `k8s_kind`, `k8s_namespace`,
-and `k8s_node_name`. The default is `k8s_controller_name`.
-
-### Filtering
-
-Filtering behaves identically to the [node filter in War Rooms](https://github.com/netdata/netdata/blob/master/docs/cloud/visualize/node-filter.md), with the ability to
-filter pods/containers by `container_id` and `namespace`.
+The filtering of this map is controlled by using the [NIDL framework](https://github.com/netdata/netdata/blob/master/docs/cloud/visualize/interact-new-charts.md#nidl-framework) from the definition bar of the chart.
### Detailed information
-Hover over any of the pods/containers in the map to display a modal window, which contains contextual information
-and real-time metrics from that resource.
-
-![The modal containing additional information about a k8s
-resource](https://user-images.githubusercontent.com/1153921/106964369-3a8dd780-66ff-11eb-8a8a-a5c8f0d5711f.png)
-
-The **context** tab provides the following details about a container or pod:
-
-- Cluster ID
-- Node
-- Controller Kind
-- Controller Name
-- Pod Name
-- Container
-- Kind
-- Pod UID
-
-This information helps orient you as to where the container/pod operates inside your cluster.
-
-The **Metrics** tab contains charts visualizing the last 15 minutes of the same metrics available in the [color by
-option](#color-by). Use these metrics along with the context, to identify which containers or pods are experiencing
-problematic behavior to investigate further, troubleshoot, and remediate with `kubectl` or another tool.
-
-## Composite charts
-
-The Kubernetes composite charts show real-time and historical resource utilization metrics from nodes, pods, or
-containers within your Kubernetes deployment.
-
-Kubernetes composite charts can also be
-grouped by the following labels:
-
-- `k8s_cluster_id`
-- `k8s_container_id`
-- `k8s_container_name`
-- `k8s_controller_kind`
-- `k8s_kind`
-- `k8s_namespace`
-- `k8s_node_name`
-- `k8s_pod_name`
-- `k8s_pod_uid`
-
-In addition, when you hover over a composite chart, the colors in the heat map changes as well, so you can see how
-certain pod/container-level metrics change over time.
-
-## Caveats
-
-There are some caveats and known issues with Kubernetes monitoring with Netdata Cloud.
-
-- **No way to remove any nodes** you might have
- [drained](https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node/) from your Kubernetes cluster. These
- drained nodes will be marked "unreachable" and will show up in War Room management screens/dropdowns. The same applies
- for any ephemeral nodes created and destroyed during horizontal scaling.
+Hover over any of the pods/containers in the map to display a modal window, which contains contextual information and real-time metrics from that resource.