]>
git.ipfire.org Git - thirdparty/collectd.git/log
Florian Forster [Tue, 20 Feb 2024 14:17:53 +0000 (15:17 +0100)]
open_telemetry plugin: Move prototypes to a header file.
Florian Forster [Sun, 4 Feb 2024 07:46:23 +0000 (08:46 +0100)]
open_telemetry: Unify the configuration handling between exporter and receiver.
Florian Forster [Sun, 4 Feb 2024 07:45:11 +0000 (08:45 +0100)]
open_telemetry plugin: Minor cleanups.
* Set field to `NULL` after freeing.
* Remove unused global variable.
Florian Forster [Sun, 4 Feb 2024 07:43:33 +0000 (08:43 +0100)]
open_telemetry plugin: Fix spelling in the manpage.
Florian Forster [Fri, 2 Feb 2024 16:05:08 +0000 (17:05 +0100)]
open_telemetry plugin: Add support for floating point counters.
Florian Forster [Fri, 2 Feb 2024 15:18:19 +0000 (16:18 +0100)]
open_telemetry plugin: Update the synopsis in the manpage.
Florian Forster [Fri, 2 Feb 2024 15:15:51 +0000 (16:15 +0100)]
open_telemetry plugin: Add SSL options for the exporter.
Florian Forster [Fri, 2 Feb 2024 12:51:15 +0000 (13:51 +0100)]
open_telemetry plugin: Unify the configuration between exporter and receiver.
Florian Forster [Fri, 2 Feb 2024 12:31:37 +0000 (13:31 +0100)]
open_telemetry plugin: Unify the prefix used in log messages.
Florian Forster [Fri, 2 Feb 2024 12:21:17 +0000 (13:21 +0100)]
open_telemetry plugin: Combine the *open_telemetry_collector* and *write_open_telemetry* plugins.
Florian Forster [Thu, 1 Feb 2024 11:53:31 +0000 (12:53 +0100)]
open_telemetry_collector plugin: Enable gRPC reflection if available.
Florian Forster [Thu, 1 Feb 2024 11:36:01 +0000 (12:36 +0100)]
open_telemetry_collector plugin: Populate `ssl_opts` only when needed.
Florian Forster [Thu, 1 Feb 2024 11:34:15 +0000 (12:34 +0100)]
open_telemetry_collector plugin: Link with protobuf library.
Florian Forster [Thu, 1 Feb 2024 11:31:55 +0000 (12:31 +0100)]
open_telemetry_collector plugin: Reject non-monotonic Sums.
Florian Forster [Thu, 1 Feb 2024 11:30:42 +0000 (12:30 +0100)]
open_telemetry_collector plugin: Unify the setting of `family->type`.
Florian Forster [Thu, 1 Feb 2024 11:30:07 +0000 (12:30 +0100)]
open_telemetry_collector plugin: Add documentation.
Florian Forster [Thu, 1 Feb 2024 11:29:19 +0000 (12:29 +0100)]
open_telemetry_collector plugin: Default to port 4317.
Florian Forster [Thu, 1 Feb 2024 11:28:02 +0000 (12:28 +0100)]
open_telemetry_collector plugin: Report failing metrics as "partial success".
Florian Forster [Thu, 1 Feb 2024 11:25:46 +0000 (12:25 +0100)]
open_telemetry_collector plugin: Use the right kind of context.
Florian Forster [Thu, 1 Feb 2024 06:58:29 +0000 (07:58 +0100)]
open_telemetry_collector: Handle `AGGREGATION_TEMPORALITY_DELTA` correctly.
Florian Forster [Thu, 1 Feb 2024 06:57:10 +0000 (07:57 +0100)]
src/daemon/utils_cache.c: Consistently return `ENOENT` when metrics are not in the cache.
Florian Forster [Wed, 31 Jan 2024 16:29:29 +0000 (17:29 +0100)]
New plugin: Open Telemetry Collector.
Florian Forster [Tue, 20 Feb 2024 10:35:43 +0000 (11:35 +0100)]
Merge pull request #4286 from octo/6/strict-prototypes
[collectd 6] Enable `-Wstrict-prototypes`.
Florian Forster [Tue, 20 Feb 2024 10:02:38 +0000 (11:02 +0100)]
.cirrus.yml: Pass `DEFAULT_CONFIG_OPTS` to configure in the FreeBSD_task.
Florian Forster [Tue, 20 Feb 2024 10:02:05 +0000 (11:02 +0100)]
.cirrus.yml: Fix CFLAGS of the bleeding_edge_compilers_task.
Florian Forster [Tue, 20 Feb 2024 09:39:28 +0000 (10:39 +0100)]
.cirrus.yml: Pass `-Wstrict-prototypes` to `make` but not `configure`.
Florian Forster [Tue, 20 Feb 2024 09:24:07 +0000 (10:24 +0100)]
GitHub Actions: Pass `-Wstrict-prototypes` to `make` but not `configure`.
Florian Forster [Tue, 20 Feb 2024 08:59:00 +0000 (09:59 +0100)]
configure.ac: Report why the bind plugin is disabled.
Florian Forster [Tue, 20 Feb 2024 08:30:39 +0000 (09:30 +0100)]
contrib/format.sh src/netlink.c
Florian Forster [Tue, 20 Feb 2024 08:18:25 +0000 (09:18 +0100)]
ci: Build with `-Wstrict-prototypes` by default.
Florian Forster [Tue, 20 Feb 2024 08:08:43 +0000 (09:08 +0100)]
Global: Fix `-Wstrict-prototypes` warnings.
collectd bot [Tue, 20 Feb 2024 08:05:29 +0000 (09:05 +0100)]
Auto-Merge pull request #4285 from octo/6/write_prometheus_lock
Automatically merged due to "Automerge" label
Florian Forster [Mon, 19 Feb 2024 22:30:49 +0000 (23:30 +0100)]
write_prometheus plugin: Fix a deadlock due to a leaked mutex.
Florian Forster [Mon, 12 Feb 2024 22:03:05 +0000 (23:03 +0100)]
Merge pull request #4278 from octo/6/swap
[collectd 6] swap plugin: Add the `system.paging.faults` metric.
Florian Forster [Mon, 12 Feb 2024 22:01:23 +0000 (23:01 +0100)]
Merge pull request #4275 from octo/6/memory
[collectd 6] memory plugin: Report the `system.linux.memory.available` metric.
Florian Forster [Wed, 7 Feb 2024 21:21:30 +0000 (22:21 +0100)]
swap plugin: Add the `system.paging.faults` metric.
Florian Forster [Wed, 7 Feb 2024 16:19:18 +0000 (17:19 +0100)]
memory plugin: Report the `system.linux.memory.available` metric.
Florian Forster [Wed, 7 Feb 2024 08:54:47 +0000 (09:54 +0100)]
Update ChangeLog for version 6.0.0.rc2.
Florian Forster [Wed, 7 Feb 2024 08:21:19 +0000 (09:21 +0100)]
Add GitHub Action to automatically build and upload release assets.
Florian Forster [Wed, 7 Feb 2024 07:47:08 +0000 (08:47 +0100)]
Merge pull request #4274 from octo/6/cirrus_macos
.cirrus.yml: Add task for Mac OS X, cleanup and improvements.
Florian Forster [Tue, 6 Feb 2024 21:25:20 +0000 (22:25 +0100)]
version-gen.sh: Add the `--tags` flag to `git describe`.
Florian Forster [Tue, 6 Feb 2024 21:05:06 +0000 (22:05 +0100)]
.cirrus.yml: Use proper capitalization for MacOS and FreeBSD.
Florian Forster [Tue, 6 Feb 2024 20:58:57 +0000 (21:58 +0100)]
.cirrus.yml: Remove "or cat log" in favor of uploading logs as artifacts.
Florian Forster [Tue, 6 Feb 2024 20:49:17 +0000 (21:49 +0100)]
.cirrus.yml: Remove "clang" task.
It duplicates a GitHub Action based build.
Florian Forster [Tue, 6 Feb 2024 20:36:23 +0000 (21:36 +0100)]
cirrus.yml: Remove the "default toolchain" tasks.
The default toolchains are already covered well by GitHub Actions.
Florian Forster [Tue, 6 Feb 2024 15:57:37 +0000 (16:57 +0100)]
.cirrus.yml: Run `distcheck` with default configure flags.
Florian Forster [Tue, 6 Feb 2024 15:55:40 +0000 (16:55 +0100)]
.cirrus.yml: Build with `-gdwarf-4` when using clang.
Florian Forster [Tue, 6 Feb 2024 15:16:47 +0000 (16:16 +0100)]
.cirrus.yml: FreeBSD: install "git".
Florian Forster [Tue, 6 Feb 2024 15:11:19 +0000 (16:11 +0100)]
.cirrus.yml: Mac OS X: Pass `DEFAULT_CONFIG_OPTS` to configure.
Florian Forster [Tue, 6 Feb 2024 15:01:50 +0000 (16:01 +0100)]
.cirrus.yml: Disable `CIRRUS_CLONE_SUBMODULES` and run `git submodule` "manually".
Florian Forster [Tue, 6 Feb 2024 14:54:44 +0000 (15:54 +0100)]
.cirrus.yml: Use `${CIRRUS_CPU}` on Mac OS.
`nproc` is not available.
Florian Forster [Tue, 6 Feb 2024 14:39:57 +0000 (15:39 +0100)]
.cirrus.yml: Add macos_task for Mac OS X.
Florian Forster [Tue, 6 Feb 2024 08:03:56 +0000 (09:03 +0100)]
Merge pull request #4272 from octo/6/time_metrics
[collectd 6] Scale time metrics to seconds per second using floating point counters.
Florian Forster [Sat, 3 Feb 2024 21:48:58 +0000 (22:48 +0100)]
Merge pull request #4259 from octo/6/cirrusci
[collectd 6] ci: .cirrus.yml: Upload `.log` files as artifacts.
Florian Forster [Sat, 3 Feb 2024 20:45:15 +0000 (21:45 +0100)]
disk plugin: Report time metrics in seconds.
Florian Forster [Sat, 3 Feb 2024 20:08:58 +0000 (21:08 +0100)]
cpu plugin: Report `system.cpu.time` in seconds, using floating point counters.
Florian Forster [Sat, 3 Feb 2024 19:52:39 +0000 (20:52 +0100)]
common: Add support for floating point counters …
… to `rate_to_value()` and `value_to_rate()`.
Florian Forster [Fri, 2 Feb 2024 16:02:50 +0000 (17:02 +0100)]
Merge pull request #4266 from octo/6/fpcounter
[collectd 6] Introduce a floating point counter type.
collectd bot [Fri, 2 Feb 2024 15:12:41 +0000 (16:12 +0100)]
Auto-Merge pull request #4270 from octo/6/format_stackdriver
Automatically merged due to "Automerge" label
Florian Forster [Fri, 2 Feb 2024 09:52:21 +0000 (10:52 +0100)]
format_stackdriver: Add proper error handling to `sd_output_reset()`.
Florian Forster [Fri, 2 Feb 2024 07:42:17 +0000 (08:42 +0100)]
format_stackdriver: Remove `int` cast from `yajl_gen_double()`.
collectd bot [Thu, 1 Feb 2024 16:35:35 +0000 (17:35 +0100)]
Auto-Merge pull request #4268 from octo/6/format_stackdriver
Automatically merged due to "Automerge" label
Florian Forster [Thu, 1 Feb 2024 15:53:44 +0000 (16:53 +0100)]
format_stackdriver: When JSON generation fails, reset the generator because it is in an unknown state.
Florian Forster [Thu, 1 Feb 2024 15:33:14 +0000 (16:33 +0100)]
src/utils/value_list/value_list.h: Drop outdated comment.
Florian Forster [Thu, 1 Feb 2024 15:26:14 +0000 (16:26 +0100)]
format_open_telemetry: Move the "never reached" comment to `add_metric()`.
Florian Forster [Thu, 1 Feb 2024 15:19:27 +0000 (16:19 +0100)]
src/daemon/utils_cache.c: Avoid `default` in the `family->type` switch statement.
This way the compiler can check that we handle all values in the
`metric_type_t` enum.
Florian Forster [Wed, 31 Jan 2024 14:03:24 +0000 (15:03 +0100)]
src/daemon/metric.h: Add an `IS_CUMULATIVE` macro.
Florian Forster [Wed, 31 Jan 2024 13:51:19 +0000 (14:51 +0100)]
format_kairosdb: Log an error when `uc_get_rate()` fails.
Florian Forster [Wed, 31 Jan 2024 13:49:20 +0000 (14:49 +0100)]
format_json: Don't access `(value_t).gauge` when the type is `FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 12:58:51 +0000 (13:58 +0100)]
src/daemon/metric.h: Order metric types by value.
Florian Forster [Wed, 31 Jan 2024 12:57:20 +0000 (13:57 +0100)]
value_list: Move `DS_TYPE_TO_STRING` out of `src/daemon/plugin.h`.
Florian Forster [Wed, 31 Jan 2024 09:42:16 +0000 (10:42 +0100)]
format_{graphite,influxdb,kairosdb,stackdriver}: Fix compiler warning.
Some compilers don't like empty statements, e.g.:
```
src/utils/format_kairosdb/format_kairosdb.c:122:8: error: label at end of compound statement
122 | case METRIC_TYPE_UNTYPED:
| ^~~~~~~~~~~~~~~~~~~
```
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
write_prometheus plugin: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
format_stackdriver: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
format_open_telemetry: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
format_kairosdb: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
format_json: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
format_influxdb: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
format_graphite: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
cmds: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:46:29 +0000 (08:46 +0100)]
common: Add support for `METRIC_TYPE_FPCOUNTER`.
Florian Forster [Wed, 31 Jan 2024 07:42:16 +0000 (08:42 +0100)]
Daemon: Add a new metric type for floating point counters.
Florian Forster [Wed, 31 Jan 2024 13:38:01 +0000 (14:38 +0100)]
Merge pull request #4265 from octo/6/cache
[collectd 6] cache: Provide the first metric value available alongside the first metric time.
Florian Forster [Wed, 31 Jan 2024 12:53:14 +0000 (13:53 +0100)]
src/daemon/utils_cache_test.c: Add a test case for decreasing gauges.
Florian Forster [Wed, 31 Jan 2024 12:47:34 +0000 (13:47 +0100)]
format_stackdriver: Add missing `break` statements.
Florian Forster [Wed, 31 Jan 2024 12:46:28 +0000 (13:46 +0100)]
format_stackdriver: Consistently handle `METRIC_TYPE_UNTYPED` as an error.
Florian Forster [Wed, 31 Jan 2024 12:45:58 +0000 (13:45 +0100)]
src/daemon/utils_cache.h: Unify comment style.
Florian Forster [Wed, 31 Jan 2024 07:37:49 +0000 (08:37 +0100)]
format_stackdriver: Use the new `uc_first_metric()` function.
Florian Forster [Wed, 31 Jan 2024 07:32:20 +0000 (08:32 +0100)]
src/daemon/utils_cache.c: Let `uc_get_rate()` return early when called with a gauge metric.
Florian Forster [Wed, 31 Jan 2024 07:18:46 +0000 (08:18 +0100)]
src/daemon/utils_cache.c: Add documentation for `uc_get_rate()`.
This also improved the return values to give more information about which error condition occurred.
Florian Forster [Wed, 31 Jan 2024 06:47:19 +0000 (07:47 +0100)]
src/daemon/utils_cache.c: Change `uc_first_metric()` to return time and value.
Returning both in one call ensures these values are consistent, i.e. it avoids
the case that there might have been an update inbewtween reading time and
value.
Florian Forster [Tue, 30 Jan 2024 12:22:52 +0000 (13:22 +0100)]
src/daemon/utils_cache.c: Automatically initialize the cache when needed.
This simplifies writing unit tests using the cache.
Florian Forster [Tue, 30 Jan 2024 12:18:40 +0000 (13:18 +0100)]
chore: Add unit test for `uc_get_rate`.
Florian Forster [Wed, 31 Jan 2024 09:47:16 +0000 (10:47 +0100)]
Merge pull request #4264 from eero-t/gcc-extra
[collectd 6, WIP] Fix more GCC "-Wextra" warnings in collectd core
Florian Forster [Wed, 31 Jan 2024 08:26:08 +0000 (09:26 +0100)]
Merge pull request #4262 from eero-t/gcc-pedantic-func
[collectd 6, WIP] Fix more GCC "-Wpedantic" warnings
Eero Tamminen [Tue, 30 Jan 2024 16:59:46 +0000 (18:59 +0200)]
message_parser.c: fix -Wextra warnings
And arg name in comment for the function calling message parser
callback.
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Eero Tamminen [Tue, 30 Jan 2024 15:51:51 +0000 (17:51 +0200)]
proc_pids.c: fix signed vs. unsigned comparison warnings
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Eero Tamminen [Tue, 30 Jan 2024 15:50:29 +0000 (17:50 +0200)]
format_stackdriver.c: use counter_t instead of casts
All current uses are for counter_t comparisons, so let's just use that
type. Gets rid of signed vs unsigned comparison warning.
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Eero Tamminen [Tue, 30 Jan 2024 11:07:11 +0000 (13:07 +0200)]
mdevents.c: fix -Wpedantic warnings on array initialization
"{}" initializers are C23 feature, not C99 one:
https://en.cppreference.com/w/c/language/array_initialization
In first 2 cases initialization was redundant as "regerror()" and
"regexec()" fill the given arrays. Event initialization needed to be
fixed as last struct item writing is conditional.
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Eero Tamminen [Tue, 30 Jan 2024 10:42:42 +0000 (12:42 +0200)]
rest of plugins: __FUNCTION__ -> __func__ (C99)
Fixes -Wpendantic warnings in rest of plugins.
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>