Skip to content

Commit

Permalink
Remaining route dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
Ygnas committed Oct 3, 2023
1 parent b7e377c commit bc30b01
Show file tree
Hide file tree
Showing 18 changed files with 7,877 additions and 11,793 deletions.
1,621 changes: 648 additions & 973 deletions config/examples/dashboards/grpcroutes.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions config/examples/dashboards/grpcroutes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: grpcroutes
spec:
instanceSelector:
matchLabels:
dashboards: "grafana"
json: >
{"editable":false,"links":[{"asDropdown":false,"includeVars":true,"keepTime":true,"tags":["gateway-api-state"],"targetBlank":false,"title":"Gateway Dashboards","type":"dashboards"}],"panels":[{"gridPos":{"h":1,"w":24,"x":0,"y":0},"id":1,"title":"GRPCRoutes","type":"row"},{"datasource":{"type":"prometheus","uid":"$datasource"},"description":"Total number of GRPCRoutes across all namespaces","gridPos":{"h":3,"w":2,"x":0,"y":1},"id":2,"pluginVersion":"v10.0.0","targets":[{"datasource":{"type":"prometheus","uid":"$datasource"},"expr":"count(gatewayapi_grpcroute_created{name=~\"${grpcroute}\"})","instant":true}],"title":"Total","type":"stat"},{"datasource":{"type":"prometheus","uid":"$datasource"},"description":"Total number of parents (e.g. Gateways) targeted by GRPCRoutes","gridPos":{"h":3,"w":2,"x":2,"y":1},"id":3,"pluginVersion":"v10.0.0","targets":[{"datasource":{"type":"prometheus","uid":"$datasource"},"expr":"count(gatewayapi_grpcroute_parent_info{name=~\"${grpcroute}\"})","instant":true}],"title":"Tar. Parents","type":"stat"},{"datasource":{"type":"prometheus","uid":"$datasource"},"fieldConfig":{"overrides":[{"matcher":{"id":"byName","options":"Created At"},"properties":[{"id":"unit","value":"dateTimeAsIso"}]}]},"gridPos":{"h":6,"w":10,"x":4,"y":1},"id":4,"pluginVersion":"v10.0.0","targets":[{"datasource":{"type":"prometheus","uid":"$datasource"},"expr":"gatewayapi_grpcroute_created{name=~\"${grpcroute}\"}","format":"table","instant":true,"range":false}],"title":"GRPCRoutes","transformations":[{"id":"filterFieldsByName","options":{"include":{"names":["customresource_version","name","namespace","Value"]}}},{"id":"calculateField","options":{"alias":"Created At","binary":{"left":"Value","operator":"*","reducer":"sum","right":"1000"},"mode":"binary","reduce":{"reducer":"sum"},"replaceFields":false}},{"id":"organize","options":{"excludeByName":{"Value":true},"indexByName":{},"renameByName":{"Value":"Created","customresource_kind":"Kind","customresource_version":"Version","name":"Name","namespace":"Namespace"}}}],"type":"table"},{"datasource":{"type":"prometheus","uid":"$datasource"},"fieldConfig":{"overrides":[{"matcher":{"id":"byName","options":"Created At"},"properties":[{"id":"unit","value":"dateTimeAsIso"}]},{"matcher":{"id":"byName","options":"Kind"},"properties":[{"id":"custom.width","value":"108"}]},{"matcher":{"id":"byName","options":"Version"},"properties":[{"id":"custom.width","value":"85"}]},{"matcher":{"id":"byName","options":"Listener Name"},"properties":[{"id":"custom.width","value":"119"}]},{"matcher":{"id":"byName","options":"Hostname"},"properties":[{"id":"custom.width","value":"163"}]},{"matcher":{"id":"byName","options":"Port"},"properties":[{"id":"custom.width","value":"59"}]},{"matcher":{"id":"byName","options":"Protocol"},"properties":[{"id":"custom.width","value":"104"}]},{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":"98"}]},{"matcher":{"id":"byName","options":"Parent Kind"},"properties":[{"id":"custom.width","value":"103"}]},{"matcher":{"id":"byName","options":"Parent Name"},"properties":[{"id":"custom.width","value":"118"}]},{"matcher":{"id":"byName","options":"Namespace"},"properties":[{"id":"custom.width","value":"124"}]}]},"gridPos":{"h":6,"w":10,"x":14,"y":1},"id":5,"pluginVersion":"v10.0.0","targets":[{"datasource":{"type":"prometheus","uid":"$datasource"},"expr":"gatewayapi_grpcroute_parent_info{name=~\"${grpcroute}\"}","format":"table","instant":true,"range":false}],"title":"GRPCRoute *targeted* Parent References","transformations":[{"id":"filterFieldsByName","options":{"include":{"names":["customresource_version","name","namespace","parent_kind","parent_name","parent_namespace"]}}},{"id":"organize","options":{"excludeByName":{"Value":true},"indexByName":{"Value":9,"customresource_kind":0,"customresource_version":1,"hostname":5,"listener_name":4,"name":2,"namespace":3,"port":6,"protocol":7,"tls_mode":8},"renameByName":{"Value":"","customresource_kind":"Kind","customresource_version":"Version","hostname":"Hostname","listener_name":"Listener Name","name":"Name","namespace":"Namespace","parent_kind":"Parent Kind","parent_name":"Parent Name","parent_namespace":"Parent Namespace","port":"Port","prometheus":"","protocol":"Protocol","tls_mode":"TLS Mode","type":"Address Type","value":"Address Value"}}}],"type":"table"},{"datasource":{"type":"prometheus","uid":"$datasource"},"description":"Total number of parents (e.g. Gateways) attached to GRPCRoutes","gridPos":{"h":3,"w":2,"x":0,"y":4},"id":6,"pluginVersion":"v10.0.0","targets":[{"datasource":{"type":"prometheus","uid":"$datasource"},"expr":"count(gatewayapi_grpcroute_status_parent_info{name=~\"${grpcroute}\"})","instant":true}],"title":"Att. Parents","type":"stat"},{"datasource":{"type":"prometheus","uid":"$datasource"},"fieldConfig":{"overrides":[{"matcher":{"id":"byName","options":"Created At"},"properties":[{"id":"unit","value":"dateTimeAsIso"}]},{"matcher":{"id":"byName","options":"Kind"},"properties":[{"id":"custom.width","value":"108"}]},{"matcher":{"id":"byName","options":"Version"},"properties":[{"id":"custom.width","value":"85"}]},{"matcher":{"id":"byName","options":"Listener Name"},"properties":[{"id":"custom.width","value":"119"}]},{"matcher":{"id":"byName","options":"Hostname"},"properties":[{"id":"custom.width","value":"163"}]},{"matcher":{"id":"byName","options":"Port"},"properties":[{"id":"custom.width","value":"59"}]},{"matcher":{"id":"byName","options":"Protocol"},"properties":[{"id":"custom.width","value":"104"}]},{"matcher":{"id":"byName","options":"Name"},"properties":[{"id":"custom.width","value":"98"}]},{"matcher":{"id":"byName","options":"Parent Kind"},"properties":[{"id":"custom.width","value":"103"}]},{"matcher":{"id":"byName","options":"Parent Name"},"properties":[{"id":"custom.width","value":"118"}]},{"matcher":{"id":"byName","options":"Namespace"},"properties":[{"id":"custom.width","value":"124"}]}]},"gridPos":{"h":6,"w":10,"x":4,"y":7},"id":7,"pluginVersion":"v10.0.0","targets":[{"datasource":{"type":"prometheus","uid":"$datasource"},"expr":"gatewayapi_grpcroute_status_parent_info{name=~\"${grpcroute}\"}","format":"table","instant":true,"range":false}],"title":"GRPCRoute *attached* Parent References","transformations":[{"id":"filterFieldsByName","options":{"include":{"names":["customresource_version","name","namespace","parent_kind","parent_name","parent_namespace"]}}},{"id":"organize","options":{"excludeByName":{"Value":true},"indexByName":{"Value":9,"customresource_kind":0,"customresource_version":1,"hostname":5,"listener_name":4,"name":2,"namespace":3,"port":6,"protocol":7,"tls_mode":8},"renameByName":{"Value":"","customresource_kind":"Kind","customresource_version":"Version","hostname":"Hostname","listener_name":"Listener Name","name":"Name","namespace":"Namespace","parent_kind":"Parent Kind","parent_name":"Parent Name","parent_namespace":"Parent Namespace","port":"Port","prometheus":"","protocol":"Protocol","tls_mode":"TLS Mode","type":"Address Type","value":"Address Value"}}}],"type":"table"}],"schemaVersion":36,"style":"dark","tags":["gateway-api","gateway-api-state"],"templating":{"list":[{"label":"Data Source","name":"datasource","query":"prometheus","type":"datasource"},{"datasource":{"type":"prometheus","uid":"${datasource}"},"includeAll":true,"label":"GRPCRoute","multi":true,"name":"grpcroute","query":{"query":"label_values(gatewayapi_grpcroute_created, name)","refId":"StandardVariableQuery"},"regex":"/(.*)/","type":"query"}]},"time":{"from":"now-1h","to":"now"},"timezone":"utc","title":"Gateway API State / GRPCRoutes","uid":"gatewayapigrpcroutes"}
Loading

0 comments on commit bc30b01

Please sign in to comment.