Skip to content

Metricbeat redis refactors#9907

Merged
jsoriano merged 11 commits intoelastic:masterfrom
jsoriano:metricbeat-redis-refactor
Jan 14, 2019
Merged

Metricbeat redis refactors#9907
jsoriano merged 11 commits intoelastic:masterfrom
jsoriano:metricbeat-redis-refactor

Conversation

@jsoriano
Copy link
Copy Markdown
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
Comment thread metricbeat/module/redis/metricset.go
Comment thread metricbeat/module/redis/metricset.go Outdated
Comment thread metricbeat/module/redis/keyspace/keyspace.go
Copy link
Copy Markdown
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.

Comment thread metricbeat/module/redis/info/data.go
Comment thread metricbeat/module/redis/keyspace/keyspace.go Outdated
Comment thread metricbeat/module/redis/keyspace/keyspace.go
Comment thread metricbeat/module/redis/metricset.go Outdated
Comment thread metricbeat/module/redis/redis.go
@jsoriano
Copy link
Copy Markdown
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
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.

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

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
Copy Markdown
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