Skip to content

[Metricbeat] Migrate Kubernetes container Metricset to use ReporterV2 interface#10855

Merged
sayden merged 2 commits intoelastic:masterfrom
sayden:migration/mb/reporterv2/kubernetes/container
Feb 26, 2019
Merged

[Metricbeat] Migrate Kubernetes container Metricset to use ReporterV2 interface#10855
sayden merged 2 commits intoelastic:masterfrom
sayden:migration/mb/reporterv2/kubernetes/container

Conversation

@sayden
Copy link
Copy Markdown
Contributor

@sayden sayden commented Feb 20, 2019

Refer to #10774 for more info

@sayden sayden added Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Feb 20, 2019
@sayden sayden self-assigned this Feb 20, 2019
@sayden sayden requested a review from a team as a code owner February 20, 2019 22:16
Copy link
Copy Markdown
Contributor

@kaiyan-sheng kaiyan-sheng left a comment

Choose a reason for hiding this comment

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

I was working on migrating k8s to ecs. That PR should probably wait till this one gets in :-)

events, err := eventMapping(body, util.PerfMetrics)
if err != nil {
return nil, err
logger.Error(err)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we add a err= errors.wrap(err, "eventMapping failed") here to give more content?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good question. I'm not sure about it because I usually like to print errors that are relevant for the users (not for us) to help them fix their config issues or similar things.

But I'm also sure that I'm not probably consistent about this 😄

@sayden sayden merged commit 1ace6e3 into elastic:master Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Metricbeat Metricbeat Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants