docker

package
v0.0.0-...-6ade924 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

README

Docker monitoring with Netdata

Docker Engine is an open source containerization technology for building and containerizing your applications.

This module monitors one or more Docker Engine instances, depending on your configuration.

Metrics

All metrics have "docker." prefix.

Metric Scope Dimensions Units
containers_state global running, paused, stopped containers
healthy_containers global healthy containers
unhealthy_containers global unhealthy containers
images global active, dangling images
images_size global size B

Configuration

Edit the go.d/docker.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/docker.conf
jobs:
  - name: local
    address: 'unix:///var/run/docker.sock'

  - name: remote
    address: 'tcp://203.0.113.10:2375'

For all available options see module configuration file.

Troubleshooting

To troubleshoot issues with the docker 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 docker

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Timeout web.Duration `yaml:"timeout"`
	Address string       `yaml:"address"`
}

type Docker

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

func New

func New() *Docker

func (*Docker) Charts

func (d *Docker) Charts() *module.Charts

func (*Docker) Check

func (d *Docker) Check() bool

func (*Docker) Cleanup

func (d *Docker) Cleanup()

func (*Docker) Collect

func (d *Docker) Collect() map[string]int64

func (*Docker) Init

func (d *Docker) Init() bool

Jump to

Keyboard shortcuts

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