Skip to content

Commit

Permalink
Gateway dashboard update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ygnas committed Sep 14, 2023
1 parent 841b80e commit a4cbb16
Show file tree
Hide file tree
Showing 3 changed files with 6,501 additions and 595 deletions.
163 changes: 160 additions & 3 deletions config/examples/dashboards/gatewayclasses.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"iteration": 1692886841224,
"iteration": 1694695189576,
"links": [
{
"asDropdown": false,
Expand Down Expand Up @@ -397,7 +396,7 @@
"value": [
{
"title": "Gateway Details",
"url": "/d/gatewayapigateways/gateway-api-state-gateways?var-gateway=${__value.text}"
"url": "/d/gatewayapigateways/gateway-api-state-gateways?var-gateway=${__value.text}"
}
]
},
Expand Down Expand Up @@ -482,6 +481,138 @@
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto",
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "name"
},
"properties": [
{
"id": "custom.width",
"value": 333
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 20,
"x": 4,
"y": 7
},
"id": 33,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "8.5.5",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "gatewayapi_gatewayclass_status_supported_features{name=\"$gatewayclass\"}",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Supported Features (by GatewayClass)",
"transformations": [
{
"id": "reduce",
"options": {
"includeTimeField": false,
"labelsToFields": true,
"mode": "seriesToRows",
"reducers": [
"last"
]
}
},
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"features",
"name"
]
}
}
},
{
"id": "groupBy",
"options": {
"fields": {
"features": {
"aggregations": [
"allValues"
],
"operation": "aggregate"
},
"name": {
"aggregations": [],
"operation": "groupby"
}
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {},
"renameByName": {
"features (allValues)": "Features",
"name": "Name"
}
}
}
],
"type": "table"
}
],
"schemaVersion": 36,
Expand Down Expand Up @@ -510,6 +641,32 @@
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": true,
"text": "istio",
"value": "istio"
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(gatewayapi_gatewayclass_info, name)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "gatewayclass",
"options": [],
"query": {
"query": "label_values(gatewayapi_gatewayclass_info, name)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
Expand Down
Loading

0 comments on commit a4cbb16

Please sign in to comment.