k8s_kubelet

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: GPL-3.0 Imports: 8 Imported by: 1

README

Kubelet monitoring with Netdata

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.

Charts

It produces the following charts:

  • API Server Audit Requests in requests/s
  • API Server Failed Data Encryption Key(DEK) Generation Operations in events/s
  • API Server Latencies Of Data Encryption Key(DEK) Generation Operations in observes/s
  • API Server Latencies Of Data Encryption Key(DEK) Generation Operations Percentage in %
  • API Server Storage Envelope Transformation Cache Missesinevents/s`
  • Number Of Containers Currently Running in containers
  • Number Of Pods Currently Running in pods
  • Bytes Used By The Pod Logs On The Filesystem in bytes
  • Runtime Operations By Type in operations/s
  • Docker Operations By Type in operations/s
  • Docker Operations Errors By Type in operations/s
  • Node Configuration-Related Error in bool
  • PLEG Relisting Interval Summary in microseconds
  • PLEG Relisting Latency Summary in microseconds
  • Token Requests To The Alternate Token Source in requests/s
  • REST Client HTTP Requests By Status Code in requests/s
  • REST Client HTTP Requests By Method in requests/s

Per every plugin:

  • Volume Manager State Of The World in 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.

First, navigate to your plugins directory, usually at /usr/libexec/netdata/plugins.d/. If that's not the case on your system, open netdata.conf and look for the setting plugins directory. Once you're in the plugin's directory, switch to the netdata user.

cd /usr/libexec/netdata/plugins.d/
sudo -u netdata -s

You can now 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