-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix systemd chart update (eBPF) #13884
Fix systemd chart update (eBPF) #13884
Conversation
…charts avoiding send dimension before chart creation
… to create/remove charts
… remove warning from cachestat
Hi Thiago! Not sure what I'm doing wrong here, I've compiled your branch on an Ubuntu 22.04, in system directories, etc. Running it I get at startup:
|
Hello @MrZammler , Are you running root@hades:/home/thiago/Netdata/netdata# ls -l /usr/libexec/netdata/plugins.d/ebpf.plugin
-rwsr-x--- 1 root netdata 3298016 Oct 26 01:29 /usr/libexec/netdata/plugins.d/ebpf.plugin*
? The error Best regards! |
As far as I see, yes, it should be running as root (e.g. apps.plugin does).
|
Do you start netdata using |
Thanks! I'm starting from the systemd service 🤔 ok let me check a bit and will let you know. Will check on the same system current master to see if it behaves the same. |
Yes, happens on build from master and the package, so something system related. I'll dig a bit into it if I can find something. |
Most likely appears to be a problem with the container I was using to test. Sorry to bother, will test on another VM! |
No problem @MrZammler I am happy you could discover. I was thinking that you run direct on a host. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with stopping, starting cron via systemd, charts appear to behave correctly, no errors in log!
Hey @thiagoftsm . When testing on
I am installing with:
|
Hello @Dim-P , Thanks for your report. This issue is not related with this PR, I will try to recreate it. Is this happening when you stop netdata? Best regards! |
No, it's happening a little while after I restart the Netdata service. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could not reproduce the crash that this PR fixes (on Ubuntu 22.04 with systemd), but I am approving it since I tested it and eBPF works fine (so that it goes into the next release if merged in time).
Summary
This PR fix:
When a service was starting after eBPF plugin is running, it was not recreating properly the dimensions and this could create previous error. This PR is fixing this.
Test Plan
I am really sorry for this, but you will need to use
systemd
to test the PR. 😄systemd
. I suggest to compile with flag-DNETDATA_DEV_MODE=1
.eBPF
andcgroup
inside your/etc/netdata/ebpf.d.conf
:Additional Information
It is not necessary to test on different kernels.
A quick update, I ran this PR during 10 hours without any issue. I was not able to run too long with current master on Arch Linux.
For users: How does this change affect me?
Describe the PR affects users: - Which area of Netdata is affected by the change? eBPF.plugin - Can they see the change or is it an under the hood? If they can see it, where? Yes, the plugin won't fail when a service is stopped. - How is the user impacted by the change? A better plugin - What are there any benefits of the change? eBPF will monitor systemd without issues.