{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "uid": "-- Grafana --" }, "enable": false, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations \u0026 Alerts", "type": "dashboard" }, { "datasource": { "uid": "gdev-mysql" }, "enable": false, "hide": false, "iconColor": "rgba(0, 211, 255, 1)", "limit": 100, "name": "Single", "rawQuery": "SELECT\n createdAt as time,\n 'single' as text,\n hostname as tags\nFROM\n grafana_metric\nWHERE\n $__timeFilter(createdAt)\nORDER BY time\nLIMIT 1\n", "showIn": 0, "tags": [], "type": "tags" }, { "datasource": { "uid": "gdev-mysql" }, "enable": false, "hide": false, "iconColor": "rgba(0, 211, 255, 1)", "limit": 100, "name": "Region", "rawQuery": "SELECT\n ADDTIME(createdAt, '00:01:00') as time,\n ADDTIME(createdAt, '00:06:00') as timeend,\n 'region' as text,\n hostname as tags\nFROM\n grafana_metric\nWHERE\n $__timeFilter(createdAt)\nORDER BY time\nLIMIT 1\n", "showIn": 0, "tags": [], "type": "tags" } ] }, "description": "A dashboard visualizing data generated from grafana/fake-data-gen", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "links": [], "panels": [ { "aliasColors": { "total avg": "#6ed0e0" }, "autoMigrateFrom": "graph", "bars": false, "dashLength": 10, "dashes": false, "datasource": { "uid": "gdev-mysql" }, "fill": 2, "fillGradient": 0, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 0 }, "hiddenSeries": false, "id": 2, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "total avg", "fill": 0, "pointradius": 3, "points": true } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "alias": "", "datasource": { "uid": "gdev-mysql" }, "format": "time_series", "hide": false, "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time_sec,\n avg(value) as value,\n hostname as metric\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'logins.count' AND\n hostname IN($host)\nGROUP BY 1, 3\nORDER BY 1", "refId": "A", "target": "" }, { "alias": "", "datasource": { "uid": "gdev-mysql" }, "format": "time_series", "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time_sec,\n min(value) as value,\n 'total avg' as metric\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'logins.count'\nGROUP BY 1\nORDER BY 1", "refId": "B" } ], "thresholds": [], "timeRegions": [], "title": "Average logins / $summarize", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "timeseries", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "logBase": 1, "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "autoMigrateFrom": "graph", "bars": false, "dashLength": 10, "dashes": false, "datasource": { "uid": "gdev-mysql" }, "fill": 2, "fillGradient": 0, "gridPos": { "h": 18, "w": 12, "x": 12, "y": 0 }, "hiddenSeries": false, "id": 4, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "alias": "", "datasource": { "uid": "gdev-mysql" }, "format": "time_series", "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time_sec,\n avg(value) as value,\n 'started' as metric\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'payment.started'\nGROUP BY 1, 3\nORDER BY 1", "refId": "A", "target": "" }, { "alias": "", "datasource": { "uid": "gdev-mysql" }, "format": "time_series", "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time_sec,\n avg(value) as value,\n 'ended' as \"metric\"\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'payment.ended'\nGROUP BY 1, 3\nORDER BY 1", "refId": "B" } ], "thresholds": [], "timeRegions": [], "title": "Average payments started/ended / $summarize", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "timeseries", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "logBase": 1, "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "autoMigrateFrom": "graph", "bars": false, "dashLength": 10, "dashes": false, "datasource": { "uid": "gdev-mysql" }, "fill": 2, "fillGradient": 0, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 9 }, "hiddenSeries": false, "id": 3, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "nullPointMode": "null", "options": { "dataLinks": [] }, "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "alias": "", "datasource": { "uid": "gdev-mysql" }, "format": "time_series", "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time_sec,\n max(value) as value,\n hostname as metric\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'cpu' AND\n hostname IN($host)\nGROUP BY 1, 3\nORDER BY 1", "refId": "A", "target": "" } ], "thresholds": [], "timeRegions": [], "title": "Max CPU / $summarize", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "timeseries", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "percent", "logBase": 1, "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "datasource": { "uid": "gdev-mysql" }, "fieldConfig": { "defaults": { "custom": { "cellOptions": { "type": "auto" }, "footer": { "reducers": [] }, "inspect": false }, "decimals": 2, "displayName": "", "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "Time" }, "properties": [ { "id": "displayName", "value": "Time" }, { "id": "unit", "value": "time: YYYY-MM-DD HH:mm:ss" }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 18 }, "id": 6, "options": { "cellHeight": "sm", "showHeader": true }, "pluginVersion": "12.1.0", "targets": [ { "alias": "", "datasource": { "uid": "gdev-mysql" }, "format": "table", "rawSql": "SELECT createdAt as Time, source, datacenter, hostname, value FROM grafana_metric WHERE hostname in($host)", "refId": "A", "target": "" } ], "title": "Values", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" } ], "refresh": "", "schemaVersion": 42, "tags": [ "gdev", "mysql", "datasource-tags" ], "templating": { "list": [ { "current": { "text": "America", "value": "America" }, "datasource": "gdev-mysql", "definition": "", "hide": 0, "includeAll": false, "label": "Datacenter", "multi": false, "name": "datacenter", "options": [], "query": "SELECT DISTINCT datacenter FROM grafana_metric", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "current": { "selected": false, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": "gdev-mysql", "definition": "", "hide": 0, "includeAll": true, "label": "Hostname", "multi": true, "name": "host", "options": [], "query": "SELECT DISTINCT hostname FROM grafana_metric WHERE datacenter='$datacenter'", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "auto": false, "auto_count": 5, "auto_min": "10s", "current": { "selected": false, "text": "1m", "value": "1m" }, "hide": 0, "label": "Summarize", "name": "summarize", "options": [ { "selected": false, "text": "1s", "value": "1s" }, { "selected": false, "text": "10s", "value": "10s" }, { "selected": false, "text": "30s", "value": "30s" }, { "selected": true, "text": "1m", "value": "1m" }, { "selected": false, "text": "5m", "value": "5m" }, { "selected": false, "text": "10m", "value": "10m" }, { "selected": false, "text": "30m", "value": "30m" }, { "selected": false, "text": "1h", "value": "1h" }, { "selected": false, "text": "6h", "value": "6h" }, { "selected": false, "text": "12h", "value": "12h" }, { "selected": false, "text": "1d", "value": "1d" }, { "selected": false, "text": "7d", "value": "7d" }, { "selected": false, "text": "14d", "value": "14d" }, { "selected": false, "text": "30d", "value": "30d" } ], "query": "1s,10s,30s,1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", "refresh": 2, "skipUrlSync": false, "type": "interval" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Datasource tests - MySQL", "uid": "DGsCac3kz", "weekStart": "" }