aboutsummaryrefslogtreecommitdiff
path: root/collector
Commit message (Collapse)AuthorAge
* bcache: add priorityStats flag (#1621)HEADmasterAleksei Zakharov2020-08-10
| | | | | | | * bcache: add priorityStats flag Fixes #1593 Signed-off-by: Aleksei Zakharov <zaharov@selectel.ru>
* Expose cpu bugs and flags as info metrics. (#1788)domchan2020-07-17
| | | | | | * Expose cpu bugs and flags as info metrics with a regexp filter. * Automatically enable CPU info metrics when using flags or bugs feature. Signed-off-by: domgoer <domdoumc@gmail.com>
* udp_queues_linux.go: s/upd/udp/ in two error stringsKarsten Weiss2020-06-29
| | | | Signed-off-by: Karsten Weiss <knweiss@gmail.com>
* Merge pull request #1732 from fach/masterBen Kochie2020-06-22
|\ | | | | Adding backlog/current queue length to qdisc collector
| * Updating e2e test outputfach2020-06-04
| | | | | | | | Signed-off-by: fach <shaw38@gmail.com>
| * Adding backlog/current queue length to qdisc collectorfach2020-06-04
| | | | | | | | Signed-off-by: fach <shaw38@gmail.com>
* | Merge pull request #1733 from prometheus/superq/OutRstsBen Kochie2020-06-18
|\ \ | | | | | | Include TCP OutRsts in netstat metrics
| * | Include TCP OutRsts in netstat metricsBen Kochie2020-06-04
| | | | | | | | | | | | | | | | | | | | | TCP "OutRsts" is the number of TCP Resets sent by the node. This can be useful for monitoring connection failures and flooding. Signed-off-by: Ben Kochie <superq@gmail.com>
* | | Use Go 1.13 error featuresBen Kochie2020-06-16
| | | | | | | | | | | | | | | | | | | | | * Use `errors.Is()` for unwrapping errors. * Use `%w` error verb in internal error formatting. Signed-off-by: Ben Kochie <superq@gmail.com>
* | | Fix up powersupplyclass errorBen Kochie2020-06-15
| | | | | | | | | | | | | | | | | | Switch to go `%w` error verb and errors.Is(). Signed-off-by: Ben Kochie <superq@gmail.com>
* | | Merge pull request #1735 from prometheus/bjk/bump_procfsBen Kochie2020-06-15
|\ \ \ | | | | | | | | Update prometheus/procfs
| * | | Update prometheus/procfsBen Kochie2020-06-14
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: https://github.com/prometheus/node_exporter/issues/1721 Signed-off-by: Ben Kochie <superq@gmail.com>
* | | | Merge pull request #1747 from prometheus/superq/fix_powersupplyclassBen Kochie2020-06-14
|\ \ \ \ | | | | | | | | | | Handle no data from powersupplyclass
| * | | | Handle no data from powersupplyclassBen Kochie2020-06-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle the case when /sys/class/power_supply doesn't exist. Fixes logging error spam. Requires https://github.com/prometheus/procfs/pull/308 Signed-off-by: Ben Kochie <superq@gmail.com>
* | | | | Merge pull request #1743 from prometheus/superq/flagsBen Kochie2020-06-14
|\ \ \ \ \ | |_|/ / / |/| | | | Improve filter flag names.
| * | | | Improve filter flag names.Ben Kochie2020-06-12
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* / / / Fix collectors' build tagsJeffrey Stoke2020-06-12
|/ / / | | | | | | | | | Signed-off-by: Jeffrey Stoke <me@arhat.dev>
* | | helper_test: Fix copyright yearDavid O'Rourke2020-06-03
| | | | | | | | | | | | Signed-off-by: David O'Rourke <david.orourke@gmail.com>
* | | filesystem_freebsd: Use bytesToString to get label valuesDavid O'Rourke2020-06-03
| | | | | | | | | | | | Signed-off-by: David O'Rourke <david.orourke@gmail.com>
* | | helper: Add new bytesToString function and testsDavid O'Rourke2020-06-03
| | | | | | | | | | | | Signed-off-by: David O'Rourke <david.orourke@gmail.com>
* | | filesystem_freebsd: Fix label valuesDavid O'Rourke2020-06-03
| |/ |/| | | | | | | | | | | | | We must know the length of the various filesystem C strings before turning them from a byte array into a Go string, otherwise our Go strings could contain null bytes, corrupting the label values. Signed-off-by: David O'Rourke <david.orourke@gmail.com>
* | Add flag to aggr ipvs metrics to avoid high cardinality metrics (#1709)Wei He2020-06-02
|/ | | | | Fixes #1708 Signed-off-by: Wing924 <weihe924stephen@gmail.com>
* Merge pull request #1679 from alexnoz/ntp-usage-str-fixBen Kochie2020-05-25
|\ | | | | Use clearer usage string for `collector.ntp.server-is-local` option
| * Use clearer usage string for `collector.ntp.server-is-local` optionAlex Nozdriukhin2020-04-18
| | | | | | | | | | Signed-off-by: Alex Nozdriukhin <alex-nozzz@mail.ru> fixes #1662
* | Merge pull request #1690 from shapor/patch-1Ben Kochie2020-05-25
|\ \ | | | | | | Move regexp to global in meminfo_linux.go
| * | Move regexp to global in meminfo_linux.goShapor Naghibzadeh2020-04-26
| |/ | | | | | | | | | | Compile regexp outside of parsing function in meminfo_linux.go Signed-off-by: Shapor Naghibzadeh <shapor@google.com>
* | Linux CPU: Cache CPU metricsBen Kochie2020-05-24
| | | | | | | | | | | | | | | | Cache CPU metrics to avoid counters (ie iowait) jumping backwards. Fixes: https://github.com/prometheus/node_exporter/issues/1686 Signed-off-by: Ben Kochie <superq@gmail.com>
* | Update filesystem freebsdBen Kochie2020-05-14
| | | | | | | | | | | | Upstream x/sys/unix changed types. Signed-off-by: Ben Kochie <superq@gmail.com>
* | read contents of objset file (#1632)Sudhar2872020-05-13
|/ | | | | * added objread functionality Signed-off-by: Sudharshann D <sudhar287@gmail.com>
* Fix accidently empty lines in meminfo_linux (#1671)alpaca2020-04-17
| | | | | * Fix accidently empty lines in meminfo_linux Signed-off-by: qwertysun <qwertysun@tencent.com>
* Add perf tracepoint collection flag (#1664)Daniel Hodges2020-04-17
| | | | | * Add tracepoint collector option for perf collector Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
* Fix initialization in perf collector when using multiple CPUs (#1665)Daniel Hodges2020-04-17
| | | | | * Fix initialization in perf collector when using multiple CPUs Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
* Add gauges for allocated memory for queued UDP and TCP packages (#1503)Peter Bueschel2020-03-31
| | | | | | | | | | | | | | | | * Two new states will be added to the tcpstat collector called rx_queued_bytes and tx_queued_bytes. For UDP datagrams an additional collector 'udp_queues' can be used to expose the total lengths of the tx_queue and rx_queue. @SuperQ and @discordianfish this changes gives us the option to check for overloaded UDP + TCP processing. The names of the new TCP states and the UDP metric can be discussed. The current reasons are just: I don't want to add another collector for the same exposed file, so I just added the new states to the tcpstat collector. I chose the name 'udp_queue' instead of 'udpstat' as UDP has no state. Signed-off-by: Peter Bueschel <peter.bueschel@logmein.com>
* collector/systemd: use regexp to extract systemd version (#1647)Paweł Krupa2020-03-27
| | | Signed-off-by: paulfantom <pawel@krupa.net.pl>
* Metrics for IO errors on Mac. (#1636)Tom Wilkie2020-03-21
| | | | | | * Metrics for IO errors and retries on Mac. Signed-off-by: Tom Wilkie <tom@grafana.com>
* Add model_name and stepping to node_cpu_info metricBenjamin Drung2020-03-20
| | | | | | | | | The `node_cpu_info` metric contains some information like the `model` (which is an integer), but not the human readable model name. Also the stepping of the processor might be interesting, since different stepping of a processor might behave differently. Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
* Catch missing schedstat file (#1641)Ben Kochie2020-03-19
| | | | | Suppres error log noise if schedstat file doesn't exist. Signed-off-by: Ben Kochie <superq@gmail.com>
* Minor cleanup in perf collector (#1616)Ben Kochie2020-02-20
| | | | | | * Use `strconv.Itoa()` instead of `fmt.Sprintf()` for simple conversion. * Eliminate copy-paste in collector setup. Signed-off-by: Ben Kochie <superq@gmail.com>
* Fix num cpu (#1561)Daniel Hodges2020-02-20
| | | | | | | | | | | | | | | | | | | | * add a map of profilers to CPUids `runtime.NumCPU()` returns the number of CPUs that the process can run on. This number does not necessarily correlate to CPU ids if the affinity mask of the process is set. This change maintains the current behavior as default, but also allows the user to specify a range of CPUids to use instead. The CPU id is stored as the value of a map keyed on the profiler object's address. Signed-off-by: Joe Damato <jdamato@fastly.com> Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com> Signed-off-by: Daniel Hodges <hodges@uber.com> Co-authored-by: jdamato-fsly <55214354+jdamato-fsly@users.noreply.github.com>
* new flag to disable all default collectors (#1460)Paul Gier2020-02-20
| | | | | | | | * new flag to disable all default collectors Signed-off-by: Paul Gier <pgier@redhat.com> Co-authored-by: Ben Kochie <superq@gmail.com>
* Don't count empty collection as success (#1613)Ben Kochie2020-02-19
| | | | | | | | | | | | | | Many collectors depend on underlying features to be enabled. This causes confusion about what "success" means. This changes the behavior of the `node_scrape_collector_success` metric. * When a collector is unable to find data don't return success. * Catch the no data error and send to Debug log level to avoid log spam. * Update collectors to support this new functionality. * Fix copy-pasta mistake in infiband debug message. Closes: https://github.com/prometheus/node_exporter/issues/1323 Signed-off-by: Ben Kochie <superq@gmail.com>
* Fix up Darwin swap metricsBen Kochie2020-02-19
| | | | | | | * Add a changelog entry. * Remove redundant swap free metric. Signed-off-by: Ben Kochie <superq@gmail.com>
* Swap usage on darwin from sysctl vm.swapusage (#1608)jonas-lindmark2020-02-19
| | | Signed-off-by: jonas <jonas.lindmark@denacode.se>
* Add Btrfs collector (#1512)Silke Hofstra2020-02-19
| | | | | | | | * Add procfs/btrfs to vendor folder * Add Btrfs collector Resolves #1100 Signed-off-by: Silke Hofstra <silke@slxh.eu>
* Collect non-numeric data from /sys/class/infiniband (#1563)Benjamin Drung2020-02-19
| | | | | | | | | Let the node exporter collect the non-numeric data from /sys/class/infiniband: board ID, firmware version, and HCA type. Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com> Co-authored-by: Ben Kochie <superq@gmail.com>
* Adds metrics and tests for UDP receive and send buffer errors (#1534)Phil Porada2020-02-19
| | | | | | * Adds metrics for UDP receive and send buffer errors Signed-off-by: Phil Porada <philporada@gmail.com>
* Use strconv.Itoa() instead of fmt.Sprintf() (#1566)Julian Kornberger2020-02-19
| | | Signed-off-by: Julian Kornberger <jk+github@digineo.de>
* Implement loadavg on all BSDs without cgo (#1584)Tobias Klauser2020-02-18
| | | | | | | | Reuse the Go-only implementation already in place for FreeBSD (#385) on Darwin, DragonflyBSD, NetBSD and OpenBSD. Tested on all affected platforms. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
* Bump all vendoring (#1612)Ben Kochie2020-02-18
| | | | | Update all vendoring to current releases. Signed-off-by: Ben Kochie <superq@gmail.com>
* Update to latest procfs library (#1611)Ben Kochie2020-02-18
| | | | | Bump to v0.0.10 procfs library. Signed-off-by: Ben Kochie <superq@gmail.com>