]>
git.ipfire.org Git - thirdparty/collectd.git/log
Svetlana [Mon, 17 Aug 2020 13:06:35 +0000 (13:06 +0000)]
fix memory leaks in clone unit test
Svetlana [Mon, 17 Aug 2020 12:41:39 +0000 (12:41 +0000)]
fix Makefile.am
Svetlana [Mon, 17 Aug 2020 11:56:09 +0000 (11:56 +0000)]
remove benchmark from Makefile
Svetlana [Mon, 17 Aug 2020 11:53:11 +0000 (11:53 +0000)]
remove benchmark csv files
Svetlana [Mon, 17 Aug 2020 11:31:54 +0000 (11:31 +0000)]
remove distribution benchmark as full benchmark was created in google-interns-2020 branch
Svetlana [Fri, 14 Aug 2020 11:12:02 +0000 (11:12 +0000)]
fix codestyle in distribution data structure
Svetlana [Thu, 13 Aug 2020 09:36:34 +0000 (09:36 +0000)]
change includes to collectd.h
Svetlana [Wed, 12 Aug 2020 13:01:25 +0000 (13:01 +0000)]
change benchmark
Svetlana [Wed, 12 Aug 2020 12:53:17 +0000 (12:53 +0000)]
add unit test for clone function
Svetlana [Wed, 12 Aug 2020 12:29:20 +0000 (12:29 +0000)]
add mutexes
Svetlana [Wed, 12 Aug 2020 11:57:34 +0000 (11:57 +0000)]
fix distribution clone function
Svetlana [Tue, 11 Aug 2020 13:21:45 +0000 (13:21 +0000)]
fix codestyle
Svetlana [Tue, 11 Aug 2020 13:20:18 +0000 (13:20 +0000)]
removed unnecessary if condition from the building function
Svetlana [Fri, 7 Aug 2020 12:15:24 +0000 (12:15 +0000)]
add benchmark for million updates
Svetlana [Fri, 7 Aug 2020 10:39:56 +0000 (10:39 +0000)]
benchmark done
Svetlana [Thu, 6 Aug 2020 14:27:33 +0000 (14:27 +0000)]
add benchmark
Svetlana [Mon, 3 Aug 2020 15:05:40 +0000 (15:05 +0000)]
add unit tests for percentile calculation
Svetlana [Mon, 3 Aug 2020 13:56:20 +0000 (13:56 +0000)]
add unit tests for average function
Svetlana [Mon, 3 Aug 2020 13:16:17 +0000 (13:16 +0000)]
add unit tests for update function
Svetlana [Mon, 3 Aug 2020 09:25:22 +0000 (09:25 +0000)]
add unit tests for custom constructor + add inf checker to custom constructor
Svetlana [Mon, 3 Aug 2020 08:36:15 +0000 (08:36 +0000)]
change return value from tree getter function
Svetlana [Mon, 3 Aug 2020 08:27:20 +0000 (08:27 +0000)]
remove libdistribution.la and remove -lm from COMMON_LIBS
Svetlana [Fri, 31 Jul 2020 12:24:26 +0000 (12:24 +0000)]
fix exponential constructor unit tests
Svetlana [Fri, 31 Jul 2020 12:11:20 +0000 (12:11 +0000)]
add some tests for exponential constructor (test failed because of doubles equality check)
Svetlana [Fri, 31 Jul 2020 11:54:59 +0000 (11:54 +0000)]
add destroy function for bucket_array_t data structure
Svetlana [Fri, 31 Jul 2020 11:34:32 +0000 (11:34 +0000)]
add some unit tests for distribution_new_exponential
Svetlana [Fri, 31 Jul 2020 09:53:49 +0000 (09:53 +0000)]
add some test for distribution_new_linear
Svetlana [Fri, 31 Jul 2020 09:44:20 +0000 (09:44 +0000)]
add some unit tests for distribution_new_linear
Svetlana [Fri, 31 Jul 2020 09:27:09 +0000 (09:27 +0000)]
add some unit tests for distribution_new_linear
Svetlana [Fri, 31 Jul 2020 08:58:41 +0000 (08:58 +0000)]
add checker to bucket getter
Svetlana [Fri, 31 Jul 2020 08:43:23 +0000 (08:43 +0000)]
add getter for buckets
Svetlana [Thu, 30 Jul 2020 12:58:53 +0000 (12:58 +0000)]
add some unit tests for distribution_new_linear
Svetlana [Thu, 30 Jul 2020 10:45:01 +0000 (10:45 +0000)]
add distribution_num_buckets function
Svetlana [Thu, 30 Jul 2020 10:37:32 +0000 (10:37 +0000)]
move bucket_t declaration to the header file
Svetlana [Thu, 30 Jul 2020 10:32:48 +0000 (10:32 +0000)]
add unit tests into a build system
Svetlana [Wed, 29 Jul 2020 13:44:44 +0000 (13:44 +0000)]
test ssh commit
Svetlana [Wed, 29 Jul 2020 13:34:08 +0000 (13:34 +0000)]
add distribution files to build system
Svetlana [Wed, 29 Jul 2020 13:33:30 +0000 (13:33 +0000)]
add distribution_test.c file
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.