projects
/
osm
/
MON.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b43227f
)
Merge "Adds osm_automated tag to automated dashboards Fixes Bug 1027."
author
lavado
<glavado@whitestack.com>
Fri, 20 Mar 2020 22:46:05 +0000
(23:46 +0100)
committer
Gerrit Code Review
<root@osm.etsi.org>
Fri, 20 Mar 2020 22:46:05 +0000
(23:46 +0100)
osm_mon/dashboarder/backends/grafana.py
patch
|
blob
|
history
osm_mon/dashboarder/templates/ns_scoped.json
patch
|
blob
|
history
osm_mon/dashboarder/templates/project_scoped.json
patch
|
blob
|
history
diff --git
a/osm_mon/dashboarder/backends/grafana.py
b/osm_mon/dashboarder/backends/grafana.py
index
491cd52
..
4f1fe52
100644
(file)
--- a/
osm_mon/dashboarder/backends/grafana.py
+++ b/
osm_mon/dashboarder/backends/grafana.py
@@
-34,7
+34,8
@@
headers = {
def get_all_dashboard_uids():
- response = requests.request("GET", url + "search?query=%", headers=headers)
+ # Gets only dashboards that were automated by OSM (with tag 'osm_automated')
+ response = requests.request("GET", url + "search?tag=osm_automated", headers=headers)
dashboards = response.json()
dashboard_uids = []
for dashboard in dashboards:
diff --git
a/osm_mon/dashboarder/templates/ns_scoped.json
b/osm_mon/dashboarder/templates/ns_scoped.json
index
977ec21
..
222d836
100644
(file)
--- a/
osm_mon/dashboarder/templates/ns_scoped.json
+++ b/
osm_mon/dashboarder/templates/ns_scoped.json
@@
-585,7
+585,7
@@
"refresh": "5s",
"schemaVersion": 20,
"style": "dark",
- "tags": [],
+ "tags": [
"osm_automated"
],
"templating": {
"list": [
{
diff --git
a/osm_mon/dashboarder/templates/project_scoped.json
b/osm_mon/dashboarder/templates/project_scoped.json
index
e58d922
..
2f49164
100644
(file)
--- a/
osm_mon/dashboarder/templates/project_scoped.json
+++ b/
osm_mon/dashboarder/templates/project_scoped.json
@@
-547,7
+547,7
@@
"refresh": "5s",
"schemaVersion": 20,
"style": "dark",
- "tags": [],
+ "tags": [
"osm_automated"
],
"templating": {
"list": [
{