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

How to display custom trend metrics #182

Open
yuanxiaomama opened this issue Apr 22, 2024 · 0 comments
Open

How to display custom trend metrics #182

yuanxiaomama opened this issue Apr 22, 2024 · 0 comments
Labels
experimental module Required to become a k6 experimental module

Comments

@yuanxiaomama
Copy link

yuanxiaomama commented Apr 22, 2024

Requirement Description

I define trend for report test duration with trend, I use below code and want to show a chart as pic1. Now will always get empty as pic2.

code:
const test_completed_duration = new Trend('test_completed_duration'); test_completed_duration.add(1);

.dashboard.json

{
"title": "k6 dashboard",
"tabs": [
{
"sections": [
{
"panels": [
{
"series": [
{
"query": "http_req_duration[?!tags && (avg || p90 || p95 || p99)]"
}
],
"title": "HTTP Request Duration",
"id": "tab-0.section-0.panel-0",
"kind": "chart"
}
],
"id": "tab-0.section-0"
}
],
"title": "Overview",
"summary": "This chapter provides an overview of the most important metrics of the test run. Graphs plot the value of metrics over time.",
"id": "tab-0"
}
]
}

image

image

Suggested Solution (optional)

No response

@yuanxiaomama yuanxiaomama added the experimental module Required to become a k6 experimental module label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental module Required to become a k6 experimental module
Projects
None yet
Development

No branches or pull requests

1 participant