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 redis refactors #9907

Merged
merged 11 commits into from
Jan 14, 2019
Merged

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Jan 5, 2019

Refactor redis metricsets to reuse common code, ensure that connection pools are closed when metricset is stopped and to use v2 reporters.

Move password tests from info metricset to module level.

Add test for info fetching.

Fixes #9678

@jsoriano jsoriano added module review refactoring Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Jan 5, 2019
@jsoriano jsoriano requested a review from a team as a code owner January 5, 2019 01:58
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.

Some comments to improve debugging and error handling.

metricbeat/module/redis/info/data.go Show resolved Hide resolved
metricbeat/module/redis/keyspace/keyspace.go Outdated Show resolved Hide resolved
metricbeat/module/redis/keyspace/keyspace.go Show resolved Hide resolved
metricbeat/module/redis/metricset.go Outdated Show resolved Hide resolved
metricbeat/module/redis/redis.go Show resolved Hide resolved
@jsoriano
Copy link
Member Author

jsoriano commented Jan 8, 2019

Thanks for the reviews! I have added more context information to errors, this would be ready for another review.

Copy link
Member

@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.

Great to see one more metricset based on the reporter.

@jsoriano jsoriano added needs_backport PR is waiting to be backported to other branches. v6.7.0 labels Jan 9, 2019
Copy link
Member

@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.

I'm good with merging as is. We should discuss the Event return code handling in a follow up issue / internal discussion and not block this PR on it.

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.

LGTM

@jsoriano jsoriano merged commit cacf231 into elastic:master Jan 14, 2019
@jsoriano jsoriano deleted the metricbeat-redis-refactor branch January 14, 2019 17:09
@jsoriano jsoriano removed the needs_backport PR is waiting to be backported to other branches. label Jan 14, 2019
jsoriano added a commit to jsoriano/beats that referenced this pull request Jan 14, 2019
Refactor redis metricsets to reuse common code, ensure that connection pools
are closed when metricset is stopped and to use v2 reporters.

Move password tests from info metricset to module level.

Add test for info fetching.

(cherry picked from commit cacf231)
jsoriano added a commit that referenced this pull request Jan 17, 2019
Refactor redis metricsets to reuse common code, ensure that connection pools
are closed when metricset is stopped and to use v2 reporters.

Move password tests from info metricset to module level.

Add test for info fetching.

(cherry picked from commit cacf231)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactorizations in metricbeat redis module
5 participants