Skip to content

[Metricbeat] Migrate Kubernetes state_pod Metricset to use ReporterV2 interface#10973

Merged
sayden merged 4 commits intoelastic:masterfrom
sayden:migration/mb/reporterv2/kubernetes/state_pod
Apr 4, 2019
Merged

[Metricbeat] Migrate Kubernetes state_pod Metricset to use ReporterV2 interface#10973
sayden merged 4 commits intoelastic:masterfrom
sayden:migration/mb/reporterv2/kubernetes/state_pod

Conversation

@sayden
Copy link
Copy Markdown
Contributor

@sayden sayden commented Feb 27, 2019

Refer to #10774 for more info

@sayden sayden added Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Feb 27, 2019
@sayden sayden self-assigned this Feb 27, 2019
@sayden sayden requested a review from a team as a code owner February 27, 2019 19:45
@sayden sayden changed the title [Metricbeat] Migrate Kubernetes state_node Metricset to use ReporterV2 interface [Metricbeat] Migrate Kubernetes state_pod Metricset to use ReporterV2 interface Feb 27, 2019
@sayden
Copy link
Copy Markdown
Contributor Author

sayden commented Feb 28, 2019

jenkins, test this

@sayden
Copy link
Copy Markdown
Contributor Author

sayden commented Mar 1, 2019

@sayden sayden added review [zube]: In Progress in progress Pull request is currently in progress. and removed review labels Mar 1, 2019
@sayden sayden force-pushed the migration/mb/reporterv2/kubernetes/state_pod branch from 1e4bb79 to 0958d7b Compare March 13, 2019 10:39
@sayden sayden requested a review from a team as a code owner March 13, 2019 10:39
@sayden
Copy link
Copy Markdown
Contributor Author

sayden commented Mar 13, 2019

After last push, error is related. Checking

@sayden
Copy link
Copy Markdown
Contributor Author

sayden commented Mar 13, 2019

I'm not sure if state_pod_test.go unit test can be removed already that we are using the new testing framework. @ruflin you are the one who knows better what's covered by it, could you confirm or not my guess?

Copy link
Copy Markdown
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added some comments, I hope they help.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these _module objects? I think they shouldn't be here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kubernetes namespace should be in kubernetes.namespace.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the same file as the one in metricbeat/module/kubernetes/_meta/test/?

Could we also add metricbeat/module/kubernetes/_meta/test/kube-state-metrics to this testdata? If we can I think we could remove state_pod_test.go as you suggested.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kubernetes node name should be in kubernetes.node.name.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use RootFields for common fields as kubernetes.namespace or kubernetes.pod.name.

@sayden sayden force-pushed the migration/mb/reporterv2/kubernetes/state_pod branch from 1e4a603 to 268a8af Compare April 2, 2019 12:07
Copy link
Copy Markdown
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sayden sayden force-pushed the migration/mb/reporterv2/kubernetes/state_pod branch from 268a8af to 0ee4524 Compare April 4, 2019 09:16
@sayden sayden merged commit 928d12e into elastic:master Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in progress Pull request is currently in progress. Metricbeat Metricbeat Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants