mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
272 lines
6.8 KiB
JSON
272 lines
6.8 KiB
JSON
{
|
|
"title": "Templated Graphs",
|
|
"services": {
|
|
"filter": {
|
|
"list": [
|
|
{
|
|
"type": "filter",
|
|
"name": "root",
|
|
"query": "statsd.fakesite.counters.session_start.*",
|
|
"includeAll": true,
|
|
"options": [
|
|
{
|
|
"text": "All",
|
|
"value": "{desktop,mobile,tablet}"
|
|
},
|
|
{
|
|
"text": "desktop",
|
|
"value": "desktop"
|
|
},
|
|
{
|
|
"text": "mobile",
|
|
"value": "mobile"
|
|
},
|
|
{
|
|
"text": "tablet",
|
|
"value": "tablet"
|
|
}
|
|
],
|
|
"current": {
|
|
"text": "All",
|
|
"value": "{desktop,mobile,tablet}"
|
|
}
|
|
}
|
|
],
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
}
|
|
}
|
|
},
|
|
"rows": [
|
|
{
|
|
"title": "Row1",
|
|
"height": "350px",
|
|
"editable": true,
|
|
"collapse": false,
|
|
"collapsable": true,
|
|
"panels": [
|
|
{
|
|
"span": 12,
|
|
"editable": true,
|
|
"type": "graphite",
|
|
"loadingEditor": false,
|
|
"datasource": null,
|
|
"renderer": "flot",
|
|
"x-axis": true,
|
|
"y-axis": true,
|
|
"scale": 1,
|
|
"y_formats": [
|
|
"short",
|
|
"short"
|
|
],
|
|
"grid": {
|
|
"max": null,
|
|
"min": 0,
|
|
"threshold1": null,
|
|
"threshold2": null,
|
|
"threshold1Color": "rgba(216, 200, 27, 0.27)",
|
|
"threshold2Color": "rgba(234, 112, 112, 0.22)"
|
|
},
|
|
"annotate": {
|
|
"enable": false
|
|
},
|
|
"resolution": 100,
|
|
"lines": true,
|
|
"fill": 1,
|
|
"linewidth": 1,
|
|
"points": false,
|
|
"pointradius": 5,
|
|
"bars": false,
|
|
"stack": false,
|
|
"legend": {
|
|
"show": true,
|
|
"values": false,
|
|
"min": false,
|
|
"max": false,
|
|
"current": false,
|
|
"total": false,
|
|
"avg": false
|
|
},
|
|
"percentage": false,
|
|
"zerofill": true,
|
|
"nullPointMode": "connected",
|
|
"steppedLine": false,
|
|
"tooltip": {
|
|
"value_type": "cumulative",
|
|
"query_as_alias": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"target": "aliasByNode(summarize(statsd.fakesite.counters.session_start.[[root]].count,'1min','sum'),4)"
|
|
}
|
|
],
|
|
"aliasColors": {
|
|
"highres.test": "#1F78C1",
|
|
"scale(highres.test,3)": "#6ED0E0",
|
|
"mobile": "#6ED0E0",
|
|
"tablet": "#EAB839"
|
|
},
|
|
"aliasYAxis": {},
|
|
"title": "Device sessions"
|
|
}
|
|
],
|
|
"notice": false
|
|
},
|
|
{
|
|
"title": "Row1",
|
|
"height": "350px",
|
|
"editable": true,
|
|
"collapse": false,
|
|
"collapsable": true,
|
|
"panels": [
|
|
{
|
|
"span": 6,
|
|
"editable": true,
|
|
"type": "graphite",
|
|
"loadingEditor": false,
|
|
"datasource": null,
|
|
"renderer": "flot",
|
|
"x-axis": true,
|
|
"y-axis": true,
|
|
"scale": 1,
|
|
"y_formats": [
|
|
"short",
|
|
"short"
|
|
],
|
|
"grid": {
|
|
"max": null,
|
|
"min": 0,
|
|
"threshold1": null,
|
|
"threshold2": null,
|
|
"threshold1Color": "rgba(216, 200, 27, 0.27)",
|
|
"threshold2Color": "rgba(234, 112, 112, 0.22)"
|
|
},
|
|
"annotate": {
|
|
"enable": false
|
|
},
|
|
"resolution": 100,
|
|
"lines": false,
|
|
"fill": 1,
|
|
"linewidth": 2,
|
|
"points": false,
|
|
"pointradius": 5,
|
|
"bars": true,
|
|
"stack": true,
|
|
"legend": {
|
|
"show": true,
|
|
"values": false,
|
|
"min": false,
|
|
"max": false,
|
|
"current": false,
|
|
"total": false,
|
|
"avg": false
|
|
},
|
|
"percentage": false,
|
|
"zerofill": true,
|
|
"nullPointMode": "connected",
|
|
"steppedLine": false,
|
|
"tooltip": {
|
|
"value_type": "cumulative",
|
|
"query_as_alias": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"target": "aliasByNode(summarize(statsd.fakesite.counters.session_start.[[root]].count,'1h','sum'),4)"
|
|
}
|
|
],
|
|
"aliasColors": {
|
|
"highres.test": "#1F78C1",
|
|
"scale(highres.test,3)": "#6ED0E0",
|
|
"tablet": "#EAB839",
|
|
"desktop": "#7EB26D",
|
|
"mobile": "#6ED0E0"
|
|
},
|
|
"aliasYAxis": {},
|
|
"title": "Device sessions (1h)"
|
|
},
|
|
{
|
|
"error": false,
|
|
"span": 6,
|
|
"editable": true,
|
|
"type": "text",
|
|
"loadingEditor": false,
|
|
"mode": "markdown",
|
|
"content": "#### Templated metric queries / graphs \n- In dashboard settings, in the Controls tab / Feature toggles. You can enable 'Filtering' \n- This feature when enabled will show you a bar bellow the menu.\n- In this bar you can add filters, or what should be named templated metric segments. \n- A filter is a query for a specific metric segment\n- Open any graph in this dashboard and edit mode and you can see that the [[device]] filter is used instead of a wildcard.\n- Try clicking the All link in the filter menu at the top, change device and see that all graphs change to only show values for that device. ",
|
|
"style": {},
|
|
"title": "Description"
|
|
}
|
|
],
|
|
"notice": false
|
|
}
|
|
],
|
|
"editable": true,
|
|
"failover": false,
|
|
"panel_hints": true,
|
|
"style": "dark",
|
|
"pulldowns": [
|
|
{
|
|
"type": "filtering",
|
|
"collapse": false,
|
|
"notice": false,
|
|
"enable": true
|
|
},
|
|
{
|
|
"type": "annotations",
|
|
"enable": false
|
|
}
|
|
],
|
|
"nav": [
|
|
{
|
|
"type": "timepicker",
|
|
"collapse": false,
|
|
"notice": false,
|
|
"enable": true,
|
|
"status": "Stable",
|
|
"time_options": [
|
|
"5m",
|
|
"15m",
|
|
"1h",
|
|
"6h",
|
|
"12h",
|
|
"24h",
|
|
"2d",
|
|
"7d",
|
|
"30d"
|
|
],
|
|
"refresh_intervals": [
|
|
"5s",
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
],
|
|
"now": true
|
|
}
|
|
],
|
|
"loader": {
|
|
"save_gist": false,
|
|
"save_elasticsearch": true,
|
|
"save_local": true,
|
|
"save_default": true,
|
|
"save_temp": true,
|
|
"save_temp_ttl_enable": true,
|
|
"save_temp_ttl": "30d",
|
|
"load_gist": false,
|
|
"load_elasticsearch": true,
|
|
"load_elasticsearch_size": 20,
|
|
"load_local": false,
|
|
"hide": false
|
|
},
|
|
"refresh": false,
|
|
"tags": [
|
|
"showcase",
|
|
"templated"
|
|
],
|
|
"timezone": "browser"
|
|
} |