Skip to content
Snippets Groups Projects
Commit 33b7aa37 authored by Release Webservice's avatar Release Webservice
Browse files

Finished release 0.9.

parents 3138e102 8d4d37a8
No related branches found
Tags 0.9
No related merge requests found
...@@ -48,7 +48,7 @@ DEFAULT_ORGANIZATIONS = [ ...@@ -48,7 +48,7 @@ DEFAULT_ORGANIZATIONS = [
"excluded_dashboards": [ "excluded_dashboards": [
"GÉANT Office devices", "GÉANT Office devices",
"GÉANT VM", "GÉANT VM",
"GÉANT LAB devices" "Lab Devices"
], ],
"excluded_folders": { "excluded_folders": {
"Aggregates": ["CAE1"], "Aggregates": ["CAE1"],
...@@ -60,22 +60,25 @@ DEFAULT_ORGANIZATIONS = [ ...@@ -60,22 +60,25 @@ DEFAULT_ORGANIZATIONS = [
"excluded_nrens": [ "excluded_nrens": [
"CARNET", "CARNET",
"PSNC", "PSNC",
"PIONIER",
"CUSTOMER GEANT", "CUSTOMER GEANT",
"GEANT-IT" "GEANT-IT"
], ],
"excluded_dashboards": [ "excluded_dashboards": [
"GÉANT Office devices", "GÉANT Office devices",
"GÉANT VM", "GÉANT VM",
"GÉANT LAB devices" "Lab Devices"
"IAS", "IAS",
"GEANTOPEN" "GEANTOPEN",
"IAS Peers"
], ],
"excluded_folders": { "excluded_folders": {
"Aggregates": ["CAE1", "GWS UPSTREAMS"], "Aggregates": ["CAE1", "GWS UPSTREAMS", "IAS PEERS"],
"IAS CUSTOMER": True, "IAS CUSTOMER": True,
"IAS PRIVATE": True, "IAS PRIVATE": True,
"IAS PUBLIC": True, "IAS PUBLIC": True,
"IAS UPSTREAM": True "IAS UPSTREAM": True,
"GWS PHY Upstream": True
} }
}, },
{ {
...@@ -87,7 +90,7 @@ DEFAULT_ORGANIZATIONS = [ ...@@ -87,7 +90,7 @@ DEFAULT_ORGANIZATIONS = [
"excluded_dashboards": [ "excluded_dashboards": [
"GÉANT Office devices", "GÉANT Office devices",
"GÉANT VM", "GÉANT VM",
"GÉANT LAB devices", "Lab Devices",
], ],
"excluded_folders": {} "excluded_folders": {}
}, },
...@@ -96,21 +99,24 @@ DEFAULT_ORGANIZATIONS = [ ...@@ -96,21 +99,24 @@ DEFAULT_ORGANIZATIONS = [
"excluded_nrens": [ "excluded_nrens": [
"CARNET", "CARNET",
"PSNC", "PSNC",
"PIONIER",
"CUSTOMER GEANT", "CUSTOMER GEANT",
"GEANT-IT" "GEANT-IT"
], ],
"excluded_dashboards": [ "excluded_dashboards": [
"GÉANT Office devices", "GÉANT Office devices",
"GÉANT VM", "GÉANT VM",
"GÉANT LAB devices" "Lab Devices"
"IAS" "IAS",
"IAS Peers"
], ],
"excluded_folders": { "excluded_folders": {
"Aggregates": ["GWS UPSTREAMS"], "Aggregates": ["GWS UPSTREAMS", "IAS PEERS"],
"IAS CUSTOMER": True, "IAS CUSTOMER": True,
"IAS PRIVATE": True, "IAS PRIVATE": True,
"IAS PUBLIC": True, "IAS PUBLIC": True,
"IAS UPSTREAM": True "IAS UPSTREAM": True,
"GWS PHY Upstream": True
} }
} }
] ]
......
...@@ -693,7 +693,7 @@ ...@@ -693,7 +693,7 @@
"multi": true, "multi": true,
"name": "interface_name", "name": "interface_name",
"options": [], "options": [],
"query": "SHOW TAG VALUES ON test_brian WITH KEY IN (interface_name) WHERE hostname =~ /$hostname/ ", "query": "SHOW TAG VALUES WITH KEY IN (interface_name) WHERE hostname =~ /$hostname/ ",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
......
...@@ -34,7 +34,8 @@ def delete_dashboard(request: TokenRequest, dashboard, folder_id=None): ...@@ -34,7 +34,8 @@ def delete_dashboard(request: TokenRequest, dashboard, folder_id=None):
dash = _search_dashboard(request, dashboard, folder_id) dash = _search_dashboard(request, dashboard, folder_id)
if dash is None: if dash is None:
return True return True
r = request.delete(f'api/dashboards/uid/{dash.get("uid")}') _delete_dashboard(request, dash.get(
'dashboard', {}).get('uid', ''))
logger.info(f'Deleted dashboard: {dashboard.get("title")}') logger.info(f'Deleted dashboard: {dashboard.get("title")}')
return r is not None return r is not None
......
...@@ -299,7 +299,7 @@ def provision(config): ...@@ -299,7 +299,7 @@ def provision(config):
agg_folder = find_folder(token_request, 'Aggregates') agg_folder = find_folder(token_request, 'Aggregates')
for agg_type, dash in aggregate_dashboards.items(): for agg_type, dash in aggregate_dashboards.items():
if agg_type in exclude_agg: if agg_type in exclude_agg:
dash_name = f'Aggregates - {agg_type}' dash_name = {'title': f'Aggregate - {agg_type}'}
executor.submit(delete_dashboard, executor.submit(delete_dashboard,
token_request, dash_name, token_request, dash_name,
agg_folder['id']) agg_folder['id'])
......
...@@ -640,88 +640,66 @@ ...@@ -640,88 +640,66 @@
} }
{% else %} {% else %}
{ {
"datasource": "PollerInfluxDB", "datasource": null,
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": {}
"align": null,
"filterable": false
}, },
"mappings": [], "overrides": []
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
}, },
"folderId": null,
"gridPos": { "gridPos": {
"h": 24, "h": 11,
"w": 24, "w": 6,
"x": 0, "x": 9,
"y": 0 "y": 0
}, },
"headings": true, "id": 4,
"id": 2, "options": {
"limit": 100, "content": "<center><img src=\"https://connect.geant.org/wp-content/uploads/2021/04/geant_logo.png\" alt=\"GEANT Logo\" height=\"308\" width=\"616\"></center>",
"pluginVersion": "7.2.1", "mode": "html"
"query": "", },
"recent": false, "pluginVersion": "7.1.0",
"repeat": null,
"search": true,
"starred": true,
"tags": [],
"targets": [ "targets": [
{ {
"groupBy": [ "groupBy": [
{ {
"params": [ "params": [
"$__interval" "$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
], ],
"type": "time" "orderByTime": "ASC",
}, "policy": "default",
{ "refId": "A",
"params": [ "resultFormat": "time_series",
"null" "select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
], ],
"type": "fill" "tags": []
} }
],
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
}
], ],
"timeFrom": null, "timeFrom": null,
"timeShift": null, "timeShift": null,
"title": "Dashboards", "title": "BRIAN",
"type": "dashlist" "type": "text"
} }
{% endif %} {% endif %}
], ],
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [0.9] - 2021-04-12
- Show GEANT logo on home dashboards for non-staff organizations
- Remove hardcoded database name from lab dashboard
- Properly exclude a number of dashboards and folders
- Add PIONIER alias of PSNC to exclude
## [0.8] - 2021-04-09 ## [0.8] - 2021-04-09
- Templated home dashboard to provision different one for each organization - Templated home dashboard to provision different one for each organization
- Add interface names to aggregate graph target aliases - Add interface names to aggregate graph target aliases
......
...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages ...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name='brian-dashboard-manager', name='brian-dashboard-manager',
version="0.8", version="0.9",
author='GEANT', author='GEANT',
author_email='swd@geant.org', author_email='swd@geant.org',
description='', description='',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment