aboutsummaryrefslogtreecommitdiff
path: root/end-to-end-test.sh
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>
* 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>
* 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>
* rapl_linux collectorUkri Niemimuukko2020-02-01
| | | | | | | This exposes RAPL statistics from /sys/class/powercap. Co-Authored-By: Ben Kochie <superq@gmail.com> Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com>
* add node_cpu_info metricPaul Gier2019-09-25
| | | | | | Contains information gathered from /proc/cpuinfo Signed-off-by: Paul Gier <pgier@redhat.com>
* Scrape thermal_zone temperatures (#1425)Richard Kojedzinszky2019-08-04
| | | | | | * Scrape thermal_zone temperatures Signed-off-by: Richard Kojedzinszky <richard@kojedz.in>
* Scrape CPU latency stats from /proc/schedstat (#1389)Phil Frost2019-07-10
| | | | | | | | | | | | | These are useful as a direct indication of CPU contention and task scheduler latency. Handy references: - https://github.com/torvalds/linux/blob/master/Documentation/scheduler/sched-stats.txt - https://doc.opensuse.org/documentation/leap/tuning/html/book.sle.tuning/cha.tuning.taskscheduler.html procfs is updated to pull in the enabling change: https://github.com/prometheus/procfs/pull/186 Signed-off-by: Phil Frost <phil@postmates.com>
* Expose /proc/pressure (#1261)Daniele Sluijters2019-04-18
| | | | | | | | | This enables the collection of pressure stall information as exposed by the `/proc/pressure` interface added in the 4.20 release of the Linux kernel. Closes #1174 Signed-off-by: Daniele Sluijters <daenney@users.noreply.github.com>
* collector/cpu: split cpu freq metrics into separate collector (#1253)Paul Gier2019-02-19
| | | | | | | | | | | The cpu frequency information is not always needed and/or available. This change allows the cpu frequency metrics to be enabled/disabled separately from the other cpu metrics, and also prevents a frequency metric failure (such as a parse error) from failing the main cpu collector. Fixes #1241 Signed-off-by: Paul Gier <pgier@redhat.com>
* Add sys/class/net parsing from procfs and expose its metrics (#851)Jan Klat2018-07-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add sys/class/net parsing from procfs and expose its metrics Signed-off-by: Jan Klat <jenik@klatys.cz> * change code to use int pointers per procfs change, move netclass to separate collector, change metric naming Signed-off-by: Jan Klat <jenik@klatys.cz> * bump year in licence, remove redundant newline, correct fixtures Signed-off-by: Jan Klat <jenik@klatys.cz> * fix style Signed-off-by: Jan Klat <jenik@klatys.cz> * change carrier changes to counter type Signed-off-by: Jan Klat <jenik@klatys.cz> * fix e2e output Signed-off-by: Jan Klat <jenik@klatys.cz> * add fixtures Signed-off-by: Jan Klat <jenik@klatys.cz> * update vendor, use fixtures correctly Signed-off-by: Jan Klat <jenik@klatys.cz> * change fixtures (device in /sys/class/net should be symlinked) Signed-off-by: Jan Klat <jenik@klatys.cz> * correct fixtures for 64k page, updated readme Signed-off-by: Jan Klat <jenik@klatys.cz>
* Add processes exporter (#950)Pavlo Kutishchev2018-06-05
| | | | | | * Add processes exporter Signed-off-by: Pavel Kutishchev <pavel.kutishchev@olx.com> Signed-off-by: Ben Kochie <superq@gmail.com>
* A couple of ARM64-related fixes (#934)Alexey Kopytov2018-05-14
| | | | | | | | | | * Do not rely on AArch64 CPUs to support 32-bit ARM for cross-testing. Signed-off-by: Alexey Kopytov <akopytov@gmail.com> * aarch64 like ppc64le reports 64k node_sockstat_TCP_mem_bytes due to 64k pages. Signed-off-by: Alexey Kopytov <akopytov@gmail.com>
* Greatly reduce the metrics vmstat returns by default.Brian Brazil2018-03-29
| | | | | | | | Vmstat has over 100 fields, most of which are highly detailed debug information. Trim this down to only essential fields by default, configurable by flag. Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
* Makefile: add checkmetrics target, use in CI (#797)Matt Layher2018-02-13
|
* Add NFS Server metrics collector. (#803)Ben Kochie2018-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add NFS Server metrics collector. * Add File Handles metrics. * Add nfsd IO stats. * Add metrics for NFSd threads. * Add metrics for NFSd read ahead cache. * Add NFSd network traffic counters. * Add RPC metrics. * Add V2 requests metrics. * Add NFSv3 metrics. * Add NFSv4 metrics. * Update reply cache comment. * Update help text.
* Remove obsolete megacli collector. (#798)Ben Kochie2018-01-23
| | | | This collector has been replaced by the textfile collector tool `storcli.py`.
* Add unit suffix to textfile collector mtime metric (#796)Julius Volz2018-01-22
|
* Add fixture for ppc64le (#785)Ben Kochie2018-01-11
| | | | * Add support for per-architecture fixtures. * Add output for ppc64le.
* Fix off by one in Linux interrupts collector (#721)Ben Kochie2017-11-02
| | | | | | | | | * Fix off by one in Linux interrupts collector * Fix off by one in CPU column handler. * Add test. * Enable interrupts in end-to-end test.
* Replace --collectors.enabled with per-collector flags (#640)Calle Pettersson2017-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 (#639)Calle Pettersson2017-08-12
| | | | | | | | | | * Switch to kingpin flags * Fix logrus vendoring * Fix flags in main tests * Fix vendoring versions
* Enable IPVS collector by default (#623)Ben Kochie2017-07-26
| | | | | | * Silence error output when no IPVS present. * Enable by default. * Update end-to-end fixture. * Update README.
* Add bcache collector (#597)ideaship2017-07-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add bcache collector for Linux This collector gathers metrics related to the Linux block cache (bcache) from sysfs. * Removed commented out code * Use project comment style * Add _sectors to metric name to indicate unit * Really use project comment style * Rename bcache.go to bcache_linux.go * Keep collector namespace clean Rename: - metric -> bcacheMetric - periodStatsToMetrics -> bcachePeriodStatsToMetric * Shorten slice initialization * Change label names to backing_device, cache_device * Remove five minute metrics (keep only total) * Include units in additional metric names * Enable bcache collector by default * Provide metrics in seconds, not nanoseconds * remove metrics with label "all" * Add fixtures, update end-to-end for bcache collector * Move fixtures/sys into tar.gz This changeset moves the collector/fixtures/sys directory into collector/fixtures/sys.tar.gz and tweaks the Makefile to unpack the tarball before tests are run. The reason for this change is that Windows does not allow colons in a path (colons are present in some of the bcache fixture files), nor can it (out of the box) deal with pathnames longer than 260 characters (which we would be increasingly likely to hit if we tried to replace colons with longer codes that are guaranteed not the turn up in regular file names). * Add ttar: plain text archive, replacement for tar This changeset adds ttar, a plain text replacement for tar, and uses it for the sysfs fixture archive. The syntax is loosely based on tar(1). Using a plain text archive makes it possible to review changes without downloading and extracting the archive. Also, when working on the repo, git diff and git log become useful again, allowing a committer to verify and track changes over time. The code is written in bash, because bash is available out of the box on all major flavors of Linux and on macOS. The feature set used is restricted to bash version 3.2 because that is what Apple is still shipping. The programm also works on Windows if bash is installed. Obviously, it does not solve the Windows limitations (path length limited to 260 characters, no symbolic links) that prompted the move to an archive format in the first place.
* Move stat_linux to cpu_linux and add cpufreq stats (#548)Rene Treffer2017-06-13
|
* Add qdisc collector for Linux (#580)Emanuele Rocca2017-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add qdisc collector for Linux This collector gathers basic queueing discipline metrics via netlink, similarly to what `tc -s qdisc show` does. * qdisc collector: nl-specific code moved, names fixed - netlink-specific parts moved to github.com/ema/qdisc - avoid using shortened names - counters renamed into XXX_total * Get rid of parseMessage error checking leftover * Add github.com/ema/qdisc to vendored packages * Update help texts and comments * Add qdisc collector to README file * qdisc collector end-to-end testing * Update qdisc dependency to latest version Update github.com/ema/qdisc dependency to revision 2c7e72d, which includes unit testing. * qdisc collector: rename "iface" label into "device"
* Initial XFS collectorMatt Layher2017-04-22
|
* Add ARP collector for Linux (#540)Sam Kottler2017-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement commonalities and linux support for ARP collection * Add ARP collector to fixtures and run as part of e2e tests * Bubble up scanner errors * Use single return values where it makes sense * Add missing annotation * Move arp_common into arp_linux * Add license header to arp_linux.go * Address initial feedback * Use strings.Fields instead of strings.Split * Deal with scanner.Err() rather than throwing away errors * Check for scan errors in-line before interacting with the entries map * Don't interact with potentially empty text from scan * Check for scan errors outside the scan loop * Add comment about moving procfs parsing * Add more direct comment * Update initialism style to match go style guide * Put function args on the same line * Add TODO in front of comment about procfs extraction * Guard against strings.Fields returning an empty slice * Be more defensive about ARP table format and use upcase more broadly * Enable the ARP collector by default * Add ARP collector to the README * Remove 'entry'
* Report collector success/failure and duration per scrape. (#516)Brian Brazil2017-03-16
| | | | This is in line with best practices, and also saves us 63 timeseries on a default Linux setup.
* Merge pull request #450 from roclark/add-infinibandBen Kochie2017-02-16
|\ | | | | infiniband: Add new collector for InfiniBand statistics
| * Add new collector for InfiniBand statisticsRobert Clark2017-02-07
| | | | | | | | | | | | Add new metrics for the InfiniBand network protocol including the amount of packets sent and received, the number of times the link has been downed and how many times the link has recovered from an error state. Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
* | Adding buddyinfo to end to end test.Thorhallur Sverrisson2017-02-15
|/
* Add initial wifi collector, bump netlink to fix 32-bit buildsMatt Layher2017-01-11
|
* Update end-to-end test.Ben Kochie2017-01-10
|
* end-to-end-test.sh: Add zfs pluginJoe Handzik2017-01-08
| | | | | | Enables fixture test and updates e2e-output.txt. Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* Only store relevant e2e outputJohannes 'fish' Ziemke2017-01-06
| | | | This makes commits ligher/more readable when updating the output.
* Merge pull request #365 from EdSchouten/drbdJohannes 'fish' Ziemke2016-12-25
|\ | | | | A collector for DRBD
| * Add a collector for DRBD.Ed Schouten2016-12-11
| | | | | | | | | | | | This collector exposes most of the useful information that can be found in /proc/drbd. Sizes are normalised to be in bytes, as /proc/drbd uses kibibytes.
* | Use POSIX "command" instead of non-standard "which"Juergen Hoetzel2016-12-21
| |
* | Print log if error occursJohannes 'fish' Ziemke2016-12-21
| |
* | Add mountstats collector for detailed NFS statisticsMatt Layher2016-12-20
|/
* Add a collector for NFS client statistics.Ed Schouten2016-12-09
| | | | | | | | | | | | | This change adds a new collector called "nfs" that parses the contents of /proc/net/rpc/nfs and turns it into metrics. It can be used to inspect the number of operations per type, but also to keep an eye on an extraneous number of retransmissions, which may indicate connectivity issues. I've picked the name "nfs", as most operating systems use "nfs" for the client component and "nfsd" as the server component. If we want to add stats for the NFS server as well, we'd better call such a collector "nfsd".
* Add hwmon /sensors support (#278)Rene Treffer2016-10-06
| | | | | | | | | | | | | | | | | | | | * Add hwmon support (mainly known from lm-sensors) This commit adds initial support for linux hardware sensors, exported through sysfs. Details of the interface can be found at https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface * Add end-to-end test with some real life data * Cleanup comments on hwmon collector * Drop raw sensor name from hwmon output * Let the sensor label be "sensor" * Add hwmon short description to README.
* Add new collector exposing 'ksmd' statsPavel Borzenkov2016-01-21
| | | | | | | | | | Add new collector which exposes the content of /sys/kernel/mm/ksm directory. This directory contains control and statistics files for Kernel Samepage Merging daemon. The collector is not enabled by default. Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
* Add new per NUMA node memory statistics collectorPavel Borzenkov2016-01-15
| | | | | | | | | It is sometimes useful to understand the distribution of free/occupied memory between NUMA nodes to deal with performance problems. To do so, add new meminfo_numa collector that enables exporting of per node statistics along with unit and end-to-end tests for it. Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
* Re-arrange collectors list in end-to-end testBen Kochie2016-01-14
| | | | Reduce merge conflicts by breaking up the list into a multi-line string.
* Introduce entropy collector for LinuxRichard Hartmann2016-01-13
|
* Add linux conntrack collector.Brian Brazil2015-12-20
|
* Fix end-to-end test pipefail configurationTobias Schmidt2015-10-17
|
* Improve end-to-end test outputTobias Schmidt2015-10-16
|