Skip to content
Snippets Groups Projects
Commit 3ec3c6d2 authored by Sam Roberts's avatar Sam Roberts
Browse files

do not let "EAP" become its own dashboard, add EAP Access dashboard

parent 40354999
No related branches found
No related tags found
1 merge request!13Feature/pol1 430 EAP NRENs
{
"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": 454,
"links": [],
"panels": [
{
"datasource": null,
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"folderId": null,
"gridPos": {
"h": 25,
"w": 24,
"x": 0,
"y": 0
},
"headings": false,
"id": 2,
"limit": 100,
"pluginVersion": "7.1.4",
"query": "",
"recent": false,
"search": true,
"starred": false,
"tags": [
"eap"
],
"targets": [
{
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "",
"type": "dashlist"
}
],
"schemaVersion": 26,
"style": "dark",
"tags": [
"customers"
],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "EAP Access",
"version": 1
}
......@@ -59,7 +59,7 @@ DASHBOARDS = {
},
'EAP': {
'tag': ['eap'],
'folder_name': 'EAP Access',
'folder_name': 'EAP NRENs',
'interfaces': []
},
'RE_PEER': {
......@@ -198,7 +198,7 @@ AGG_DASHBOARDS = {
NREN_CATEGORIES = {
'EAP': {
'folder_name': 'EAP Access'
'folder_name': 'EAP NRENs'
}
}
......
......@@ -8,6 +8,8 @@ import logging
from itertools import product
from functools import partial, reduce
from string import ascii_uppercase
from brian_dashboard_manager.grafana import provision
from brian_dashboard_manager.templating.render import create_panel, \
create_panel_target, create_dropdown_panel
......@@ -329,6 +331,8 @@ def get_nren_interface_data(services, regions, interfaces, excluded_dashboards):
for info in dashboards_info:
dashboard_name = info['name']
if dashboard_name in provision.NREN_CATEGORIES: # do not create panels for the category itself
continue
dashboard = result.get(dashboard_name, {
'AGGREGATES': [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment