-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update default grafana config and refactor provisioning files
- Loading branch information
Showing
8 changed files
with
7,179 additions
and
11 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,297 @@ | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": { | ||
"type": "grafana", | ||
"uid": "-- Grafana --" | ||
}, | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"target": { | ||
"limit": 100, | ||
"matchAny": false, | ||
"tags": [], | ||
"type": "dashboard" | ||
}, | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"fiscalYearStartMonth": 0, | ||
"graphTooltip": 0, | ||
"id": 5, | ||
"links": [ | ||
{ | ||
"asDropdown": false, | ||
"icon": "external link", | ||
"includeVars": true, | ||
"keepTime": false, | ||
"tags": [], | ||
"targetBlank": true, | ||
"title": "New link", | ||
"tooltip": "", | ||
"type": "dashboards", | ||
"url": "" | ||
} | ||
], | ||
"liveNow": false, | ||
"panels": [ | ||
{ | ||
"datasource": { | ||
"type": "postgres", | ||
"uid": "OIttR1sVk" | ||
}, | ||
"gridPos": { | ||
"h": 13, | ||
"w": 10, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 3, | ||
"links": [], | ||
"options": { | ||
"folderId": 0, | ||
"includeVars": false, | ||
"keepTime": false, | ||
"maxItems": 30, | ||
"query": "", | ||
"showHeadings": true, | ||
"showRecentlyViewed": true, | ||
"showSearch": false, | ||
"showStarred": true, | ||
"tags": [] | ||
}, | ||
"pluginVersion": "10.1.4", | ||
"tags": [], | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "postgres", | ||
"uid": "OIttR1sVk" | ||
}, | ||
"refId": "A" | ||
} | ||
], | ||
"title": "PostgSail Dashboards", | ||
"type": "dashlist" | ||
}, | ||
{ | ||
"datasource": { | ||
"type": "postgres", | ||
"uid": "PCC52D03280B7034C" | ||
}, | ||
"fieldConfig": { | ||
"defaults": { | ||
"color": { | ||
"mode": "thresholds" | ||
}, | ||
"custom": { | ||
"hideFrom": { | ||
"legend": false, | ||
"tooltip": false, | ||
"viz": false | ||
} | ||
}, | ||
"mappings": [], | ||
"thresholds": { | ||
"mode": "absolute", | ||
"steps": [ | ||
{ | ||
"color": "green", | ||
"value": null | ||
}, | ||
{ | ||
"color": "red", | ||
"value": 80 | ||
} | ||
] | ||
} | ||
}, | ||
"overrides": [] | ||
}, | ||
"gridPos": { | ||
"h": 13, | ||
"w": 12, | ||
"x": 10, | ||
"y": 0 | ||
}, | ||
"id": 5, | ||
"maxDataPoints": 500, | ||
"options": { | ||
"basemap": { | ||
"config": {}, | ||
"name": "Layer 0", | ||
"type": "default" | ||
}, | ||
"controls": { | ||
"mouseWheelZoom": true, | ||
"showAttribution": true, | ||
"showDebug": false, | ||
"showMeasure": false, | ||
"showScale": false, | ||
"showZoom": true | ||
}, | ||
"layers": [ | ||
{ | ||
"config": { | ||
"showLegend": true, | ||
"style": { | ||
"color": { | ||
"fixed": "dark-green" | ||
}, | ||
"opacity": 0.4, | ||
"rotation": { | ||
"fixed": 0, | ||
"max": 360, | ||
"min": -360, | ||
"mode": "mod" | ||
}, | ||
"size": { | ||
"fixed": 5, | ||
"max": 15, | ||
"min": 2 | ||
}, | ||
"symbol": { | ||
"fixed": "img/icons/marker/circle.svg", | ||
"mode": "fixed" | ||
}, | ||
"textConfig": { | ||
"fontSize": 12, | ||
"offsetX": 0, | ||
"offsetY": 0, | ||
"textAlign": "center", | ||
"textBaseline": "middle" | ||
} | ||
} | ||
}, | ||
"filterData": { | ||
"id": "byRefId", | ||
"options": "A" | ||
}, | ||
"location": { | ||
"latitude": "value", | ||
"longitude": "value", | ||
"mode": "auto" | ||
}, | ||
"name": "Boat", | ||
"tooltip": true, | ||
"type": "markers" | ||
} | ||
], | ||
"tooltip": { | ||
"mode": "details" | ||
}, | ||
"view": { | ||
"allLayers": true, | ||
"id": "fit", | ||
"lat": 0, | ||
"lon": 0, | ||
"zoom": 5 | ||
} | ||
}, | ||
"pluginVersion": "10.1.4", | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "postgres", | ||
"uid": "PCC52D03280B7034C" | ||
}, | ||
"editorMode": "code", | ||
"format": "table", | ||
"rawQuery": true, | ||
"rawSql": "SELECT latitude, longitude FROM api.metrics WHERE vessel_id = '${boat}' ORDER BY time ASC LIMIT 1;", | ||
"refId": "A", | ||
"sql": { | ||
"columns": [ | ||
{ | ||
"parameters": [], | ||
"type": "function" | ||
} | ||
], | ||
"groupBy": [ | ||
{ | ||
"property": { | ||
"type": "string" | ||
}, | ||
"type": "groupBy" | ||
} | ||
], | ||
"limit": 50 | ||
} | ||
} | ||
], | ||
"title": "Location", | ||
"type": "geomap" | ||
} | ||
], | ||
"refresh": "", | ||
"revision": 1, | ||
"schemaVersion": 38, | ||
"style": "dark", | ||
"tags": [], | ||
"templating": { | ||
"list": [ | ||
{ | ||
"datasource": { | ||
"type": "postgres", | ||
"uid": "PCC52D03280B7034C" | ||
}, | ||
"definition": "SET \"user.email\" = '${__user.email}';\nSET vessel.id = '${__user.login}';\nSELECT\n v.name AS __text,\n m.vessel_id AS __value\n FROM auth.vessels v\n JOIN api.metadata m ON v.owner_email = '${__user.email}' and m.vessel_id = v.vessel_id;", | ||
"description": "Vessel Name", | ||
"hide": 0, | ||
"includeAll": false, | ||
"label": "Boat", | ||
"multi": false, | ||
"name": "boat", | ||
"options": [], | ||
"query": "SET \"user.email\" = '${__user.email}';\nSET vessel.id = '${__user.login}';\nSELECT\n v.name AS __text,\n m.vessel_id AS __value\n FROM auth.vessels v\n JOIN api.metadata m ON v.owner_email = '${__user.email}' and m.vessel_id = v.vessel_id;", | ||
"refresh": 1, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"type": "query" | ||
} | ||
] | ||
}, | ||
"time": { | ||
"from": "now-90d", | ||
"to": "now" | ||
}, | ||
"timepicker": { | ||
"hidden": true, | ||
"refresh_intervals": [ | ||
"5s", | ||
"10s", | ||
"30s", | ||
"1m", | ||
"5m", | ||
"15m", | ||
"30m", | ||
"1h", | ||
"2h", | ||
"1d" | ||
], | ||
"time_options": [ | ||
"5m", | ||
"15m", | ||
"1h", | ||
"6h", | ||
"12h", | ||
"24h", | ||
"2d", | ||
"7d", | ||
"30d" | ||
], | ||
"type": "timepicker" | ||
}, | ||
"timezone": "browser", | ||
"title": "Home", | ||
"uid": "d81aa15b", | ||
"version": 1, | ||
"weekStart": "" | ||
} |
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