chrony

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: GPL-3.0 Imports: 7 Imported by: 1

README

chrony monitoring with Netdata

chrony is a versatile implementation of the Network Time Protocol (NTP).

The modules will monitor local host chrony server.

This module use golang to collect chrony and produces:

  • stratum
  • frequency
  • last offset
  • RMS offset
  • residual freq
  • root delay
  • root dispersion
  • skew
  • leap status
  • update interval
  • current correction
  • current source server address

Documentation

Index

Constants

View Source
const (
	IpaddrInet4 = uint16(1)
	IpaddrInet6 = uint16(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chrony

type Chrony struct {
	module.Base // should be embedded by every module
	Config      `yaml:",inline"`
	// contains filtered or unexported fields
}

Chrony is the main collector for chrony

func New

func New() *Chrony

New creates Chrony exposing local status of a chrony daemon

func (*Chrony) Charts

func (c *Chrony) Charts() *module.Charts

Charts creates Charts dynamically

func (*Chrony) Check

func (c *Chrony) Check() bool

Check makes check

func (*Chrony) Cleanup

func (c *Chrony) Cleanup()

Cleanup makes cleanup

func (*Chrony) Collect

func (c *Chrony) Collect() map[string]int64

Collect collects metrics

func (*Chrony) Init

func (c *Chrony) Init() bool

Init makes initialization

type Config

type Config struct {
	Protocol string `yaml:"protocol"`
	Address  string `yaml:"address"`
	Timeout  int    `yaml:"timeout"` // Millisecond
}

Jump to

Keyboard shortcuts

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