Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/en/api/v1/dashboards/examples.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"title": "Example-Dashboard",
"widgets": [
{
"definition": {
"title": "",
"title_size": "16",
"title_align": "left",
"type": "distribution",
"xaxis": {
"scale": "linear",
"min": "auto",
"max": "auto",
"include_zero": true,
"num_buckets": 55
},
"yaxis": {
"scale": "linear",
"min": "auto",
"max": "auto",
"include_zero": true
},
"markers": [
{
"display_type": "percentile",
"value": "50"
},
{
"display_type": "percentile",
"value": "99"
},
{
"display_type": "percentile",
"value": "90"
}
],
"requests": [
{
"response_format": "scalar",
"queries": [
{
"data_source": "metrics",
"name": "query1",
"query": "avg:system.cpu.user{*} by {service}",
"aggregator": "avg"
}
]
}
]
},
"layout": {
"x": 0,
"y": 0,
"width": 4,
"height": 4
}
}
],
"layout_type": "ordered"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"title": "Example-Dashboard",
"widgets": [
{
"layout": {
"x": 0,
"y": 0,
"width": 47,
"height": 15
},
"definition": {
"title": "",
"title_size": "16",
"title_align": "left",
"time": {},
"type": "distribution",
"requests": [
{
"response_format": "scalar",
"queries": [
{
"data_source": "logs",
"name": "query1",
"search": {
"query": ""
},
"indexes": [
"*"
],
"compute": {
"aggregation": "avg",
"metric": "@duration"
},
"group_by": [
{
"facet": "service",
"limit": 1000,
"sort": {
"aggregation": "count",
"order": "desc"
}
}
],
"storage": "hot"
}
]
}
]
}
}
],
"template_variables": [],
"layout_type": "free",
"notify_list": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"title": "Example-Dashboard",
"widgets": [
{
"definition": {
"title": "",
"title_size": "16",
"title_align": "left",
"type": "heatmap",
"xaxis": {
"num_buckets": 75
},
"yaxis": {
"scale": "linear",
"min": "auto",
"max": "auto",
"include_zero": true
},
"markers": [
{
"display_type": "percentile",
"value": "50"
},
{
"display_type": "percentile",
"value": "99"
}
],
"requests": [
{
"request_type": "histogram",
"query": {
"data_source": "metrics",
"name": "query1",
"query": "histogram:trace.servlet.request{*}"
}
}
]
},
"layout": {
"x": 0,
"y": 0,
"width": 4,
"height": 4
}
}
],
"layout_type": "ordered"
}
100 changes: 95 additions & 5 deletions content/en/api/v1/dashboards/widgets.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions content/en/api/v1/monitors/examples.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions content/en/api/v1/notebooks/examples.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions data/api/v1/CodeExamples.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@
"suffix": "_803346562",
"description": "Create a new dashboard with distribution widget and apm stats data"
},
{
"group": "dashboards",
"suffix": "_1093147852",
"description": "Create a new dashboard with distribution widget with markers and num_buckets"
},
{
"group": "dashboards",
"suffix": "_2432046716",
Expand All @@ -206,6 +211,11 @@
"suffix": "_3250131584",
"description": "Create a new dashboard with event_timeline widget"
},
{
"group": "dashboards",
"suffix": "_1617893815",
"description": "Create a new dashboard with formula and function distribution widget"
},
{
"group": "dashboards",
"suffix": "_3777304439",
Expand Down Expand Up @@ -236,6 +246,11 @@
"suffix": "_1177423752",
"description": "Create a new dashboard with heatmap widget"
},
{
"group": "dashboards",
"suffix": "_2823363212",
"description": "Create a new dashboard with heatmap widget with markers and num_buckets"
},
{
"group": "dashboards",
"suffix": "_1200099236",
Expand Down Expand Up @@ -714,6 +729,11 @@
"suffix": "_1303514967",
"description": "Create a Cost Monitor returns \"OK\" response"
},
{
"group": "monitors",
"suffix": "_3626832481",
"description": "Create a Data Quality monitor returns \"OK\" response"
},
{
"group": "monitors",
"suffix": "_3883669300",
Expand Down
Loading
Loading