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

Fix inactive consumer case #48

Merged
merged 1 commit into from
Nov 15, 2017

Conversation

mayt
Copy link
Contributor

@mayt mayt commented Nov 15, 2017

In this case CONSUMER_ID, HOST and CLIENT_ID becomes -.

The current regex will fails as there is not / to detect.
Rework the consumerId group to not accept / so the zero or one operator
can work as expected

In this case CONSUMER_ID, HOST and CLIENT_ID becomes -.

The current regex will fails as there is not / to detect.
Rework the consumerId group to not accept / so the zero or one operator
can work as expected
@mayt mayt force-pushed the fix-inactive-consumer-case branch from 4740d0a to 6b617b5 Compare November 15, 2017 05:39
@kawamuray
Copy link
Owner

LGTM 👍 thanks!

@kawamuray kawamuray merged commit 357c348 into kawamuray:master Nov 15, 2017
@@ -51,6 +51,33 @@ topic3 0 45 45 0 consumer
})
}

func TestParsingPartitionTableWithMissingValuesConsumerIdForKafkaVersion0_10_2_1(t *T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 for tests. Thanks!

Yopi pushed a commit to Yopi/prometheus-kafka-consumer-group-exporter that referenced this pull request Mar 6, 2018
In this case CONSUMER_ID, HOST and CLIENT_ID becomes -.

The current regex will fails as there is not / to detect.
Rework the consumerId group to not accept / so the zero or one operator
can work as expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants