Grafana as Code

Transfer our dashboard into a code representation via grafanalib.
This commit is contained in:
Maximilian Paß
2022-10-26 16:51:56 +01:00
parent b98e3deb40
commit 44aa5d73a2
31 changed files with 745 additions and 1746 deletions

View File

@@ -0,0 +1,21 @@
def color_mapping(name, color):
return {
"fieldConfig": {
"overrides": [{
"matcher": {
"id": "byName",
"options": name
},
"properties": [{
"id": "color",
"value": {
"fixedColor": color,
"mode": "fixed"
}
}]
}]
}
}
grey_all_mapping = color_mapping("all", "#4c4b5a")