k8s_kubelet

package
v0.54.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2023 License: GPL-3.0 Imports: 8 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Kubelet collector

Kubelet is an agent that runs on each node in the cluster. It makes sure that containers are running in a pod.

This module will monitor one or more kubelet instances, depending on your configuration.

Metrics

All metrics have "k8s_kubelet." prefix.

Metric Scope Dimensions Units
apiserver_audit_requests_rejected global rejected requests/s
apiserver_storage_data_key_generation_failures global failures events/s
apiserver_storage_data_key_generation_latencies global 5_µs, 10_µs, 20_µs, 40_µs, 80_µs, 160_µs, 320_µs, 640_µs, 1280_µs, 2560_µs, 5120_µs, 10240_µs, 20480_µs, 40960_µs, +Inf observes/s
apiserver_storage_data_key_generation_latencies_percent global 5_µs, 10_µs, 20_µs, 40_µs, 80_µs, 160_µs, 320_µs, 640_µs, 1280_µs, 2560_µs, 5120_µs, 10240_µs, 20480_µs, 40960_µs, +Inf percentage
apiserver_storage_envelope_transformation_cache_misses global cache misses events/s
kubelet_containers_running global total running_containers
kubelet_pods_running global total running_pods
kubelet_pods_log_filesystem_used_bytes global a dimension per namespace and pod B
kubelet_runtime_operations global a dimension per operation type operations/s
kubelet_runtime_operations_errors global a dimension per operation type errors/s
kubelet_docker_operations global a dimension per operation type operations/s
kubelet_docker_operations_errors global a dimension per operation type errors/s
kubelet_node_config_error global experiencing_error bool
kubelet_pleg_relist_interval_microseconds global 0.5, 0.9, 0.99 microseconds
kubelet_pleg_relist_latency_microseconds global 0.5, 0.9, 0.99 microseconds
kubelet_token_requests global total, failed token_requests/s
rest_client_requests_by_code global a dimension per HTTP status code requests/s
rest_client_requests_by_method global a dimension per HTTP method requests/s
volume_manager_total_volumes volume manager actual, desired state

Configuration

Edit the go.d/k8s_kubelet.conf configuration file using edit-config from the Netdata config directory, which is typically at /etc/netdata.

cd /etc/netdata # Replace this path with your Netdata config directory
sudo ./edit-config go.d/k8s_kubelet.conf

Needs only url to kubelet metric-address. Here is an example for 2 instances:

jobs:
  - name: local
    url: http://127.0.0.1:10255/metrics

  - name: remote
    url: http://203.0.113.10:10255/metrics

For all available options please see module configuration file.

Troubleshooting

To troubleshoot issues with the k8s_kubelet collector, run the go.d.plugin with the debug option enabled. The output should give you clues as to why the collector isn't working.

  • Navigate to the plugins.d directory, usually at /usr/libexec/netdata/plugins.d/. If that's not the case on your system, open netdata.conf and look for the plugins setting under [directories].

    cd /usr/libexec/netdata/plugins.d/
    
  • Switch to the netdata user.

    sudo -u netdata -s
    
  • Run the go.d.plugin to debug the collector:

    ./go.d.plugin -d -m k8s_kubelet
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart = module.Chart

Chart is an alias for module.Chart

type Charts

type Charts = module.Charts

Charts is an alias for module.Charts

type Config

type Config struct {
	web.HTTP  `yaml:",inline"`
	TokenPath string `yaml:"token_path"`
}

type Dim

type Dim = module.Dim

Dim is an alias for module.Dim

type Dims

type Dims = module.Dims

Dims is an alias for module.Dims

type Kubelet

type Kubelet struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

func New

func New() *Kubelet

New creates Kubelet with default values.

func (Kubelet) Charts

func (k Kubelet) Charts() *Charts

Charts creates Charts.

func (*Kubelet) Check

func (k *Kubelet) Check() bool

Check makes check.

func (Kubelet) Cleanup

func (Kubelet) Cleanup()

Cleanup makes cleanup.

func (*Kubelet) Collect

func (k *Kubelet) Collect() map[string]int64

Collect collects mx.

func (*Kubelet) Init

func (k *Kubelet) Init() bool

Init makes initialization.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL