Skip to content

Commit

Permalink
Add panel for new load service to home dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
adeveloper-wq committed Jun 24, 2024
1 parent 38e14aa commit 1a6227b
Showing 1 changed file with 110 additions and 98 deletions.
208 changes: 110 additions & 98 deletions provisioning/dashboards/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -2297,7 +2297,7 @@
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 50,
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
Expand Down Expand Up @@ -2335,13 +2335,107 @@
}
]
},
"unit": "percent",
"unitScale": true
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Recommend Other Backend"
},
"properties": [
{
"id": "unit",
"value": "none"
},
{
"id": "max",
"value": 1
},
{
"id": "min",
"value": 0
},
{
"id": "custom.fillOpacity",
"value": 50
},
{
"id": "decimals",
"value": 0
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"index": 1,
"text": "Off"
},
"1": {
"index": 0,
"text": "On"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "Show Warning"
},
"properties": [
{
"id": "unit",
"value": "none"
},
{
"id": "min",
"value": 0
},
{
"id": "max",
"value": 1
},
{
"id": "custom.fillOpacity",
"value": 50
},
{
"id": "decimals",
"value": 0
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"index": 0,
"text": "Off"
},
"1": {
"index": 1,
"text": "On"
}
},
"type": "value"
}
]
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"w": 24,
"x": 0,
"y": 73
},
Expand All @@ -2351,7 +2445,7 @@
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand All @@ -2365,8 +2459,8 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "last_status_app_starts",
"legendFormat": "# App Starts (per Bucket)",
"expr": "load_pct",
"legendFormat": "{{node_type}}",
"range": true,
"refId": "A"
},
Expand All @@ -2376,110 +2470,28 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "last_status_past_buckets_avg_cpm",
"expr": "recommend_other_backend",
"hide": false,
"legendFormat": "# App Starts (past three weeks)",
"instant": false,
"legendFormat": "Recommend Other Backend",
"range": true,
"refId": "B"
}
],
"title": "# App Starts (bucket-wise)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 50,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bool_on_off",
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 73
},
"id": 71,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "last_status_warning",
"legendFormat": "Load Warning",
"expr": "warning",
"hide": false,
"instant": false,
"legendFormat": "Show Warning",
"range": true,
"refId": "A"
"refId": "C"
}
],
"title": "Load Warning active",
"title": "CPU Load per Node Type",
"type": "timeseries"
}
],
Expand All @@ -2490,7 +2502,7 @@
"list": []
},
"time": {
"from": "now-30m",
"from": "now-1h",
"to": "now"
},
"timeRangeUpdatedDuringEditOrView": false,
Expand Down

0 comments on commit 1a6227b

Please sign in to comment.