Florian Koch
5d5346af8a
Add vmstat collector, enabled per default
9 years ago
Caskey L. Dickson
ab9ee574fb
Build cleanly under windows.
...
Removes unused signal handlers left over from signal based collection
and block the non windows-relevant collectors loadavg and interrupts.
Signal based collection removed in 1c17481a42
.
9 years ago
Juergen Hoetzel
e02d99ebff
Fix compilation on FreeBSD. Refs #139
...
There is no interrupts_freebsd.go implementation yet.
9 years ago
Daniel Bechler
fc3931c924
Add build_info metric similar to the one of Prometheus itself
9 years ago
Peter Fern
09e610ad37
Calculate Linux disk bytes read/written based on sector size (512B)
...
Logical sector size appears to be fixed at 512B for the foreseeable
future in the kernel, so for now we just hard-code it.
9 years ago
Brian Brazil
a82b4c30cb
Add linux conntrack collector.
9 years ago
Rémi Audebert
8628d60125
collector: systemd: collect whether the system is operational
9 years ago
Rémi Audebert
87ccaa39c9
collector: add systemd
9 years ago
Brian Brazil
2f0d697f8c
Do a make format run.
9 years ago
Brian Brazil
7739fb4e12
Switch linux stat to using ConstMetric
9 years ago
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
Pavel Borzenkov
d1789be33e
Fix compilation on OS X
...
As OS X doesn't have it's own interrupts provider, don't build
interrupts_common on OS X as well. Otherwise build fails, because
interrupts_common depends on variables provided by platform-specific
files.
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
9 years ago
Bruno Bigras
f74de8943b
Fix flag name in textfile.go
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
Nick Owens
3eb2d6625a
collector: add openbsd support for netdev
9 years ago
Nick Owens
73ee8f5257
collector: add openbsd support to interrupt collector
9 years ago
Mikhail Salosin
e7359706d4
Do not use flag before flag.Parse() was called
9 years ago
Nick Owens
ebf3ef32f1
collector: sync bsd filesystem collector labels with linux
9 years ago
Nick Owens
b58d1fc971
collector: add openbsd suport to filesystem colector
9 years ago
Nick Owens
2cb489253c
collector: support 1,5,15m load averages for all unices
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
Matteo Bigoi
e6ffeb4907
Reduce nesting in sanity check
9 years ago
Matteo Bigoi
8913d71ca4
Update end-to-end output for testing
9 years ago
Matteo Bigoi
5918be9a8c
Fix documentation and a possible slice bounds out of range
9 years ago
Kevin Lyda
36291d456e
Make filesystem collector more robust.
...
Current behaviour throws away all stats on any Statfs error. In practice
this is not useful. This turns such errors into debug log messages -
though silently ignoring them seems even more valid to me.
9 years ago
Matteo Bigoi
832ba9cc1d
Add load5 and load15 to linux load metric
9 years ago
Tobias Schmidt
0faa12cacd
Update end-to-end fixtures
9 years ago
Tobias Schmidt
500340bdde
Remove logging in IPVS tests
9 years ago
Tobias Schmidt
7e2b65f942
Clean up lint errors
9 years ago
Brian Brazil
07022b3555
Fix compilation on linux/arm64
9 years ago
Julius Volz
a25751e0b3
Fix occurreneces of initial uppercase in error strings.
9 years ago
Julius Volz
777a8ddd90
Remove unneeded `make` in empty slice initialization.
9 years ago
Ilia Choly
9c0302571f
Add supervisord collector
9 years ago
Tobias Schmidt
52f79e699d
Fix uname collector for arm/ppc64/ppc64le architectures
...
The syscall.Utsname struct under arm/ppc64/ppc64le uses uint8 type
instead of int8.
9 years ago
Kirk Russell
88c30557c0
Fixed minor compile time error
9 years ago
Harmen
5d6fb852bb
fix copy-paste error in comment
...
Comment seems to be copied from netdev_linux.go, where it is correct.
9 years ago
Matthias Rampke
7c47338081
Add an end-to-end test.
...
This test runs a selection of collectors against the fixtures and
compares the output to a reference.
The uname and filesystem collectors are disabled because they use system
calls that cannot be fixtured easily.
9 years ago
Matthias Rampke
788ac9a859
Rearrange fixtures to match "real" proc and sys.
...
And add some missing fixtures for default collectors, even if they're
not read by tests yet.
9 years ago
Matthias Rampke
85eb47197f
Add a flag for the sysfs location.
...
Analogous to `collector.procfs`, but for `/sys`. Add tests for both.
9 years ago
Matthias Rampke
24c9db9600
Suppress log noise from textfile collector test.
9 years ago
Matthias Rampke
60dffaa9ff
Fix mdadm collector.
...
In the move to the procfs flag, I accidentally changed the filename.
9 years ago
Kirk Russell
89875cefe8
converted freebsd cpu metrics to seconds
9 years ago
Matthias Rampke
2d0d72b97d
Add license headers to all code files.
9 years ago
Matthias Rampke
20b551ab2b
Add flag to change the location of the procfs.
...
Remove all hardcoded references to `/proc`. For all collectors that do
not use `github.com/prometheus/procfs` yet, provide a wrapper to
generate the full paths.
Reformulate help strings, errors and comments to remove absolute
references to `/proc`.
This is a breaking change: the `-collector.ipvs.procfs` flag is removed
in favor of the general flag. Since it only affected that collector it
was only useful for development, so this should not cause many issues.
9 years ago
beorn7
8f182d2f02
Move from client_golang/text to common/expfmt
9 years ago
Martín Ferrari
e3f217ea45
Build filesystem_common only on linux and freebsd.
9 years ago
Martín Ferrari
0161a36fa5
Fix formatting and variable names.
9 years ago
Martín Ferrari
dace6dc48b
Fix issues from code review, and split common code into filesystem_common.go.
9 years ago
Mikhail Salosin
e41593de14
Add unix timestamp of the last service state change to runit collector
9 years ago