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: #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. |
| DefaultPath: defaultPath, | ||
| }.Build() | ||
|
|
||
| mapping = &p.MetricsMapping{ |
There was a problem hiding this comment.
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.
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.
| DefaultPath: defaultPath, | ||
| }.Build() | ||
|
|
||
| mapping = &p.MetricsMapping{ |
There was a problem hiding this comment.
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_daemonsetfor the Metricbeat Kubernetes module, in the model ofstate_deployment,state_replicasetetc.Why is it important?
Allows monitoring (and alerting) of
DaemonSetreplica status. GivesDaemonSetsimilar Metricbeat coverage to the other standard pod controllers (ReplicaSetetc).Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
MODULE=kubernetes mage -v testin themetricbeatdirectory.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).