| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
* Use `errors.Is()` for unwrapping errors.
* Use `%w` error verb in internal error formatting.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update netdev and systemd collectors to deprecate poorly chosen flag names.
Old flag names to be removed in 2.0.0.
https://github.com/prometheus/node_exporter/issues/1742
Add log messages for parsed flag values to help discover quoting isuses in
supervisors.
https://github.com/prometheus/node_exporter/issues/1737
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
| |
Signed-off-by: paulfantom <pawel@krupa.net.pl>
|
|
|
|
|
|
|
| |
This requires root, so it shouldn't be used.
This closes #1246
Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
|
|
|
| |
Signed-off-by: yeya24 <yb532204897@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The dbus property 'SystemState' and the timer property 'LastTriggerUSec'
were added in version 212 of systemd.
Check that the version of systemd is higher than 212 before attempting
to query these properties
https://github.com/systemd/systemd/commit/f755e3b74b94296a534033dd6ae04d9506434210
https://github.com/systemd/systemd/commit/dedabea4b3d61a87cedb5c8d7ccce5b86ea84afe
Resolves issue #291
Signed-off-by: Paul Gier <pgier@redhat.com>
|
|
|
| |
Signed-off-by: Mark Knapp <mknapp@hudson-trading.com>
|
|
|
|
|
|
| |
Include additional unit types in the default systemd collector
blacklist.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
This reduces the system metric collection time by using a wait group
and go routines to allow the systemd metric calls happen concurrently.
Also, makes the start time, restarts, tasks_max, and tasks_current metrics disabled by default
because these can be time consuming to gather.
Signed-off-by: Paul Gier <pgier@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Adds a new label called "type" systemd_unit_state which contains the
Type field from the unit file. This applies only to the .service and
.mount unit types. The other unit types do not include the optional
type field.
Fixes #1210
Signed-off-by: Paul Gier <pgier@redhat.com>
|
|
|
|
|
|
| |
* [systemd] collect taskCurrent, tasksMax per systemd unit
Signed-off-by: Arno Uhlig <arno.uhlig@sap.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* Change systemd unit filtering
Get all units from systemd and filter in Go.
* Improves compatibility with older versions of systemd.
* Improve debugging by printing when units pass the filter.
* Remove extraneous newlines from log messages.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
| |
* If NRestarts or NRefused are not available, don't ignore the unit itself
* Don't report systemd metrics (NRestarts/NRefused) that are not available
Signed-off-by: James Hartig <james@getadmiral.com>
|
|
|
| |
Signed-off-by: Julius Volz <julius.volz@gmail.com>
|
|
|
|
|
| |
fixes #567
Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
|
|
|
|
|
| |
* Add systemd uptime metric collection
Signed-off-by: Sven Lange <tdl@hadiko.de>
|
|
|
|
|
| |
239 (#995)
Signed-off-by: xginn8 <mamcgi@gmail.com>
|
|
|
| |
Signed-off-by: xginn8 <mamcgi@gmail.com>
|
|
|
|
|
|
|
|
| |
* Add support for NRestarts counter introduced in systemd 235
`.service` units increment this counter any time the Restart= condition is
triggered.
Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Move NodeCollector into package collector
* Refactor collector enabling
* Update README with new collector enabled flags
* Fix out-of-date inline flag reference syntax
* Use new flags in end-to-end tests
* Add flag to disable all default collectors
* Track if a flag has been set explicitly
* Add --collectors.disable-defaults to README
* Revert disable-defaults flag
* Shorten flags
* Fixup timex collector registration
* Fix end-to-end tests
* Change procfs and sysfs path flags
* Fix review comments
|
|
|
|
|
|
|
|
|
|
| |
* Switch to kingpin flags
* Fix logrus vendoring
* Fix flags in main tests
* Fix vendoring versions
|
|
|
|
|
|
|
|
|
| |
Blacklist `scope` units from systemd collector by default.
These units are created with unique IDs programatically[0]. This leads to
huge cardinality problems.
[0]: https://www.freedesktop.org/software/systemd/man/systemd.scope.html
|
|
|
|
|
|
| |
Named return variables should only be used to describe the returned type
further, e.g. `err error` doesn't add any new information and is just
stutter.
|
| |
|
| |
|
| |
|
| |
|
|
|