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

A feature request for access Kafka write & read metric counters #33

Closed
orxibi opened this issue Feb 22, 2022 · 1 comment
Closed

A feature request for access Kafka write & read metric counters #33

orxibi opened this issue Feb 22, 2022 · 1 comment
Labels
✨ Feature Request New feature or request

Comments

@orxibi
Copy link

orxibi commented Feb 22, 2022

Hello,
I'm using K6 for testing Kafka clusters before migration plan.
And I need to be able to set a limit to the test based on one of the of the k6 Kafka metrics that are used in the summary report.
For example setting up threshold when kafka.writer.message,bytes = 1GB, enabling an access to these metrics will help me make it happened.

@mostafa mostafa added the ✨ Feature Request New feature or request label Apr 22, 2022
@mostafa
Copy link
Owner

mostafa commented May 5, 2022

With the changes in #31 and the usage of the new k6 metrics API, you can use thresholds on the exported metrics, as shown below and in this commit.

export const options = {
thresholds: {
// Base thresholds to see if the writer or reader is working
"kafka.writer.error.count": ["count == 0"],
"kafka.reader.error.count": ["count == 0"],
},
};

So I consider this solved. Also, please keep an eye on #23 if you want to access the rest of the metrics published by kafka-go.

@mostafa mostafa closed this as completed May 5, 2022
@mostafa mostafa moved this to Release in xk6-kafka May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature Request New feature or request
Projects
Status: Release
Development

No branches or pull requests

2 participants