-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preload a grafana dashboard in the docker-compose setup (#1610)
- Loading branch information
1 parent
7a1e5d8
commit 5703bfa
Showing
4 changed files
with
315 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
apiVersion: 1 | ||
|
||
providers: | ||
- name: 'myinfluxdb' | ||
orgId: 1 | ||
folder: '' | ||
type: file | ||
disableDeletion: false | ||
editable: true | ||
options: | ||
path: /etc/grafana/provisioning/dashboards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,301 @@ | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": "-- Grafana --", | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"gnetId": null, | ||
"graphTooltip": 0, | ||
"id": 2, | ||
"links": [], | ||
"panels": [ | ||
{ | ||
"aliasColors": {}, | ||
"bars": true, | ||
"dashLength": 10, | ||
"dashes": false, | ||
"datasource": "myinfluxdb", | ||
"fieldConfig": { | ||
"defaults": { | ||
"custom": {} | ||
}, | ||
"overrides": [] | ||
}, | ||
"fill": 1, | ||
"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": 1, | ||
"nullPointMode": "null", | ||
"options": { | ||
"dataLinks": [] | ||
}, | ||
"percentage": false, | ||
"pointradius": 1, | ||
"points": true, | ||
"renderer": "flot", | ||
"seriesOverrides": [], | ||
"spaceLength": 10, | ||
"stack": false, | ||
"steppedLine": true, | ||
"targets": [ | ||
{ | ||
"groupBy": [ | ||
{ | ||
"params": [ | ||
"$__interval" | ||
], | ||
"type": "time" | ||
}, | ||
{ | ||
"params": [ | ||
"null" | ||
], | ||
"type": "fill" | ||
} | ||
], | ||
"measurement": "http_req_duration", | ||
"orderByTime": "ASC", | ||
"policy": "default", | ||
"query": "SELECT mean(\"value\") FROM \"http_req_duration\" WHERE $timeFilter GROUP BY time($__interval) fill(null)", | ||
"rawQuery": false, | ||
"refId": "A", | ||
"resultFormat": "time_series", | ||
"select": [ | ||
[ | ||
{ | ||
"params": [ | ||
"value" | ||
], | ||
"type": "field" | ||
}, | ||
{ | ||
"params": [], | ||
"type": "mean" | ||
} | ||
] | ||
], | ||
"tags": [] | ||
} | ||
], | ||
"thresholds": [], | ||
"timeFrom": null, | ||
"timeRegions": [], | ||
"timeShift": null, | ||
"title": "http-req duration", | ||
"tooltip": { | ||
"shared": true, | ||
"sort": 0, | ||
"value_type": "individual" | ||
}, | ||
"type": "graph", | ||
"xaxis": { | ||
"buckets": null, | ||
"mode": "time", | ||
"name": null, | ||
"show": true, | ||
"values": [] | ||
}, | ||
"yaxes": [ | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
}, | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
} | ||
], | ||
"yaxis": { | ||
"align": false, | ||
"alignLevel": null | ||
} | ||
}, | ||
{ | ||
"aliasColors": {}, | ||
"bars": true, | ||
"dashLength": 10, | ||
"dashes": false, | ||
"datasource": "myinfluxdb", | ||
"fieldConfig": { | ||
"defaults": { | ||
"custom": {} | ||
}, | ||
"overrides": [] | ||
}, | ||
"fill": 3, | ||
"fillGradient": 0, | ||
"gridPos": { | ||
"h": 9, | ||
"w": 12, | ||
"x": 12, | ||
"y": 0 | ||
}, | ||
"hiddenSeries": false, | ||
"id": 3, | ||
"legend": { | ||
"avg": false, | ||
"current": false, | ||
"max": false, | ||
"min": false, | ||
"show": true, | ||
"total": false, | ||
"values": false | ||
}, | ||
"lines": true, | ||
"linewidth": 1, | ||
"nullPointMode": "null", | ||
"options": { | ||
"dataLinks": [] | ||
}, | ||
"percentage": false, | ||
"pointradius": 1, | ||
"points": true, | ||
"renderer": "flot", | ||
"seriesOverrides": [], | ||
"spaceLength": 10, | ||
"stack": false, | ||
"steppedLine": false, | ||
"targets": [ | ||
{ | ||
"groupBy": [ | ||
{ | ||
"params": [ | ||
"$__interval" | ||
], | ||
"type": "time" | ||
}, | ||
{ | ||
"params": [ | ||
"null" | ||
], | ||
"type": "fill" | ||
} | ||
], | ||
"measurement": "vus", | ||
"orderByTime": "ASC", | ||
"policy": "default", | ||
"query": "SELECT mean(\"value\") FROM \"http_req_duration\" WHERE $timeFilter GROUP BY time($__interval) fill(null)", | ||
"rawQuery": false, | ||
"refId": "A", | ||
"resultFormat": "time_series", | ||
"select": [ | ||
[ | ||
{ | ||
"params": [ | ||
"value" | ||
], | ||
"type": "field" | ||
}, | ||
{ | ||
"params": [], | ||
"type": "mean" | ||
} | ||
] | ||
], | ||
"tags": [] | ||
} | ||
], | ||
"thresholds": [], | ||
"timeFrom": null, | ||
"timeRegions": [], | ||
"timeShift": null, | ||
"title": "vus", | ||
"tooltip": { | ||
"shared": true, | ||
"sort": 0, | ||
"value_type": "individual" | ||
}, | ||
"type": "graph", | ||
"xaxis": { | ||
"buckets": null, | ||
"mode": "time", | ||
"name": null, | ||
"show": true, | ||
"values": [] | ||
}, | ||
"yaxes": [ | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
}, | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
} | ||
], | ||
"yaxis": { | ||
"align": false, | ||
"alignLevel": null | ||
} | ||
} | ||
], | ||
"schemaVersion": 25, | ||
"style": "dark", | ||
"tags": [], | ||
"templating": { | ||
"list": [] | ||
}, | ||
"time": { | ||
"from": "now-5m", | ||
"to": "now" | ||
}, | ||
"timepicker": { | ||
"refresh_intervals": [ | ||
"10s", | ||
"30s", | ||
"1m", | ||
"5m", | ||
"15m", | ||
"30m", | ||
"1h", | ||
"2h", | ||
"1d" | ||
] | ||
}, | ||
"timezone": "", | ||
"title": "k6 performance test", | ||
"uid": "Le2Ku9NMk", | ||
"version": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ datasources: | |
type: influxdb | ||
access: proxy | ||
database: k6 | ||
orgId: 1 | ||
url: http://influxdb:8086 | ||
isDefault: true |