]>
git.ipfire.org Git - thirdparty/collectd.git/log
Svetlana [Mon, 17 Aug 2020 13:18:43 +0000 (13:18 +0000)]
fix distbench/Makefile.am
Svetlana [Fri, 14 Aug 2020 11:30:53 +0000 (11:30 +0000)]
fix the redefinition of bucket_t data structure
Svetlana [Fri, 14 Aug 2020 10:55:29 +0000 (10:55 +0000)]
fix codestyle for the benchmark
Svetlana [Fri, 14 Aug 2020 10:52:08 +0000 (10:52 +0000)]
fix the codestyle
Svetlana Shmidt [Fri, 14 Aug 2020 10:35:27 +0000 (15:35 +0500)]
Merge pull request #2 from Lana243/benchmark
Benchmark
Svetlana [Thu, 13 Aug 2020 16:57:24 +0000 (16:57 +0000)]
full benchmark done
Svetlana [Thu, 13 Aug 2020 15:33:29 +0000 (15:33 +0000)]
NANOS_PER_SEC fixed
Svetlana [Thu, 13 Aug 2020 15:20:11 +0000 (15:20 +0000)]
change output style for benchmark
Svetlana [Thu, 13 Aug 2020 15:17:36 +0000 (15:17 +0000)]
add benchmark
Svetlana [Thu, 13 Aug 2020 10:38:02 +0000 (10:38 +0000)]
fix header
Svetlana [Thu, 13 Aug 2020 10:37:05 +0000 (10:37 +0000)]
fix implementations that way that they were compiled with new header
Svetlana Shmidt [Thu, 13 Aug 2020 10:01:28 +0000 (15:01 +0500)]
add bkjg implementation
Svetlana Shmidt [Thu, 13 Aug 2020 10:00:01 +0000 (15:00 +0500)]
add margalit implementation
Svetlana Shmidt [Thu, 13 Aug 2020 09:53:50 +0000 (14:53 +0500)]
add sshmidt implementation
Svetlana Shmidt [Thu, 13 Aug 2020 09:48:45 +0000 (14:48 +0500)]
Rename function.h to distribution.h
Svetlana Shmidt [Thu, 13 Aug 2020 09:46:29 +0000 (14:46 +0500)]
remove bucket_t definition from the header file
Svetlana Shmidt [Thu, 13 Aug 2020 09:45:07 +0000 (14:45 +0500)]
add header file
Barbara Kaczorowska [Wed, 12 Aug 2020 10:29:07 +0000 (10:29 +0000)]
Merge pull request #3519 from yath/google-interns-2020
[Interns] Add a skeleton for benchmarking distribution_t.
Sebastian Schmidt [Wed, 12 Aug 2020 10:04:11 +0000 (12:04 +0200)]
Fall back to gettimeofday if there’s no clock_gettime.
Sebastian Schmidt [Wed, 12 Aug 2020 09:52:03 +0000 (11:52 +0200)]
Add missing function.h to *_SOURCES
Sebastian Schmidt [Wed, 12 Aug 2020 09:20:28 +0000 (11:20 +0200)]
Add a skeleton for benchmarking distribution_t.
This adds a “distbench” subdirectory for benchmarking different
implementations of distribution_t and three sample implementations.
Florian Forster [Mon, 10 Aug 2020 07:46:01 +0000 (09:46 +0200)]
daemon: Remove uc_get_rate_by_name_vl().
The implementation has already been removed.
Florian Forster [Mon, 10 Aug 2020 06:35:36 +0000 (08:35 +0200)]
cmds: Disable the GETVAL test relying on the default host behavior.
Florian Forster [Mon, 10 Aug 2020 06:35:10 +0000 (08:35 +0200)]
Makefile.am: Link libcommon with libmetric.
Florian Forster [Fri, 31 Jul 2020 06:53:17 +0000 (08:53 +0200)]
cmds: Change GETVAL to use parse_legacy_identifier().
Florian Forster [Fri, 31 Jul 2020 06:54:47 +0000 (08:54 +0200)]
common: Fix a memory leak in plugin_value_list_to_metric_family().
The temporary metric_t needs to be reset, otherwise the labels leak.
Florian Forster [Thu, 30 Jul 2020 16:35:00 +0000 (18:35 +0200)]
daemon, common: Move plugin_value_list_to_metric_family().
Florian Forster [Thu, 30 Jul 2020 16:31:19 +0000 (18:31 +0200)]
common: Implement parse_legacy_identifier().
Florian Forster [Thu, 30 Jul 2020 16:21:06 +0000 (18:21 +0200)]
common: Add a "data_source" return argument to parse_identifier_vl().
Florian Forster [Wed, 29 Jul 2020 11:45:11 +0000 (13:45 +0200)]
cmds: Remove "data source" from the FLUSH command.
Florian Forster [Tue, 21 Jul 2020 17:05:55 +0000 (19:05 +0200)]
format_json: migrate to metric_parse_identity().
Florian Forster [Tue, 21 Jul 2020 17:01:08 +0000 (19:01 +0200)]
cmds: migrate to metric_parse_identity().
Florian Forster [Fri, 17 Jul 2020 11:36:25 +0000 (13:36 +0200)]
Makefile.am: Remove libidentity.la
Florian Forster [Fri, 17 Jul 2020 11:36:08 +0000 (13:36 +0200)]
src/daemon/plugin_mock.c: Remove metrics_list_t.
Florian Forster [Fri, 17 Jul 2020 11:19:23 +0000 (13:19 +0200)]
format_json: s/keyval_t/label_t/g
Florian Forster [Fri, 17 Jul 2020 11:18:16 +0000 (13:18 +0200)]
format_graphite: Remove left-over line from resolving merge conflicts.
Florian Forster [Thu, 16 Jul 2020 14:05:24 +0000 (16:05 +0200)]
.travis.yml: Disable plugins that are known not to build yet.
Florian Forster [Fri, 17 Jul 2020 16:08:46 +0000 (18:08 +0200)]
format_graphite: Format with contrib/format.sh
Florian Forster [Fri, 17 Jul 2020 16:08:38 +0000 (18:08 +0200)]
common: Format with contrib/format.sh
Florian Forster [Fri, 17 Jul 2020 16:08:32 +0000 (18:08 +0200)]
cmds: Format with contrib/format.sh
Florian Forster [Thu, 16 Jul 2020 11:11:21 +0000 (13:11 +0200)]
src/daemon/plugin_mock.c: Format with contrib/format.sh
Florian Forster [Thu, 16 Jul 2020 09:59:55 +0000 (11:59 +0200)]
format_graphite: Remove static buffer from unit test.
Some ancient GCC versions whine about a check being always true,
breaking the test.
Florian Forster [Thu, 16 Jul 2020 09:53:01 +0000 (11:53 +0200)]
.cirrus.yml: Disable the "built plugins" check for now.
Florian Forster [Thu, 16 Jul 2020 09:40:35 +0000 (11:40 +0200)]
format_json: Free memory allocated in the "metric_family" test.
Florian Forster [Thu, 16 Jul 2020 09:40:05 +0000 (11:40 +0200)]
src/utils/cmds/cmds_test.c: Free memory allocated in the string buffer.
Florian Forster [Thu, 16 Jul 2020 09:27:01 +0000 (11:27 +0200)]
.cirrus.yml: Print test-suite.log on failure.
Florian Forster [Wed, 15 Jul 2020 21:56:07 +0000 (23:56 +0200)]
metadata: Fix unit test.
Florian Forster [Wed, 15 Jul 2020 21:45:28 +0000 (23:45 +0200)]
Remove test_utils_metrics_list.
Florian Forster [Wed, 15 Jul 2020 21:38:16 +0000 (23:38 +0200)]
common: Fix unit test.
Florian Forster [Wed, 15 Jul 2020 14:24:11 +0000 (16:24 +0200)]
match: Fix the build of the "match" utility by removing support for "absolute".
Florian Forster [Mon, 20 Jul 2020 18:51:54 +0000 (20:51 +0200)]
write_http plugin: Migrate to PUTMETRIC.
Florian Forster [Mon, 20 Jul 2020 18:51:35 +0000 (20:51 +0200)]
common: Fix parse_identifier{,_vl}().
Florian Forster [Wed, 15 Jul 2020 14:18:42 +0000 (16:18 +0200)]
cmds: Fix the PUTVAL command.
This is a partial roll-back of previous code that tried to convert PUTVAL
to use metric_t. This role is now filled by PUTMETRIC instead.
Modifications to the "common" plugin (particularly "parse_identifier" and
"parse_identifier_vl" fix the "cmds" unit tests.
The "cmd_create_putval" function has been removed because output will use
the new metric format instead.
Florian Forster [Wed, 15 Jul 2020 12:01:18 +0000 (14:01 +0200)]
cmds: Implement the "PUTMETRIC" command.
Florian Forster [Tue, 14 Jul 2020 17:40:52 +0000 (19:40 +0200)]
.cirrus.yml: Disable plugins that are known not to build yet.
Florian Forster [Tue, 14 Jul 2020 19:22:46 +0000 (21:22 +0200)]
format_graphite: Fix unit test.
Florian Forster [Tue, 14 Jul 2020 18:54:19 +0000 (20:54 +0200)]
src/utils/cmds/getthreshold.c: Fix (incorrect) "missing-braces" warning.
Florian Forster [Fri, 17 Jul 2020 16:07:57 +0000 (18:07 +0200)]
format_kairosdb: Format with contrib/format.sh
Florian Forster [Fri, 17 Jul 2020 16:07:49 +0000 (18:07 +0200)]
format_json: Format with contrib/format.sh
Florian Forster [Fri, 17 Jul 2020 16:07:40 +0000 (18:07 +0200)]
cmds: Format with contrib/format.sh
Florian Forster [Tue, 14 Jul 2020 17:42:56 +0000 (19:42 +0200)]
Format with contrib/format.sh
Florian Forster [Thu, 9 Jul 2020 10:31:36 +0000 (12:31 +0200)]
format_json: Replace the JSON_ADD[F] macros.
This unifies the approach taken by the format_json and format_kairosdb
packages.
Florian Forster [Thu, 9 Jul 2020 10:29:15 +0000 (12:29 +0200)]
format_json, format_kairosdb: Don't enable beatification of JSON.
The code depends on the last character in the buffer being ']'. If
"beautification" is enabled, it will add a newline at the end, which
breaks the "append" mechanic.
Florian Forster [Wed, 8 Jul 2020 21:06:34 +0000 (23:06 +0200)]
write_http plugin: Implement support for metric_family_t.
Florian Forster [Wed, 8 Jul 2020 20:58:02 +0000 (22:58 +0200)]
cmds: Change cmd_create_putval() to accept a strbuf_t.
Florian Forster [Wed, 8 Jul 2020 20:55:54 +0000 (22:55 +0200)]
format_kairosdb: Implement support for metric_family_t.
Florian Forster [Wed, 8 Jul 2020 20:18:04 +0000 (22:18 +0200)]
format_json: Add support for appending metric_family_t's to the buffer.
With this change, multiple metric_family_t's can be added to a buffer
sequentially. The implementation that did not use libyajl has been
removed because it was unused (it only implemented marshalling of
value_list_t).
Florian Forster [Wed, 8 Jul 2020 07:08:18 +0000 (09:08 +0200)]
memory plugin: Implement support for metric_family_t.
Florian Forster [Sat, 4 Jul 2020 15:59:02 +0000 (17:59 +0200)]
cpu plugin: Convert percent metrics to metric_family_t.
Florian Forster [Thu, 2 Jul 2020 18:24:34 +0000 (20:24 +0200)]
metadata: Return errno values without negation.
Florian Forster [Thu, 2 Jul 2020 18:23:55 +0000 (20:23 +0200)]
format_stackdriver: Correctly report sd_output_register_metric errors.
Florian Forster [Thu, 2 Jul 2020 18:23:16 +0000 (20:23 +0200)]
write_stackdriver plugin: Log sd_output_register_metric errors.
Florian Forster [Thu, 2 Jul 2020 10:11:52 +0000 (12:11 +0200)]
format_stackdriver: Check for counter reset in format_time_series().
Previously, this check was done in format_typed_value() when the time
series data was already partially written to the buffer. Doing the check
there would result in invalid JSON output.
Additionally, the comparison was the wrong way around, causing the
assertion to fail for all counter metrics.
Florian Forster [Wed, 1 Jul 2020 20:19:15 +0000 (22:19 +0200)]
write_stackdriver plugin: Implement support for metric_family_t.
Florian Forster [Wed, 1 Jul 2020 20:17:58 +0000 (22:17 +0200)]
format_stackdriver: Fix and expand unit test.
Florian Forster [Mon, 29 Jun 2020 08:43:29 +0000 (10:43 +0200)]
Makefile.am: Fix some linking issues with the utility libraries.
Florian Forster [Mon, 29 Jun 2020 08:35:35 +0000 (10:35 +0200)]
cpu plugin: Actually set the metric value.
Fixes a regression introduced in
18b6e8502e6acdb79d5d55ac6dca38fc6e98dc13 .
Florian Forster [Mon, 29 Jun 2020 08:20:09 +0000 (10:20 +0200)]
write_log plugin: Implement support for metric_family_t.
Florian Forster [Mon, 29 Jun 2020 08:03:21 +0000 (10:03 +0200)]
format_stackdriver: Implement support for metric_family_t.
Florian Forster [Sun, 28 Jun 2020 20:20:42 +0000 (22:20 +0200)]
format_json: Implement support for metric_family_t.
Florian Forster [Sun, 28 Jun 2020 20:20:20 +0000 (22:20 +0200)]
format_graphite: Implement support for metric_family_t.
Florian Forster [Sun, 28 Jun 2020 20:19:59 +0000 (22:19 +0200)]
cmds: Implement support for metric_family_t.
Florian Forster [Thu, 16 Jul 2020 16:18:06 +0000 (18:18 +0200)]
cpu plugin: Convert to new metric API.
Florian Forster [Fri, 17 Jul 2020 11:14:09 +0000 (13:14 +0200)]
cpu plugin: Convert to the new metric_family_t structure.
Florian Forster [Fri, 17 Jul 2020 11:13:18 +0000 (13:13 +0200)]
threshold plugin: Fix a debug message.
Florian Forster [Fri, 17 Jul 2020 11:12:33 +0000 (13:12 +0200)]
common: Create the metric_family_t and metric_t types.
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.
The "cpu plugin" has been updated as a proof-of-concept implementation.
# Conflicts:
# src/daemon/plugin.h
Florian Forster [Fri, 17 Jul 2020 11:10:36 +0000 (13:10 +0200)]
format_kairosdb: s/metric_t/metric_single_t/
Florian Forster [Fri, 17 Jul 2020 11:10:26 +0000 (13:10 +0200)]
format_json: s/metric_t/metric_single_t/
Florian Forster [Fri, 17 Jul 2020 11:10:13 +0000 (13:10 +0200)]
format_graphite: s/metric_t/metric_single_t/
Florian Forster [Fri, 17 Jul 2020 11:10:04 +0000 (13:10 +0200)]
common: s/metric_t/metric_single_t/
Florian Forster [Fri, 17 Jul 2020 11:09:55 +0000 (13:09 +0200)]
cmds: s/metric_t/metric_single_t/
Florian Forster [Fri, 17 Jul 2020 11:08:51 +0000 (13:08 +0200)]
Various: s/metric_t/metric_single_t/g
Florian Forster [Wed, 24 Jun 2020 20:32:31 +0000 (22:32 +0200)]
write_log plugin: Update to the new interfaces of format_{graphite,json}.
Florian Forster [Fri, 17 Jul 2020 11:06:38 +0000 (13:06 +0200)]
Makefile.am: Link libplugin_mock.la with libmetadata.la.
Florian Forster [Wed, 24 Jun 2020 09:08:01 +0000 (11:08 +0200)]
format_json: Reimplement format_json_metric().
This new implementation uses the new format of the metric_t type.
It produces output that is compatible with the prometheus/prom2json
project.
Florian Forster [Tue, 23 Jun 2020 10:11:16 +0000 (12:11 +0200)]
cmds: Fix putval so it compiles.
This is a stop-gap solution. I think we need to come up with a nicer way
of encoding the metric identity for PUTVAL commands.
Florian Forster [Tue, 23 Jun 2020 08:49:14 +0000 (10:49 +0200)]
Makefile.am: Link the daemon with libmetadata.la.
Instead of re-compiling utils/metadata/meta_data.c.
Florian Forster [Sun, 21 Jun 2020 17:52:21 +0000 (19:52 +0200)]
src/utils/cmds/getthreshold.c: Adapt to the new metric_t structure.
Florian Forster [Fri, 17 Jul 2020 11:21:48 +0000 (13:21 +0200)]
Various: Changes because src/daemon/metric.[ch] was created.
Florian Forster [Sun, 21 Jun 2020 15:09:40 +0000 (17:09 +0200)]
write_graphite: Update to the new format_graphite interface.