Johannes 'fish' Ziemke
3e266e28b9
Merge pull request #397 from dominikh/freebsd-cpu
...
Collect CPU temperatures on FreeBSD
8 years ago
Johannes 'fish' Ziemke
fc1113cd11
Merge pull request #396 from dominikh/bsd-memleak
...
Don't leak or race in FreeBSD devstat collector
8 years ago
Dominik Honnef
d827db8e17
Better error handling when collecting CPU temps
...
Log why we couldn't collect the temperature, and set metric to NaN if
the CPU should support temperature collection but had an error.
8 years ago
Johannes 'fish' Ziemke
91f4781234
Merge pull request #311 from kpettijohn/solaris-loadavg
...
Added loadavg collector for Solaris
8 years ago
Dominik Honnef
9847257bc0
Add missing license headers
8 years ago
Dominik Honnef
782eaee100
Collect CPU temperatures on FreeBSD
8 years ago
Dominik Honnef
38c5890428
Reuse devinfo struct
...
The devstat API expects us to reuse one devinfo for many invocations of
devstat_getstats. In particular, it allocates and resizes memory
referenced by devinfo.
8 years ago
Dominik Honnef
ea55d0f5cb
Don't race in FreeBSD devstat collector
...
Querying the number of devices separately from the device list itself is
racy. Devices may be added or removed between the two calls; and removed
devices would lead to a segfault.
8 years ago
Dominik Honnef
5e220c1665
Move cgo portions of FreeBSD devstat collector into own file
...
Embedding 100 lines of code in a comment doesn't make for good reading,
editing or code quality.
8 years ago
Dominik Honnef
20ca0f1376
Eliminate memory leak in FreeBSD devstat collector
...
The memory allocated by calloc was never freed. Since the devinfo struct
never leaves the function, anyway, we might as well just allocate it on
the stack.
8 years ago
Tobias Schmidt
3b469e5547
Merge pull request #405 from dominikh/fix-freebsd-cpu
...
Fix build of cpu_freebsd.go
8 years ago
Dominik Honnef
732dd67729
Fix build of cpu_freebsd.go
...
Corrects an incorrect merge in 8e50b80
8 years ago
Kevin Pettijohn
d2fbeeb3c3
Added loadavg collector for solaris
...
It seems solaris prefers "sys/loadavg.h" over "stdlib.h" when
fetching the load average.
For Illumos based OSes it was required to include "sys/time.h" to
ensure that "hrtime_t" was defined.
https://www.illumos.org/issues/6002
It also required setting the ldflags "-fno-stack-protector -lssp" to
avoid undefined symbols when linking with gcc.
/opt/local/go/pkg/tool/solaris_amd64/link: running gcc failed: exit status 1
Undefined first referenced
symbol in file
__stack_chk_fail /tmp/go-link-138622936/000002.o
__stack_chk_guard /tmp/go-link-138622936/000002.o
8 years ago
Johannes 'fish' Ziemke
f9d3f830cb
Merge pull request #399 from discordianfish/fish-fs-uniq-metric
...
Make sure we only return one metric per mounted fs
8 years ago
Johannes 'fish' Ziemke
4c9131b7d8
Make sure we only return one metric per mounted fs
8 years ago
Johannes 'fish' Ziemke
6dd39b15c2
Do not build meminfo on freebsd
8 years ago
Johannes 'fish' Ziemke
a97ff2bcda
Do not build meminfo on windows
8 years ago
Johannes 'fish' Ziemke
7617e8b4be
Update archs supported by collectors in README
8 years ago
Johannes 'fish' Ziemke
d17b1b44a6
Merge pull request #398 from prometheus/fish-netdev-check-scan-errror
...
Check for errors in netdev scanner
8 years ago
Johannes 'fish' Ziemke
9969f93e7d
Merge pull request #387 from discordianfish/fish-fix-meminfo-darwin
...
Refactor meminfo and add darwin metrics
8 years ago
Johannes 'fish' Ziemke
6576571ac8
Check for errors in netdev scanner
8 years ago
Johannes 'fish' Ziemke
26c6182c84
Move comment and remove superfluous newline
8 years ago
Johannes 'fish' Ziemke
b68a9ec7af
Merge pull request #359 from CloudAndHeat/feature/hwmon_chip_name_metric
...
hwmon: Provide annotation metric to link chip sysfs paths to human-readable chip types
8 years ago
Johannes 'fish' Ziemke
4e696d5d31
Merge pull request #391 from discordianfish/fish-add-cpu-darwin
...
Add cpu collector for darwin
8 years ago
Johannes 'fish' Ziemke
079fd701a0
Merge pull request #389 from prometheus/fish-use-const-metrics
...
Convert remaining collectors to use ConstMetrics
8 years ago
Johannes 'fish' Ziemke
d2ca252457
Merge pull request #393 from discordianfish/fish-add-netdev-darwin
...
Add netdev collector for darwin
8 years ago
Johannes 'fish' Ziemke
8e50b80d12
Convert remaining collectors to use ConstMetrics
8 years ago
Johannes 'fish' Ziemke
c53bc168fe
Merge pull request #321 from discordianfish/fish/scope-clarify-deprecate
...
RFC: Limit node-exporter scope, mark collectors deprecated that don't fit
8 years ago
Johannes 'fish' Ziemke
3db2f442ae
Limit node-exporter scope, deprecated collectors
8 years ago
Johannes 'fish' Ziemke
c21c59dfeb
Add meminfo stats for Darwin
8 years ago
Johannes 'fish' Ziemke
2983c4a31d
Refactor meminfo collector similar to filesystem
...
Instead of doing the whole metric exposition in a platform specific collector
implementation, this creates and updates the metrics in meminfo.go and
expected a platform specific implementation of getMemInfo on
*meminfoCollector.
8 years ago
Julius Volz
269ee7a7b4
Merge pull request #385 from dominikh/freebsd-no-c
...
Replace some FreeBSD collectors with pure Go versions
8 years ago
Johannes 'fish' Ziemke
3c47ef8e60
Add netdev collector for darwin
...
Same as for openbsd, this is just slightly adjusted from freebsd
variant.
8 years ago
Johannes 'fish' Ziemke
a0b6f55aa9
Merge pull request #394 from discordianfish/fish-fix-makefile
...
Fix Makefile by using first element of GOPATH
8 years ago
Johannes 'fish' Ziemke
2c5f17d4e7
Fix Makefile by using first element of GOPATH
...
If GOPATH includes multiple paths, running `make promu` would fail.
This fixes it by always using the first path.
8 years ago
Dominik Honnef
f0adcd163d
Implement CPU collector on FreeBSD without cgo
8 years ago
Dominik Honnef
d2a43f7d05
Implement meminfo on BSD without cgo
...
This removes some error handling, which should be fine. If the calls
fail, we will get the zeroes, which is a safe enough fallback.
Additionally, if the first sysctl (page_size) succeeded it is unlikely
that other ones will fail.
8 years ago
Johannes 'fish' Ziemke
050d6f7f13
Add cpu collector for darwin
8 years ago
Johannes 'fish' Ziemke
41271cd99c
Merge pull request #272 from bluecmd/patch-2
...
Allow overrides for GO and PROMU
8 years ago
Dominik Honnef
0f6191987e
Implement file systems on FreeBSD without cgo
...
The code may also work for other BSDs, but I don't have access to those
for testing.
8 years ago
Dominik Honnef
54c74923ee
Implement loadavg on FreeBSD without cgo
...
The code may also work for other BSDs, but I don't have access to those
for testing.
8 years ago
Ben Kochie
10e525ff02
Merge pull request #375 from prometheus/fish-add-runit-servicedir-flag
...
Add runit service dir flag
8 years ago
Johannes 'fish' Ziemke
d506b2266c
Merge pull request #374 from prometheus/fish-add-filesystem-errors
...
Add node_filesystem_device_errors_total metric
8 years ago
Johannes 'fish' Ziemke
88f8dba35e
Merge pull request #384 from bjornfor/filesystem-ignore-autofs
...
Ignore autofs filesystems on linux
8 years ago
Johannes 'fish' Ziemke
ad1befe6d6
Merge pull request #320 from mattbostock/add_storcli
...
Add StorCli text collector example script
8 years ago
Bjørn Forsman
64e637cbcc
Ignore autofs filesystems on linux
...
node_exporter currently triggers autofs to mount the underlying
filesystem on every scrape. This is undesirable. Better ignore autofs.
The underlying filesystem that autofs mounts will be monitored though,
when the (real) filesystem is mounted.
8 years ago
Johannes 'fish' Ziemke
71ea37987f
Merge pull request #365 from EdSchouten/drbd
...
A collector for DRBD
8 years ago
Ed Schouten
b0d15eaac6
Reduce the severity of these messages.
...
They get printed all the time, as there are some tokens in the /proc
file that we simply don't support. It's better to keep these as
debugging messages, which may come in useful if new tags start to
appear.
8 years ago
Ed Schouten
4adf7fa96c
Improve the help strings, as proposed in the code review.
8 years ago
Matt Bostock
004bdca8e5
Add text_collector_examples README
8 years ago