-
Notifications
You must be signed in to change notification settings - Fork 4.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
Kubernetes state_daemonset metricset for Metricbeat #20649
Conversation
Implements state_daemonset for the Metricbeat Kubernetes module, in the model of state_deployment, state_replicaset etc. Closes: elastic#17010
This comment has been minimized.
This comment has been minimized.
Pinging @elastic/integrations-platforms (Team:Platforms) |
Any interest in this patch? Is there anything you'd like to see changed? Thanks. |
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.
In general looks good to me. Thank you for contributing this @jarpy !
@jsoriano what do you think?
DefaultPath: defaultPath, | ||
}.Build() | ||
|
||
mapping = &p.MetricsMapping{ |
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.
nit: I would make these struct fields instead of const variables. In this, they will be initialised when New
is called and not at load time of the package.
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.
I agree with the suggestion, but we are defining these mappings as vars in other metricsets too. So I think we can go on with this change and refactor these metricsets in a future PR.
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.
LGTM, thanks @jarpy, and sorry for the delay reviewing!
DefaultPath: defaultPath, | ||
}.Build() | ||
|
||
mapping = &p.MetricsMapping{ |
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.
I agree with the suggestion, but we are defining these mappings as vars in other metricsets too. So I think we can go on with this change and refactor these metricsets in a future PR.
Oops, it was marked as experimental, I think we should make it at least beta, I will open another PR for this. |
Implements state_daemonset for the Metricbeat Kubernetes module, in the model of state_deployment, state_replicaset etc. (cherry picked from commit 2a0e099)
Thanks, folks! I'm so excited to have this in, both for personal and operational reasons.
Sorry about that. I was trying to be as conservative as possible, because I'm a visitor in this house. :) |
No worries, I should have seen it 🙂 In any case it has helped us to find that we had more metricsets marked as experimental #20901 |
…ne-2.0 * upstream/master: (87 commits) [packaging] Normalise GCP bucket folder structure (elastic#20903) [Metricbeat] Add billing metricset into googlecloud module (elastic#20812) Include python docs in devguide index (elastic#20917) Avoid generating incomplete configurations in autodiscover (elastic#20898) Improve docs of leaderelection configuration (elastic#20601) Document how to set the ES host and Kibana URLs in Ingest Manager (elastic#20874) docs: Update beats for APM (elastic#20881) Adding cborbeat to community beats (elastic#20884) Bump kibana version to 7.9.0 in x-pack/metricbeat (elastic#20899) Kubernetes state_daemonset metricset for Metricbeat (elastic#20649) [Filebeat][zeek] Add new x509 fields to zeek (elastic#20867) [Filebeat][Gsuite] Add note about admin in gsuite docs (elastic#20855) Ensure kind cluster has RFC1123 compliant name (elastic#20627) Setup python paths in test runner configuration (elastic#20832) docs: Add `processor.event` info to Logstash output (elastic#20721) docs: update cipher suites (elastic#20697) [ECS] Update ecs to 1.6.0 (elastic#20792) Fix path in hits docs (elastic#20447) Update filebeat azure module documentation (elastic#20815) Remove duplicate ListGroupsForUsers in aws/cloudtrail (elastic#20788) ...
Implements state_daemonset for the Metricbeat Kubernetes module, in the model of state_deployment, state_replicaset etc.
What does this PR do?
Implements
state_daemonset
for the Metricbeat Kubernetes module, in the model ofstate_deployment
,state_replicaset
etc.Why is it important?
Allows monitoring (and alerting) of
DaemonSet
replica status. GivesDaemonSet
similar Metricbeat coverage to the other standard pod controllers (ReplicaSet
etc).Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
MODULE=kubernetes mage -v test
in themetricbeat
directory.Test result may be affected by #20627
Related issues
Use cases
Comprehensive alerting for all standard pod controllers. Alert when insufficient available pods exist for a
DaemonSet
, (not justDeployment
,ReplicaSet
, andStatefulSet
).