-
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 #370
Conversation
* improvement(go.d/k8sstate): collect replicasets * replicasets -> deployments
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
Reviewer's Guide by SourceryThis pull request introduces deployment metrics collection to the k8s_state collector, improves ARAL free slot management, and adjusts the storage engine command dequeueing logic. The k8s_state collector now collects and exposes metrics related to Kubernetes deployments, such as replicas and age. The ARAL allocator's free slot management has been improved to use the slot ID for partition selection and to handle the last page with free items more efficiently. The storage engine's command dequeueing logic has been adjusted to better manage command priorities and worker thread idling. Sequence diagram for collecting deployment statesequenceDiagram
participant Collector
participant kubeState
participant deploymentState
participant Charts
Collector->>Collector: collectDeploymentState(mx)
loop for each deployment in c.state.deployments
alt ds.deleted
Collector->>Collector: removeDeploymentCharts(ds)
Collector->>kubeState: Delete deployment from c.state.deployments
else ds.new
Collector->>Collector: addDeploymentCharts(ds)
Collector->>deploymentState: ds.new = false
end
Collector->>mx: Update metrics in mx
end
Updated class diagram for kubeStateclassDiagram
class kubeState {
*sync.Mutex Mutex
map[string]*nodeState nodes
map[string]*podState pods
map[string]*deploymentState deployments
}
New class diagram for deploymentStateclassDiagram
class deploymentState {
bool new
bool deleted
string uid
string name
string namespace
time.Time creationTime
int64 replicas
int64 availableReplicas
int64 readyReplicas
string id()
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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
This pull request introduces Kubernetes Deployment metrics collection, including replicas and age, and fixes a bug in the ARAL memory management library related to freeing the last page of items. It also includes some performance improvements to the database engine event loop.
New Features:
Bug Fixes:
Enhancements:
worker_is_idle()
and runs the loop inUV_RUN_NOWAIT
mode every 100 iterations to improve responsiveness.CI:
Documentation:
Tests: