Skip to content
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 EnvoyProxy server to use ReporterV2 interface #11044

Merged

Conversation

berfinsari
Copy link
Contributor

@berfinsari berfinsari commented Mar 2, 2019

Refer to #10774 for more info

@berfinsari berfinsari requested a review from a team as a code owner March 2, 2019 22:27
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@sayden sayden added Team:Integrations Label for the Integrations team Metricbeat Metricbeat labels Mar 4, 2019
@sayden
Copy link
Contributor

sayden commented Mar 4, 2019

jenkins, test this please

Copy link
Contributor

@sayden sayden left a comment

Choose a reason for hiding this comment

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

Just one slight change

}

func TestFetch(t *testing.T) {
func TestData(t *testing.T) {
Copy link
Contributor

@sayden sayden Mar 7, 2019

Choose a reason for hiding this comment

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

As commented in your other PR's, now TestData must look like this (sorry for the misleading information at the beginning):

func TestData(t *testing.T) {
	f := mbtest.NewReportingMetricSetV2(t, getConfig())

	if err := mbtest.WriteEventsReporterV2(f, t, ""); err != nil {
		t.Fatal("write", err)
	}
}

Copy link
Member

Choose a reason for hiding this comment

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

The above code is for the new error interface and will not work here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Updated, in any case, better to merge it like this and do a follow up PR.

@sayden sayden merged commit 2b10ba9 into elastic:master Mar 7, 2019
@sayden
Copy link
Contributor

sayden commented Mar 7, 2019

Thank you very much for your contribution @berfinsari !

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.

6 participants