0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 09:11:50 +00:00
Commit graph

19833 commits

Author SHA1 Message Date
Ilya Mashchenko
c718bca80d
netdata-uninstaller: improve input prompt with more descriptive guidance () 2025-03-13 22:50:26 +02:00
Costa Tsaousis
369635d2f7
daemon status 15 () 2025-03-13 21:32:24 +02:00
Costa Tsaousis
a20869aa37
fix crashes identified by sentry ()
* check for the existance of rc->rrdset

* avoid division by zero

* format rfc3339 days avoiding sprintf
2025-03-13 20:38:05 +02:00
Costa Tsaousis
766e65288c
make sure alerts are concurrently altered by dyncfg () 2025-03-13 19:16:56 +02:00
Costa Tsaousis
a4341ee3d7
fix contexts labels to avoid clearing the rrdlabels pointer () 2025-03-13 19:16:45 +02:00
Costa Tsaousis
b51fdecd43
minor fixes ()
* extended dbegnine stats should be enabled

* creash reports are enabled when the agent is claimed (directly or indirectly)

* make mmap() report out of memory

* for open cache, use the current hot size, not the max ever used
2025-03-13 16:25:55 +02:00
alorente
35214fd7ac
Add oci meta info ()
* Update CI with OCI Meta information

* Add OCI Meta information to Dockerfile

* Add BUILD_DATE
2025-03-13 09:57:24 -04:00
Ilya Mashchenko
a8c738c7d7
fix updating on RPi2+ () 2025-03-13 12:36:38 +00:00
dependabot[bot]
54fc0901a5
build(deps): bump github.com/vmware/govmomi from 0.48.1 to 0.49.0 in /src/go ()
build(deps): bump github.com/vmware/govmomi in /src/go

