]>
git.ipfire.org Git - thirdparty/collectd.git/log
Svetlana [Wed, 29 Jul 2020 13:32:49 +0000 (13:32 +0000)]
fix compilation errors
Svetlana Shmidt [Wed, 29 Jul 2020 09:54:11 +0000 (14:54 +0500)]
change counter type from size_t to uint64_t
Svetlana Shmidt [Wed, 29 Jul 2020 09:51:51 +0000 (14:51 +0500)]
change memory allocation style
Svetlana Shmidt [Wed, 29 Jul 2020 09:38:45 +0000 (14:38 +0500)]
add checker in average function
Svetlana Shmidt [Wed, 29 Jul 2020 09:34:48 +0000 (14:34 +0500)]
cosmetic changes in custom constructor
Svetlana Shmidt [Wed, 29 Jul 2020 09:29:24 +0000 (14:29 +0500)]
cosmetical change in linear constructor
Svetlana Shmidt [Wed, 29 Jul 2020 09:23:23 +0000 (14:23 +0500)]
change exponential constructor
Svetlana Shmidt [Tue, 28 Jul 2020 13:46:49 +0000 (18:46 +0500)]
add comments to header file
Svetlana Shmidt [Tue, 28 Jul 2020 13:35:46 +0000 (18:35 +0500)]
add comments to constructor functions
Svetlana Shmidt [Tue, 28 Jul 2020 13:17:07 +0000 (18:17 +0500)]
add comments about stroing tree as an array
Svetlana Shmidt [Tue, 28 Jul 2020 12:25:29 +0000 (17:25 +0500)]
add license
Svetlana Shmidt [Tue, 28 Jul 2020 12:12:04 +0000 (17:12 +0500)]
add percentile calculation
Svetlana Shmidt [Tue, 28 Jul 2020 11:52:01 +0000 (16:52 +0500)]
change custom sizes to custom boundaries
Svetlana Shmidt [Tue, 28 Jul 2020 11:44:11 +0000 (16:44 +0500)]
change heap allocation to stack allocation
Svetlana Shmidt [Tue, 28 Jul 2020 09:31:56 +0000 (14:31 +0500)]
fix code duplication
Svetlana Shmidt [Tue, 28 Jul 2020 09:30:44 +0000 (14:30 +0500)]
fixed factor checker
Svetlana Shmidt [Tue, 28 Jul 2020 09:27:04 +0000 (14:27 +0500)]
fix attributes
Svetlana Shmidt [Tue, 28 Jul 2020 09:25:18 +0000 (14:25 +0500)]
add unused attribute
Svetlana Shmidt [Tue, 28 Jul 2020 09:23:20 +0000 (14:23 +0500)]
add static keyword to private functions
Svetlana Shmidt [Mon, 27 Jul 2020 15:29:42 +0000 (20:29 +0500)]
add distribution_average()
Svetlana Shmidt [Mon, 27 Jul 2020 14:32:30 +0000 (19:32 +0500)]
add distribution_update()
Svetlana Shmidt [Mon, 27 Jul 2020 11:45:59 +0000 (16:45 +0500)]
add distribution_clone()
Svetlana Shmidt [Mon, 27 Jul 2020 10:58:52 +0000 (15:58 +0500)]
add custom constructor
Svetlana Shmidt [Mon, 27 Jul 2020 10:50:21 +0000 (15:50 +0500)]
fix possible memory leaks in build_distribution_from_bucket_array
Svetlana Shmidt [Mon, 27 Jul 2020 10:39:53 +0000 (15:39 +0500)]
add exponential constructor
Svetlana Shmidt [Mon, 27 Jul 2020 10:21:27 +0000 (15:21 +0500)]
add build_distribution_from_bucket_array function
Svetlana Shmidt [Mon, 27 Jul 2020 10:11:00 +0000 (15:11 +0500)]
add checks + add infinity bucket
Svetlana Shmidt [Fri, 24 Jul 2020 10:04:18 +0000 (15:04 +0500)]
add linear constructor
Svetlana Shmidt [Fri, 24 Jul 2020 08:46:34 +0000 (13:46 +0500)]
add distribution.h
Florian Forster [Wed, 22 Jul 2020 04:48:05 +0000 (06:48 +0200)]
Merge pull request #3508 from octo/metric_t
Implement metric_t and metric_family_t.
Florian Forster [Mon, 20 Jul 2020 19:30:05 +0000 (21:30 +0200)]
src/daemon/metric.[ch]: Improve doc comments.
Florian Forster [Fri, 17 Jul 2020 08:48:32 +0000 (10:48 +0200)]
statsd plugin: Rename "metric_type_t" to avoid a name clash.
Florian Forster [Fri, 17 Jul 2020 08:36:52 +0000 (10:36 +0200)]
format_json: Rename "label_t" to "keyval_t" in test.
This is to avoid a name clash with the type defined in "metric.h".
Florian Forster [Thu, 16 Jul 2020 16:20:27 +0000 (18:20 +0200)]
src/testing.h: Support NULL pointers in EXPECT_EQ_STR().
Changes in "format_graphite" fix the following error:
./src/testing.h:77:56: error: the address of ‘want’ will always evaluate as ‘true’ [-Werror=address]
77 | #actual, got__ ? got__ : "(null)", expect ? expect : "(null)"); \
Florian Forster [Fri, 17 Jul 2020 08:33:14 +0000 (10:33 +0200)]
src/testing.h: Support const pointers in CHECK_NOT_NULL().
Florian Forster [Tue, 7 Jul 2020 07:52:57 +0000 (09:52 +0200)]
src/daemon/metric.[ch]: Implement metric_family_append().
Florian Forster [Sun, 28 Jun 2020 19:41:47 +0000 (21:41 +0200)]
src/daemon/metric.[ch]: Add metric_family_metric_reset().
This and metric_family_metric_append() replace the metric_list_{add,reset}
functions.
Florian Forster [Sun, 28 Jun 2020 19:07:27 +0000 (21:07 +0200)]
src/daemon/metric.[ch]: Add metric_label_{get,set,reset}().
label_set_{get,add,reset} have been made static, providing the calling
code with a nicer API.
Florian Forster [Tue, 21 Jul 2020 14:43:42 +0000 (16:43 +0200)]
src/daemon/metric.[ch]: Implement metric_parse_identity().
Florian Forster [Sun, 21 Jun 2020 16:33:58 +0000 (18:33 +0200)]
src/daemon/metric.[ch]: Data types and functions representing metrics.
This implementation closely mirrors the Prometheus / OpenMetrics
protocol buffer.
A "metric family" is a set of metrics, all with the same name (but
different labels and/or label values). The identity is split between the
two types: the "metric family" holds the "name" while the "metric" holds
the labels. Likewise, the "metric family" holds the metric type, the
"metric" holds the metric value.
This commit contains all required changes to compile the daemon, but
pretty much everything else still fails to build. The tests have not yet
updated either.
Florian Forster [Mon, 20 Jul 2020 16:36:27 +0000 (18:36 +0200)]
Merge pull request #3509 from octo/avltree
avltree: Return errno values; unify argument handling.
Florian Forster [Thu, 2 Jul 2020 18:52:05 +0000 (20:52 +0200)]
avltree: Return errno values; unify argument handling.
Florian Forster [Fri, 17 Jul 2020 08:12:25 +0000 (10:12 +0200)]
Merge pull request #3507 from octo/remove-absolute
Tree-wide: Remove support for "absolute" metric values.
Florian Forster [Thu, 16 Jul 2020 16:55:13 +0000 (18:55 +0200)]
Tree-wide: Remove support for "absolute" metric values.
Florian Forster [Thu, 16 Jul 2020 18:11:31 +0000 (20:11 +0200)]
Merge pull request #3481 from octo/strbuf
strbuf: Library that implements printing to a dynamically allocated buffer.
Florian Forster [Thu, 9 Jul 2020 10:33:09 +0000 (12:33 +0200)]
strbuf: Update buf->size if realloc succeeds.
Florian Forster [Sun, 21 Jun 2020 19:23:22 +0000 (21:23 +0200)]
strbuf: Implenet "strbuf_printn" and "strbuf_print_escaped".
Florian Forster [Fri, 19 Jun 2020 09:35:19 +0000 (11:35 +0200)]
common: Use the strbuf library in format_values().
Florian Forster [Fri, 19 Jun 2020 09:31:35 +0000 (11:31 +0200)]
common: Add test for format_values().
Florian Forster [Fri, 19 Jun 2020 08:14:53 +0000 (10:14 +0200)]
strbuf: Add STRBUF_CREATE_FIXED, unify naming.
This changes the macro and function name to use "fixed" when a buffer and
its size are provided, and "static" if `sizeof()` is used to determine the
size.
The macros now return and expect a `strbuf_t`, i.e. *not* a pointer. This
makes it easier to see that the buffer is allocated on the stack and may
go out of scope.
The buffer size in the tests has been changed to 9, so that `sizeof(array)`
and `sizeof(pointer)` return different values.
Florian Forster [Fri, 19 Jun 2020 07:41:35 +0000 (09:41 +0200)]
strbuf: Improve documentation of exported functions.
Florian Forster [Fri, 19 Jun 2020 07:41:19 +0000 (09:41 +0200)]
strbuf: Add tests for stack allocation.
Add tests for the STRBUF_CREATE[_STATIC] macros. This surfaced a bug with
the STRBUF_DESTROY macro, which was missing `… while (0)` at the end.
Florian Forster [Mon, 18 Sep 2017 14:35:51 +0000 (16:35 +0200)]
strbuf: Library that implements printing to a dynamically allocated buffer.
Florian Forster [Thu, 9 Jul 2020 15:11:57 +0000 (17:11 +0200)]
Merge pull request #3493 from octo/configfile
src/daemon/configfile.c: Remove special case for the "libvirt" plugin.
Florian Forster [Thu, 2 Jul 2020 18:55:21 +0000 (20:55 +0200)]
src/daemon/configfile.c: Remove special case for the "libvirt" plugin.
Matthias Runge [Sat, 6 Jun 2020 17:37:17 +0000 (19:37 +0200)]
Merge pull request #3263 from duckfez/http_output_fix
write_http no longer writes http response to stdout
Florian Forster [Wed, 20 May 2020 07:46:25 +0000 (09:46 +0200)]
Merge pull request #3463 from miesi/master
mysql: report slave_io_running and slave_sql_running
Thomas Mieslinger [Wed, 20 May 2020 06:13:13 +0000 (08:13 +0200)]
run format.sh to comply with coding style
Thomas Mieslinger [Wed, 20 May 2020 06:09:02 +0000 (08:09 +0200)]
replace long if else with compact code
Thomas Mieslinger [Wed, 20 May 2020 06:07:12 +0000 (08:07 +0200)]
replace slave_running with generic bool
Thomas Mieslinger [Wed, 13 May 2020 19:30:20 +0000 (21:30 +0200)]
mysql: report slave status running io and sql
Florian Forster [Tue, 12 May 2020 07:04:47 +0000 (09:04 +0200)]
Merge pull request #3458 from octo/man-types-db
types.db(5): Improve wording and document conventions.
Florian Forster [Mon, 11 May 2020 07:36:28 +0000 (09:36 +0200)]
types.db(5): Improve wording and document conventions.
Matthias Runge [Wed, 6 May 2020 17:01:31 +0000 (19:01 +0200)]
Merge pull request #3398 from mbakhoff/sensu-source
write_sensu: add the IncludeSource option
Matthias Runge [Wed, 6 May 2020 16:55:41 +0000 (18:55 +0200)]
Merge pull request #3443 from octo/sensors-man
collectd.conf(5): Document the format expected by "sensors"' ignore list.
Florian Forster [Sat, 2 May 2020 20:31:37 +0000 (22:31 +0200)]
Merge pull request #3452 from maciejsszmigiero/mqtt-reconnect-fix
MQTT: Resubscribe after a reconnect
Maciej S. Szmigiero [Fri, 1 May 2020 19:08:17 +0000 (21:08 +0200)]
Fix code style issues in src/mqtt.c
This is an automated code style fix generated by running
"contrib/format.sh src/mqtt.c".
No functional change intended.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Maciej S. Szmigiero [Fri, 1 May 2020 18:15:20 +0000 (20:15 +0200)]
MQTT: Resubscribe after a reconnect
After losing our connection to a MQTT broker our subscription will be gone,
too, so we need to subscribe to our topic once again after reconnecting,
otherwise collectd will not receive any MQTT messages anymore.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Florian Forster [Tue, 28 Apr 2020 16:47:28 +0000 (18:47 +0200)]
Merge pull request #3450 from hightea/zk-add-mntr-fields
Zookeeper - Add missing 3.5 mntr fields
Théophane Charbonnier [Tue, 28 Apr 2020 13:04:42 +0000 (15:04 +0200)]
Zookeeper - Add missing 3.5 mntr fields
Add missing zk_last_proposal_size , zk_min_proposal_size and zk_max_proposal_size mntr fields (available since zk 3.5) to handled fields
Florian Forster [Tue, 28 Apr 2020 10:57:23 +0000 (12:57 +0200)]
Merge pull request #3446 from F4-Group/handle-full-stat-name
Add target in category for varnish 6
Charly Koza [Mon, 27 Apr 2020 09:57:39 +0000 (11:57 +0200)]
Add backend name in vbe stat
Charly Koza [Fri, 24 Apr 2020 09:14:04 +0000 (11:14 +0200)]
Split stat key on dot, extract target for SMA/SMF and use it in category
For example, this adds v0 and Transient for SMA, allowing to monitor
cache size properly
Fixes https://github.com/collectd/collectd/issues/2206
Florian Forster [Mon, 27 Apr 2020 15:44:16 +0000 (17:44 +0200)]
Merge pull request #3445 from F4-Group/varnish6-support
Add varnish 6 support
Charly Koza [Thu, 23 Apr 2020 14:34:16 +0000 (16:34 +0200)]
Restrict workers stats to versions before v6
Ismael Puerto [Sat, 28 Dec 2019 00:19:31 +0000 (01:19 +0100)]
Update counters for MSE 3.0 - varnish plugin
Ismael Puerto [Fri, 27 Dec 2019 23:43:57 +0000 (00:43 +0100)]
Add counter for vmod-goto, only for Varnish Plus 6
Ismael Puerto [Mon, 23 Dec 2019 00:18:57 +0000 (00:18 +0000)]
VSM only apply for Varnish 4 or 5
Charly Koza [Thu, 23 Apr 2020 14:02:48 +0000 (16:02 +0200)]
Add varnish 6 new values
Extracted from https://github.com/collectd/collectd/pull/3360
Florian Forster [Mon, 27 Apr 2020 11:22:45 +0000 (13:22 +0200)]
Merge pull request #3410 from mbakhoff/amqp-failover
amqp: allow multiple hosts for failover
Märt Bakhoff [Mon, 27 Apr 2020 09:22:04 +0000 (12:22 +0300)]
amqp: improve example conf
Florian Forster [Sun, 26 Apr 2020 19:59:14 +0000 (21:59 +0200)]
Merge pull request #3441 from maciejsszmigiero/disk-plugin-udev-rule
Provide an udev rule with ID_SERIAL based, disk plugin usable ID attribute.
Charly Koza [Thu, 23 Apr 2020 14:00:24 +0000 (16:00 +0200)]
Update conf files
Charly Koza [Thu, 23 Apr 2020 13:52:00 +0000 (15:52 +0200)]
Add varnish 6 support
Matthias Runge [Thu, 23 Apr 2020 06:22:24 +0000 (08:22 +0200)]
Merge pull request #2730 from viulian/master
adding mosquitto_loop after mosquitto_publish, otherwise qos=1 messag…
Florian Forster [Thu, 23 Apr 2020 05:42:50 +0000 (07:42 +0200)]
collectd.conf(5): Document the format expected by "sensors"' ignore list.
This question recently came up on the mailing list.
Maciej S. Szmigiero [Sun, 19 Apr 2020 15:57:07 +0000 (17:57 +0200)]
Provide an udev rule with ID_SERIAL based, disk plugin usable ID attribute
Disk plugin UdevNameAttr option is very useful for making sure that the
same disk always ends in the same RRD file no matter which particular
device node it ends being assigned by the OS.
However, using the most fitting ID_SERIAL udev attribute for this purpose
results in data about the whole disk and each partition being mixed
together incorrectly, since this attribute has exactly the same value for
the whole disk device node and its particular partition nodes.
Let's introduce an ID_COLLECTD attribute instead which differentiates
between the whole disk and its particular partitions in a new udev rule
file provided in "contrib" directory.
To warn users about the issue let's also add a relevant note to the
UdevNameAttr option description.
Based on Stewart Adam's workaround from
https://github.com/collectd/collectd/issues/823
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Maciej S. Szmigiero [Sun, 19 Apr 2020 14:34:13 +0000 (16:34 +0200)]
Code files don't need execute permission
Some .c files had execute permission bit set needlessly.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Matthias Runge [Wed, 15 Apr 2020 08:31:31 +0000 (10:31 +0200)]
Merge pull request #3439 from ffontaine/master
src/dpdk_telemetry.c: fix build on musl
Fabrice Fontaine [Tue, 14 Apr 2020 12:49:19 +0000 (14:49 +0200)]
src/dpdk_telemetry.c: fix build on musl
Include unistd.h instead of sys/unistd.h to fix the following build
failure on musl:
src/dpdk_telemetry.c:43:10: fatal error: sys/unistd.h: No such file or directory
#include <sys/unistd.h>
^~~~~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/
aafb8c72f147fefc7a988c45e4dc17de48b07a95
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Dagobert Michelsen [Thu, 9 Apr 2020 14:30:49 +0000 (16:30 +0200)]
Merge pull request #2841 from elfiesmelfie/feat_mdevents
New plugin to read RAID events
Matthias Runge [Thu, 9 Apr 2020 13:31:16 +0000 (15:31 +0200)]
Merge pull request #3432 from ryan-mccabe/master
amqp1: Add options to limit send queue length
Duane Waddle [Sun, 5 Apr 2020 16:18:12 +0000 (11:18 -0500)]
clang-format
Duane Waddle [Sun, 5 Apr 2020 16:12:32 +0000 (11:12 -0500)]
write_http: improved logging of server response
Ryan McCabe [Mon, 23 Mar 2020 19:49:35 +0000 (15:49 -0400)]
amqp1: Add option to limit internal send queue length
ChangeLog: amqp1 plugin: Add option to limit internal send queue length.
Add a config option to control the internal plugin send queue
length: SendQueueLimit
If SendQueueLimit is set to an integer greater than 0, the send queue
in the amqp1 plugin will be constrained to that number of entries to
avoid unbounded memory use in the case that there is no amqp1
connection. If a new message is queued when the queue has reached
maximum length, the oldest message in the queue will be discarded.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
Matthias Runge [Tue, 24 Mar 2020 14:21:15 +0000 (15:21 +0100)]
Merge pull request #3433 from collectd/collectd-5.9
Fix memory leak in write_riemann
Duane Waddle [Mon, 23 Mar 2020 01:25:58 +0000 (20:25 -0500)]
Merge branch 'http_output_fix' into http_fix_2
Duane Waddle [Sat, 21 Mar 2020 23:04:48 +0000 (18:04 -0500)]
Merge pull request #1 from collectd/master
Pull in upstream master
Pavel Rochnyak [Thu, 19 Mar 2020 11:25:08 +0000 (18:25 +0700)]
Merge pull request #3425 from rpv-tomsk/openvpn
openvpn plugin: Fix parsing empty fields
Pavel Rochnyak [Wed, 18 Mar 2020 20:41:56 +0000 (03:41 +0700)]
Merge pull request #3427 from kkepka/update-master-with-5.11-changelog
Update master with 5.11 changelog