diff options
author | Leonid Evdokimov <leon@darkk.net.ru> | 2017-09-19 11:36:14 +0300 |
---|---|---|
committer | Johannes 'fish' Ziemke <github@freigeist.org> | 2017-09-19 10:36:14 +0200 |
commit | c169b4b1c5108f8e56c9680e7f7b592accdc0dbd (patch) | |
tree | 0252a6479bde75d7d159e4ca45fa668e06e86810 /README.md | |
parent | b0d5c00832eebf39beb7bc0b4b939ac429f6cd00 (diff) | |
download | prometheus_node_collector-c169b4b1c5108f8e56c9680e7f7b592accdc0dbd.tar.bz2 prometheus_node_collector-c169b4b1c5108f8e56c9680e7f7b592accdc0dbd.tar.xz prometheus_node_collector-c169b4b1c5108f8e56c9680e7f7b592accdc0dbd.zip |
Add metrics from SNTPv4 packet to ntp collector & add ntpd sanity check (#655)
* Add metrics from SNTPv4 packet to ntp collector & add ntpd sanity check
1. Checking local clock against remote NTP daemon is bad idea, local
ntpd acting as a client should do it better and avoid excessive load on
remote NTP server so the collector is refactored to query local NTP
server.
2. Checking local clock against remote one does not check local ntpd
itself. Local ntpd may be down or out of sync due to network issues, but
clock will be OK.
3. Checking NTP server using sanity of it's response is tricky and
depends on ntpd implementation, that's why common `node_ntp_sanity`
variable is exported.
* `govendor add golang.org/x/net/ipv4`, it is dependency of github.com/beevik/ntp
* Update github.com/beevik/ntp to include boring SNTP fix
* Use variable name from RFC5905
* ntp: move code to make export of raw metrics more explicit
* Move NTP math to `github.com/beevik/ntp`
* Make `golint` happy
* Add some brief docs explaining `ntp` #655 and `timex` #664 modules
* ntp: drop XXX comment that got its decision
* ntp: add `_seconds` suffix to relevant metrics
* Better `node_ntp_leap` comment
* s/node_ntp_reftime/node_ntp_reference_timestamp_seconds/ as requested by @discordianfish
* Extract subsystem name to const as suggested by @SuperQ
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,6 +64,7 @@ logind | Exposes session counts from [logind](http://www.freedesktop.org/wiki/So | |||
64 | meminfo\_numa | Exposes memory statistics from `/proc/meminfo_numa`. | Linux | 64 | meminfo\_numa | Exposes memory statistics from `/proc/meminfo_numa`. | Linux |
65 | mountstats | Exposes filesystem statistics from `/proc/self/mountstats`. Exposes detailed NFS client statistics. | Linux | 65 | mountstats | Exposes filesystem statistics from `/proc/self/mountstats`. Exposes detailed NFS client statistics. | Linux |
66 | nfs | Exposes NFS client statistics from `/proc/net/rpc/nfs`. This is the same information as `nfsstat -c`. | Linux | 66 | nfs | Exposes NFS client statistics from `/proc/net/rpc/nfs`. This is the same information as `nfsstat -c`. | Linux |
67 | ntp | Exposes local NTP daemon health to check [time](./docs/TIME.md) | _any_ | ||
67 | qdisc | Exposes [queuing discipline](https://en.wikipedia.org/wiki/Network_scheduler#Linux_kernel) statistics | Linux | 68 | qdisc | Exposes [queuing discipline](https://en.wikipedia.org/wiki/Network_scheduler#Linux_kernel) statistics | Linux |
68 | runit | Exposes service status from [runit](http://smarden.org/runit/). | _any_ | 69 | runit | Exposes service status from [runit](http://smarden.org/runit/). | _any_ |
69 | supervisord | Exposes service status from [supervisord](http://supervisord.org/). | _any_ | 70 | supervisord | Exposes service status from [supervisord](http://supervisord.org/). | _any_ |
@@ -78,7 +79,6 @@ Name | Description | OS | |||
78 | ---------|-------------|---- | 79 | ---------|-------------|---- |
79 | gmond | Exposes statistics from Ganglia. | _any_ | 80 | gmond | Exposes statistics from Ganglia. | _any_ |
80 | megacli | Exposes RAID statistics from MegaCLI. | Linux | 81 | megacli | Exposes RAID statistics from MegaCLI. | Linux |
81 | ntp | Exposes time drift from an NTP server. | _any_ | ||
82 | 82 | ||
83 | ### Textfile Collector | 83 | ### Textfile Collector |
84 | 84 | ||