Skip to content

Commit

Permalink
Merge pull request #33 from Ygnas/dashboards-update
Browse files Browse the repository at this point in the history
Dashboards update
  • Loading branch information
david-martin authored Sep 14, 2023
2 parents 841b80e + 003ecd4 commit 4b3f083
Show file tree
Hide file tree
Showing 17 changed files with 10,595 additions and 597 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ and the various Gateway API resources in the `gateway.networking.k8s.io` apiGrou
A set of Grafana dashboards are available in [./config/examples/dashboards](./config/examples/dashboards)
and on [grafana.com](https://grafana.com/grafana/dashboards/?search=Gateway+API+State)
You can import them directly into Grafana and modify as needed.
The dashboards are divided by resources (GatewayClasses, Gateways and HTTPRoutes),
The dashboards are divided by resources (GatewayClasses, Gateways, HTTPRoutes, GRPCRoutes, TLSRoutes, TCPRoutes and UDPRoutes),
with variables for filtering, and links to drill down from a GatewayClass to a
Gateway to a HTTPRoute.
Gateway to all the routes.

https://grafana.com/grafana/dashboards/19432
<img src="gatewayclasses.png" alt="gatewayclasses" width="800"/>
Expand All @@ -44,6 +44,18 @@ https://grafana.com/grafana/dashboards/19433
https://grafana.com/grafana/dashboards/19434
<img src="httproutes.png" alt="httproutes" width="800"/>

https://grafana.com/grafana/dashboards/19570
<img src="grpcroutes.png" alt="grpcroutes" width="800"/>

https://grafana.com/grafana/dashboards/19572
<img src="tlsroutes.png" alt="tlsroutes" width="800"/>

https://grafana.com/grafana/dashboards/19571
<img src="tcproutes.png" alt="tcproutes" width="800"/>

https://grafana.com/grafana/dashboards/19573
<img src="udproutes.png" alt="udproutes" width="800"/>

## Alerts

A set of example Alerts are available in [./config/examples/rules](./config/examples/rules).
Expand Down
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": 1694697359281,
"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": "GatewayClass"
}
}
}
],
"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 4b3f083

Please sign in to comment.