Pavel Borzenkov
d773360d12
Add missing argument to fmt.Errorf function in 'ntp' collector
...
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
9 years ago
Julius Volz
07b39499cd
Fix protocol version setting in NTP collector.
...
The upstream library changed their interface - the global Version
variable is gone:
283ed9d548
9 years ago
Mikhail Salosin
e7359706d4
Do not use flag before flag.Parse() was called
9 years ago
Nick Owens
eb79937340
switch to github.com/prometheus/common/log for logging
9 years ago
Mikhail Salosin
10e65086ea
Add NTP protocol version flag
9 years ago
Julius Volz
a25751e0b3
Fix occurreneces of initial uppercase in error strings.
9 years ago
Matthias Rampke
2d0d72b97d
Add license headers to all code files.
9 years ago
Julius Volz
e65bc868fc
Switch logging from glog to github.com/prometheus/log.
10 years ago
Johannes 'fish' Ziemke
665b05eedc
Use flags instead of config and remove attributes
10 years ago
Julius Volz
efcce45c90
Make collector-specific flags consistent with others.
...
This puts all collector-specific flags into their own namespace under
"collector.<collector-name>", and moves from camel case to dashes, which
is the standard in Prometheus land now.
10 years ago
Tobias Schmidt
872f921867
Reduce number of global variables used
...
This is the first step to make the exporter more testable.
10 years ago
Brian Brazil
1c17481a42
Collect at every scrape, rather than at regular intervals.
...
Switch to Update using the Collecter Collect interface, due to not knowing all
metricnames in all modules beforehand we can't use Describe and thus the full
Collecter interface.
Remove 'updates', it's meaning varies by module and doesn't add much.
10 years ago
Johannes 'fish' Ziemke
32724a10b0
Add NTP exporter
...
This exporter gets the time from a NTP server and exposes the offset
between the remote and local system time.
10 years ago