Skip to content

How to display custom trend metrics #182

@yuanxiaomama

Description

@yuanxiaomama

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    experimental moduleRequired to become a k6 experimental module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions