Skip to content

Commit

Permalink
fix: handle min-max for network dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardikl committed Feb 22, 2023
1 parent 6d5d732 commit 5eab65b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 49 deletions.
16 changes: 16 additions & 0 deletions grafana/dashboards/7mode/network7.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,14 @@
}
]
}
},
{
"id": "max",
"value": 1
},
{
"id": "min",
"value": 0
}
]
},
Expand Down Expand Up @@ -1503,6 +1511,14 @@
}
]
}
},
{
"id": "max",
"value": 1
},
{
"id": "min",
"value": 0
}
]
},
Expand Down
65 changes: 16 additions & 49 deletions grafana/dashboards/cmode/network.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,14 @@
}
]
}
},
{
"id": "max",
"value": 1
},
{
"id": "min",
"value": 0
}
]
},
Expand Down Expand Up @@ -1530,6 +1538,14 @@
}
]
}
},
{
"id": "max",
"value": 1
},
{
"id": "min",
"value": 0
}
]
},
Expand Down Expand Up @@ -2535,54 +2551,6 @@
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #C"
},
"properties": [
{
"id": "unit",
"value": "percentunit"
},
{
"id": "custom.displayMode",
"value": "gradient-gauge"
},
{
"id": "displayName",
"value": "used %"
},
{
"id": "noValue",
"value": "n/a"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "rgb(80, 220, 20)",
"value": null
},
{
"color": "light-yellow",
"value": 50
},
{
"color": "semi-dark-orange",
"value": 75
},
{
"color": "semi-dark-red",
"value": 90
}
]
}
}
]
},
{
"matcher": {
"id": "byName",
Expand Down Expand Up @@ -2693,7 +2661,6 @@
"node",
"port",
"speed",
"Value #C",
"Value #A",
"Value #B"
]
Expand Down

0 comments on commit 5eab65b

Please sign in to comment.