Bumps [github.com/vmware/govmomi](https://github.com/vmware/govmomi) from 0.48.1 to 0.49.0.
- [Release notes](https://github.com/vmware/govmomi/releases)
- [Changelog](https://github.com/vmware/govmomi/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vmware/govmomi/compare/v0.48.1...v0.49.0)

---
updated-dependencies:
- dependency-name: github.com/vmware/govmomi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 10:14:15 +02:00
dependabot[bot]
cf7a071618
build(deps): bump k8s.io/client-go from 0.32.2 to 0.32.3 in /src/go ()
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.32.2 to 0.32.3.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.32.2...v0.32.3)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 09:35:44 +02:00
netdatabot
42f722f92d [ci skip] Update changelog and version for nightly build: v2.2.0-386-nightly. 2025-03-13 00:22:47 +00:00
Ilya Mashchenko
ba9678db6c
docs: fix typos in nodes-ephemerality.md () 2025-03-13 00:14:51 +02:00
Costa Tsaousis
ffe402f023
Fix RRDDIM_MEM storage engine index ()
* add more logging to rrddim fatal incorrect pointer returned from index

* increase status file version to 13

* remove reuse of old uuidmap ids

* debug info to find leaked refcount

* fix strings leak in streaming; count delayed dictionaries

* switch rd pointer when rrddim_mem finds the same uuidmap id on a different rrddim

* fix the rrdset-name cleanup

* cleanup
2025-03-12 23:15:47 +02:00
vkalintiris
a6cc2215f4
Fix for building with protobuf 30.0 () 2025-03-12 17:37:03 +00:00
Costa Tsaousis
1a75f552b6
fix rrdset name crash on cleanup ()
* fix rrdset name crash on cleanup

* move rrdset name management outside of the contructors/destructors of the rrdset
2025-03-12 19:19:31 +02:00
Costa Tsaousis
36e4688474
when destroying pgc, check if the cache is null () 2025-03-12 18:16:59 +02:00
Costa Tsaousis
00f4b111f4
free strings judy arrays to show leaked strings ()
* free strings judy arrays to show leaked strings

* fix cleanup of rrd functions

* free ae->summary when freeing alert transitions

* fix leak in dyncfg json parsing of alert prototypes

* fix leak in chart names

* fix leak in query leaking units

* fix plugins.d leaking strings

* delay stream connector exit

* log startup/shutdown step in sanitizer mode
2025-03-12 18:08:24 +02:00
Costa Tsaousis
90f94eba47
store status file in /var/lib/netdata, not in /var/cache/netdata ()
* store status file in /var/lib/netdata, not in /var/cache/netdata

* add db mode and db tiers to the status file

* fix compilation

* remove old status files

* clear errno after deletions

* save kubernetes status

* do not cleanup old status files on every save
2025-03-12 14:47:03 +02:00
Netdata bot
20c916088e
Regenerate integrations docs ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2025-03-12 12:09:28 +00:00
Austin S. Hemmelgarn
2895c0ec3e
Fix typo in otel collector build infra. () 2025-03-12 12:06:15 +00:00
Ilya Mashchenko
aed408ec41
improvement(go.d/k8state): add CronJob suspend status ()
* improvement(go.d/k8state): add CronJob suspend status

* fix tests
2025-03-12 14:03:01 +02:00
netdatabot
354c643151 [ci skip] Update changelog and version for nightly build: v2.2.0-375-nightly. 2025-03-12 11:55:15 +00:00
Costa Tsaousis
b9bf7632f2
Revert "fix rrdset name crash on rrdset obsoletion" ()
Revert "fix rrdset name crash on rrdset obsoletion ()"

This reverts commit c625dc4fdf.
2025-03-12 11:37:20 +02:00
netdatabot
5283bb0674 [ci skip] Update changelog and version for nightly build: v2.2.0-373-nightly. 2025-03-12 01:30:40 +00:00
Costa Tsaousis
c625dc4fdf
fix rrdset name crash on rrdset obsoletion ()
fix rrdset name crash on cleanup
2025-03-11 17:55:21 +02:00
Costa Tsaousis
272ea7cb94
rrdhost name fix heap-use-after-free ()
rrdhost machine guid should not be linked, but copied to the dictionary, so that delayed destruction of the dictionary will not introduce heap-use-after-free
2025-03-11 17:52:15 +02:00
Costa Tsaousis
932bbf3b4e
Finding leaks No 2 ()
* remove the RRDHOST hostname index

* do not use flags for indexing hosts

* add dictionary_garbage_collect() to dictionary_flush()

* just destroy remaining hot/dirty pages on shutdown

* fix dictionaries not adding dictionaries for garbage collect
2025-03-11 17:36:02 +02:00
Ilya Mashchenko
67f048bce7
build(otel-collector): update to v0.121.0 ()
* build(otel-collector): update to v0.121.0

* go mod tidy
2025-03-11 17:35:18 +02:00
Ilya Mashchenko
fcffb2d12c
use notice log level for "machine ID found" () 2025-03-11 15:22:53 +00:00
Austin S. Hemmelgarn
63289c53fe
Integrate OpenTelemetry collector build into build system. ()
* Fix Go version requirement detection to not have external deps.

Instead of relying on a UNIX-like environment with the `grep` and `cut`
commands, perform the required data extraction using CMake code. This
makes it more portable, but also should speed things up a tiny bit
because it doesn’t require invoking external commands.

* Preliminary integration of the new otel-collector into the build.

Adding `-DENABLE_PLUGIN_OTEL=On` to CMake options will enable building
the plugin and installing it.

Currently disabled by default, and does not include packaging
integration yet.

The plugin itself can be built independently of the primary build system
but using the same build infrastructure that is used to build it as
part of the regular build by using CMake in the src/go/otel-collector
directory.

* Minor cleanup.

* Fix build prefix.

* Restructure to not use a sub-project.
2025-03-11 07:27:29 -04:00
Austin S. Hemmelgarn
fcb6217301
Include libucontext in static builds to vendor libunwind even on POWER. () 2025-03-11 06:58:11 -04:00
Costa Tsaousis
e9b9fb75c4
Free all memory on exit ()
* destroy caches

* cleanup the mrg and all hosts

* cleanup uuidmap

* cleanup inline functions and replication

* Add destroy_aclk_config function to free aclk_config in RRDHOST

* flush all hot pages after the collection has been finalized

* increase daemon status file version to 13

---------

Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
2025-03-11 10:41:25 +02:00
netdatabot
c67f79b75d [ci skip] Update changelog and version for nightly build: v2.2.0-364-nightly. 2025-03-11 00:22:52 +00:00
Stelios Fragkakis
94ebd49f03
Acquire datafile for deletion before calculating retention ()
Make sure datafile is acquired before update_metrics_first_time_s
2025-03-11 00:29:08 +02:00
Costa Tsaousis
ec48ad55ef
Fix LSAN and memory leaks ()
* add SIGUSR1 for exiting immediately, so that LSAN can check for leaks

* fix system info leak

* adapt to changed semantics of rrdhost system_info

* fix memory leak in rrdcontexts when matching alerts

* do not system info after it was freed

* allow sentry to send its reports
2025-03-10 15:44:57 +02:00
Netdata bot
e3484260d3
Regenerate integrations docs ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2025-03-10 11:54:28 +00:00
Ilya Mashchenko
c91d2c1d50
fix(go.d/pihole): switch to pihole6 api ()
switch to pihole6 api
2025-03-10 13:51:55 +02:00
Ilya Mashchenko
de71509c3f
fix(go.d/filecheck): remove dyncfg path validation pattern ()
fix(go.d/filecheck): remove pattern for dyncfg path validation
2025-03-10 13:50:19 +02:00
Stelios Fragkakis
be6f7c2963
Avoid zero timeout in libuv timers ()
Avoid 0 ms timer timeout as it can cause high cpu usage in older versions of libuv
2025-03-10 10:46:11 +02:00
netdatabot
bf3087c214 [ci skip] Update changelog and version for nightly build: v2.2.0-357-nightly. 2025-03-10 00:19:51 +00:00
Costa Tsaousis
070fcf1dc9
Detect memory leaks ()
* make stderr remain intact when FSANITIZE_ADDRESS is set

* switching users makes the sanitizer fail

* check for failure to memory map journal file

* fix memory leak in buildinfo

* fix memory leak in stream_sender_structures_init(), when it is called via rrdhost_update()

* log more information when running under FSANITIZE_ADDRESS

* fix formatting
2025-03-09 13:22:23 +02:00
netdatabot
3c21d20c04 [ci skip] Update changelog and version for nightly build: v2.2.0-355-nightly. 2025-03-09 00:20:44 +00:00
Costa Tsaousis
b71ecf1c03
do not change the scheduling policy by default () 2025-03-08 23:47:16 +02:00
Costa Tsaousis
bb42987e8d
fix fsanitize ifdefs () 2025-03-08 23:20:58 +02:00
Costa Tsaousis
73daaf8ea9
Help finding leaks and running valgrind ()
* disable signal handler when compiling with -DFSANITIZE=1

* no need for packed ; valgrind complains about it

* help the IDE detect use after free, when removing receiver and senders

* disable function inlining when compiling with -DFSANITIZE
2025-03-08 20:31:09 +02:00
Costa Tsaousis
48a12f6f51
fix memory corruption in streaming () 2025-03-08 18:22:44 +02:00
Netdata bot
149434ad84
Regenerate integrations docs ()
Co-authored-by: thiagoftsm <49162938+thiagoftsm@users.noreply.github.com>
2025-03-08 18:14:29 +02:00
thiagoftsm
556318463f
ADFS (windows.plugin) () 2025-03-08 15:26:35 +00:00
Costa Tsaousis
3d5575dee5
async-signal-safe stack traces ()
* make stack traces unique on macos

* use local unwinding only; make sure libunwind stack traces are async-signal-safe

* add missing libraries when no stack traces backend is available

* make sure all signal handler calls are async safe

* save a status file every 10 minutes

* save a status file every 15 minutes - better implementation

* use monotonic clock to ensure fixed step in saving updates

* simpler version
2025-03-08 15:01:32 +02:00
Netdata bot
917dc197a7
Regenerate integrations docs ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2025-03-08 11:46:27 +02:00