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

Thresholds on http_req_duration{expected_response:true} error on v0.38.x #2538

Closed
mstoykov opened this issue May 17, 2022 · 0 comments · Fixed by #2539
Closed

Thresholds on http_req_duration{expected_response:true} error on v0.38.x #2538

mstoykov opened this issue May 17, 2022 · 0 comments · Fixed by #2539
Labels
Milestone

Comments

@mstoykov
Copy link
Contributor

mstoykov commented May 17, 2022

Brief summary

If you make a threshold on http_req_duration{expected_response:true} (or any other predefined metric with submetric, which currently is only this one) you will get back an error

ERRO[0000] sub-metric with params 'expected_response:true' already exists for metric http_req_duration: http_req_duration{expected_response:true}

originally reported on the k6 slack

k6 version

v0.38.0 to v0.38.2

OS

all

Docker version and image (if applicable)

No response

Steps to reproduce the problem

run

export let options = {
  thresholds: {
    'http_req_duration{expected_response:true}': ['avg<400', 'p(95)<800', 'p(99)<2000']
  },
}
export default () => { }

Expected behaviour

It works

Actual behaviour

You get

ERRO[0000] sub-metric with params 'expected_response:true' already exists for metric http_req_duration: http_req_duration{expected_response:true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants