forked from netdata/netdata
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pull] master from netdata:master #279
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…es. (#19332) * Abort on non-zero rc when we have sentry. * Abort on recursive-fatals when sentry is enabled * Add function that returns last reported system memory. * Provide available memory in fatal message. * Update system_memory.c --------- Co-authored-by: Costa Tsaousis <[email protected]>
Add current alert version to aclk-state
…#19248) * Add option to updater to report status of auto-updates on the system. * Improve systemd detection. The _official_ way to check if a system is running systemd is to call `systemctl is-system-running` and check the output. This adds that checking to places where we are otherwise looking for systemd. * Remove pointless subshell.
* Add instructions for Docker Compose * update link * add missing dot (.) * add changes to metadata.yaml * remove changes from README.md --------- Co-authored-by: Fotis Voutsas <[email protected]>
Co-authored-by: Ancairon <[email protected]>
Reviewer's Guide by SourceryThis pull request introduces several changes related to systemd detection, memory allocation error handling, and auto-update functionality. It also includes improvements to email notifications for Docker Compose users and updates the handling of fatal errors. Sequence diagram for improved systemd detection flowsequenceDiagram
participant S as System
participant D as Netdata Daemon
participant Systemd as Systemd Service
D->>Systemd: Check systemd directories
alt Directories not found
Systemd-->>D: Not systemd
else Directories found
D->>Systemd: systemctl is-system-running
alt Response is 'offline'
Systemd-->>D: Not systemd
else Response is 'unknown' or empty
D->>S: Check PID 1
S-->>D: Return process info
else Any other response
Systemd-->>D: Is systemd
end
end
Sequence diagram for enhanced memory allocation error handlingsequenceDiagram
participant App as Application
participant Mem as Memory Allocator
participant SM as System Memory
App->>Mem: Request memory allocation
alt Allocation fails
Mem->>SM: Query available system memory
SM-->>Mem: Return memory stats
Mem-->>App: Fatal error with memory info
else Allocation succeeds
Mem-->>App: Return allocated memory
end
State diagram for auto-update status checksstateDiagram-v2
[*] --> CheckScheduler
CheckScheduler --> SystemdCheck: if systemd
CheckScheduler --> CrontabCheck: if crontab
CheckScheduler --> IntervalCheck: if interval
SystemdCheck --> Enabled: timer unit found & enabled
SystemdCheck --> Disabled: timer unit found & disabled
SystemdCheck --> NotSupported: unit files missing
CrontabCheck --> Enabled: crontab entry exists
CrontabCheck --> Disabled: no crontab entry
CrontabCheck --> NotSupported: cron.d missing
IntervalCheck --> Enabled: periodic script exists
IntervalCheck --> Disabled: no periodic script
IntervalCheck --> NotSupported: directory missing
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Assorted systemd detection fixes: - Properly scope `set -e` changes to only affect `systemctl is-system-running` invocation. - Skip checking for hard-coded unit file paths. Other paths may technically be used for unit files instead of what we hard-code, and the presence or abscence of any specific unit file path _does not_ reliably indicate the presence or abscence of systemd.
* fix wanted cache size calculation to always have an absolute minimum * add chart for out of memory protection
reformatted the metadata report, to provide the complete picture
* annotate logs with stack trace when libunwind is available * Update CMakeLists.txt Co-authored-by: Austin S. Hemmelgarn <[email protected]> * fix error when libunwind is not available --------- Co-authored-by: Austin S. Hemmelgarn <[email protected]>
* log the last sample in the database together with the node connected message * fix libuwind annotator
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Update memory allocation error messages to include available system memory. Add an option to check auto-update status. Include the alert version in the ACLK alert status.
New Features:
--auto-update-status
option to the updater script to check the status of automatic updates.Bug Fixes:
Enhancements:
pidof
command compatibility.