Kozlov Alexander
02ee897c03
Added conntrack statistics metrics ( #1155 )
...
* Added conntrack statistics metrics
Signed-off-by: Aleksandr Kozlov <avlkozlov@avito.ru>
Co-authored-by: Aleksandr Kozlov <avlkozlov@avito.ru>
Co-authored-by: Ben Kochie <superq@gmail.com>
3 years ago
Ben Kochie
8edd27baaf
Merge pull request #2058 from taktv6/master
...
Fix build
3 years ago
Oliver Geiselhardt-Herms
cc4f13b369
Fix build
...
Signed-off-by: Oliver Geiselhardt-Herms <oliver.geiselhardt-herms@sap.com>
3 years ago
Ben Kochie
27dc754aeb
Merge pull request #1832 from ventifus/master
...
Add a new ethtool stats collector
3 years ago
ventifus
76c0e1e5a1
Update collector/ethtool_linux.go
...
Signed-off-by: W. Andrew Denton <git@flying-snail.net>
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
4 years ago
Julien Pivotto
5b13775dc8
Merge pull request #2048 from prometheus/init-collectors
...
Only initiate collectors once
4 years ago
Julien Pivotto
99af1dbb44
Update logic
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
2e20d668f2
Only iniate collectors once
...
When /metrics is called for specific collectors, the collectors are
initialed every time. Which means that we spend a lot of time
re-initiating the same collectors again and again. Especially, some
collectors make the assumptions that that are initiated once - e.g.
systemd collector generates info message upon initiation.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Ben Kochie
e1db354611
Merge pull request #1887 from prometheus/superq/promhttp_errorlog
...
Add ErrorLog plumbing to promhttp
4 years ago
Ben Kochie
3bc9a93c20
Add ErrorLog plumbing to promhttp
...
Fix the error logging of the promhttp handler by connecting it to the
promlog setup.
* Switch to go-kit/log.
* Cleanup CHANGELOG.
Fixes: https://github.com/prometheus/node_exporter/issues/1886
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Ben Kochie
f04d5569a2
Merge pull request #2045 from kcx2366425574/master
...
fix the uncorrect word
4 years ago
kcx2366425574
9eff6761df
fix the uncorrect word
...
Signed-off-by: kcx2366425574 <18279911430@163.com>
4 years ago
Ben Kochie
220aa5b889
Merge pull request #2043 from luizluca/fixtures_readonly_files
...
Use rm -rf to remove fixtures
4 years ago
Luiz Angelo Daros de Luca
f91a1ccc78
Use rm -rf to remove fixtures
...
rm interactively asks for confirmation while removing read-only
files and fixtures sys has dozens of them.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
4 years ago
W. Andrew Denton
5cf7968ad1
ethtool: Add documentation to README.md
...
Signed-off-by: W. Andrew Denton <git@flying-snail.net>
4 years ago
W. Andrew Denton
892893ff05
ethtool: Log stats collection errors.
...
Signed-off-by: W. Andrew Denton <git@flying-snail.net>
4 years ago
David Leadbeater
f29590e0a8
Merge pull request #2039 from dgl/usage-stdout
4 years ago
David Leadbeater
0387f55a9b
Make node_exporter print usage to STDOUT
...
Matches updated behaviour in Prometheus and other tools.
Signed-off-by: David Leadbeater <dgl@dgl.cx>
4 years ago
Ben Kochie
c3d8fc6051
Merge pull request #2038 from hs0210/work
...
Fix golint issue caused by typo
4 years ago
Hu Shuai
5ee20043a7
Fix golint issue caused by typo
...
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
4 years ago
W. Andrew Denton
807f3c3af3
ethtool: Remove end-to-end testing.
...
Signed-off-by: W. Andrew Denton <git@flying-snail.net>
4 years ago
W. Andrew Denton
596ff45f8f
ethtool: Add a new ethtool stats collector (metrics equivalent to "ethtool -S")
...
Signed-off-by: W. Andrew Denton <git@flying-snail.net>
4 years ago
raviprasad_lr
504f9b785c
fix interval in graphs panels of node dashboard
...
Signed-off-by: raviprasad_lr <raviprasad_lr@yahoo.com>
4 years ago
Ben Kochie
46cdf618c9
Merge pull request #2020 from prometheus/superq/darwin-arm64
...
Add Darwin arm64 build
4 years ago
Ben Kochie
7b5cc3e505
Add Darwin arm64 build
...
Add darwin/arm64 to the CGO crossbuilder list.
* Update Makefile.common to pick up new promu.
* Fix possible nil pointer caught by staticcheck.
* Update collector build tags.
https://github.com/prometheus/node_exporter/issues/1997
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Johannes 'fish' Ziemke
a5908bf82b
Make interval configurable
...
Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
4 years ago
Johannes 'fish' Ziemke
772335caa8
Use 5m rate in mixins
...
The default scrape interval of Prometheus is 60s, so we can't use a 1m
rate.
Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
4 years ago
Julien Pivotto
7717702c96
Merge pull request #2012 from fhemberger/filesystem-flag
...
Rename filesystem collector flags to match netdev and systemd collectors
4 years ago
Ben Kochie
e972957494
Merge pull request #2006 from prometheus/superq/promu_filter
...
Update build
4 years ago
Frederic Hemberger
39124626cd
Rename `collector.filesystem` flags to match other collectors
...
Ref: #1743
Fixes : #1994
Signed-off-by: Frederic Hemberger <mail@frederic-hemberger.de>
4 years ago
Ben Kochie
7b895d8970
Update build
...
* Use new promu regexp matching for platforms.
* Bump to Go 1.16.
* Use uclibc for Dockerfile since we don't use CGO for Linux.
* Use CircleCI build parallelism.
* Split Docker image test to separate CI step.
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Ben Kochie
1dfd858e4a
Merge pull request #2010 from prometheus/repo_sync
...
Synchronize common files from prometheus/prometheus
4 years ago
prombot
677406b5ed
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
4 years ago
Ben Kochie
81caeb6a1b
Merge pull request #2000 from prometheus/fixpanic-systemd-backwards-compat
...
Fix panix when using backwards compatible flags
4 years ago
Ben Kochie
857a91cad3
Merge pull request #1989 from prometheus/superq/net_speed
...
Add flag to ignore network speed if it is unknown
4 years ago
Ben Kochie
9893fca77e
Add flag to ignore network speed if it is unknown
...
Some devices (ex virtual) don't have a speed and report `-1` as the
speed value. Add a flag to allow ignoring speed on these devices.
Fixes: https://github.com/prometheus/node_exporter/issues/1967
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Ben Kochie
f32216f263
Merge pull request #2003 from prometheus/repo_sync
...
Synchronize common files from prometheus/prometheus
4 years ago
prombot
abc6cb205c
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
4 years ago
Ben Kochie
a6bd720719
Merge pull request #2001 from prometheus/repo_sync
...
Synchronize common files from prometheus/prometheus
4 years ago
prombot
502197d93b
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
4 years ago
Julien Pivotto
e7649ba48e
Fix panix when using backwards compatible flags
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Ben Kochie
e57f30736c
Merge pull request #1990 from prometheus/superq/1.1.2
...
Release version 1.1.2
4 years ago
Ben Kochie
378d7b46bf
Release version 1.1.2
...
* [BUGFIX] Handle errors from disabled PSI subsystem #1983
* [BUGFIX] Sanitize strings from /sys/class/power_supply #1984
* [BUGFIX] Silence missing netclass errors #1986
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Ben Kochie
d462d5c5d2
Merge pull request #1986 from prometheus/superq/fix_netclass_error
...
Silence missing netclass errors
4 years ago
Ben Kochie
3b3ef7357f
Silence missing netclass errors
...
* Handle no such file and permission denied errors.
* Reduce excessive error wrapping.
Fixes: https://github.com/prometheus/node_exporter/issues/1840
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Ben Kochie
40e9d294be
Merge pull request #1984 from prometheus/superq/power_supply_panic
...
Sanitize strings from /sys/class/power_supply
4 years ago
Ben Kochie
23e5b245a4
Sanitize strings from /sys/class/power_supply
...
Avoid panic on invalid UTF-8 from /sys/class/power_supply by
sanitizing strings parsed from the kernel.
* Add a broken string to the test fixtures.
Fixes: https://github.com/prometheus/node_exporter/issues/1979
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Ben Kochie
dd99513e37
Merge pull request #1983 from prometheus/superq/ENOTSUP
...
Handle errors from disabled PSI subsystem
4 years ago
Ben Kochie
46d0a0813f
Handle errors from disabled PSI subsystem
...
When CONFIG_PSI_DEFAULT_DISABLED=y, the pressure system returns
"operation not supported", rather than permission denied or not
exposing the /proc/pressure files.
Fixes: https://github.com/prometheus/node_exporter/issues/1961
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Mark Frost
e80863f69d
fix formatting
...
Signed-off-by: Mark Frost <mark@markfrost.co.uk>
4 years ago