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 #286
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
* added percentages * added grouping by context and by node
fix for wanted_cache_size getting to zero
libunwind does not work well after fork, so we disable stack traces on forked processes
Fix ae traversal on cleanup
Reviewer's Guide by SourceryThis pull request introduces several enhancements to Netdata's metrics cardinality function and addresses a few issues related to logging and caching. Class diagram for updated metrics cardinality structureclassDiagram
class counts {
+size_t nodes
+size_t instances
+size_t metrics
+size_t online_nodes
+size_t offline_nodes
+size_t online_instances
+size_t offline_instances
+size_t online_metrics
+size_t offline_metrics
}
note for counts "Renamed from context_counts"
State diagram for stack trace handlingstateDiagram-v2
[*] --> CheckFork
CheckFork --> Disabled: Forked
CheckFork --> CheckRecursion: Not Forked
CheckRecursion --> Error: In Stack Trace
CheckRecursion --> Trace: Not in Stack Trace
Trace --> Cleanup
Error --> [*]
Disabled --> [*]
Cleanup --> [*]
Flow diagram for metrics cardinality functionflowchart TD
A[Start] --> B[Parse function parameters]
B --> C{Group by node?}
C -->|Yes| D[Use hostname as key]
C -->|No| E[Use context as key]
D --> F[Collect stats]
E --> F
F --> G[Calculate percentages]
G --> H[Generate JSON output]
H --> I[End]
note[Update every 10s instead of 1s]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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 the metrics cardinality API and improve cache handling.
New Features:
/api/v1/metrics_cardinality
endpoint to allow grouping metrics by context or node.Tests:
/api/v1/metrics_cardinality
API.