-
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
[Metricbeat] Migrate Kubernetes state_replicaset Metricset to use ReporterV2 interface #10974
[Metricbeat] Migrate Kubernetes state_replicaset Metricset to use ReporterV2 interface #10974
Conversation
jenkins, test this |
Error in ES module seems unrelated https://beats-ci.elastic.co/job/elastic+beats+pull-request+multijob-linux/beat=metricbeat,label=linux-immutable/5456/console |
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. But what I'm asking myself now is if this is also potentially affected by the namespace issue?
Probably yes, I'll check and ask you to review again. Dismissing to avoid accidental "happy merge"
d5935d4
to
750b725
Compare
jenkins, test this please |
...ule/kubernetes/state_replicaset/_meta/testdata/kube-state-metrics-v1.3.0.plain-expected.json
Outdated
Show resolved
Hide resolved
750b725
to
79a9a4d
Compare
jenkins, test this |
|
||
var moduleFieldsMapStr common.MapStr | ||
moduleFields, ok := event[mb.ModuleDataKey] | ||
if ok { |
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.
Can you file a follow up issue so we improve the prometheus input so we can get rid of this. I think @odacremolbap worked already on some parts.
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.
Sure, I did some quick test using this https://github.com/elastic/beats/blob/master/metricbeat/module/kubernetes/state_container/state_container_test.go#L29 but it didn't work :(
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 didn't understand why some metricsets were using it and some not
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.
Not sure I can follow your above comment. I'm ok with the current hack but want to make sure we follow up that is why the ask for an issue.
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.
As soon as we have migrated all the new interface, I think we can remove the old testing methods. I wanted to keep them around for the migration to make sure we don't miss things.
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.
Issue opened #11624
jenkins, test this |
I don't think the failures are related. |
Refer to #10774 for more info