ntp_exporter

command module
v0.0.0-...-5821511 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

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

ntp_exporter

This is a Prometheus exporter that, when running on a node, checks the drift of that node's clock against a given NTP server.

Installation

To build the binary:

make

The binary can also be installed with go get:

go get github.com/sapcc/ntp_exporter

To build the Docker image and run container:

make docker
docker run -p 9559:9559 -ti ntp_exporter:v1.0-24-gb462695-dirty -ntp.source http

Usage

Command-line options: (Only -ntp.server or -ntp.source is required.)

Usage of ./ntp_exporter:
  -ntp.measurement-duration duration
     Duration of measurements in case of high (>10ms) drift. (default 30s)
  -ntp.protocol-version int
     NTP protocol version to use. (default 4)
  -ntp.server string
     NTP server to use (required).
  -ntp.source string
     source of information about ntp server (cli / http). (default "cli")
  -version
     Print version information.
  -web.listen-address string
     Address on which to expose metrics and web interface. (default ":9559")
  -web.telemetry-path string
     Path under which to expose metrics. (default "/metrics")

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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