346 lines
7.5 KiB
JSON
346 lines
7.5 KiB
JSON
{
|
|
"annotations": {},
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 1,
|
|
"panels": [
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 0,
|
|
"panels": [],
|
|
"title": "Overview",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "$datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"fillOpacity": 10,
|
|
"gradientMode": "opacity",
|
|
"showPoints": "never"
|
|
},
|
|
"unit": "bytes"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 1
|
|
},
|
|
"interval": "5s",
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"last",
|
|
"max",
|
|
"mean"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Last",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "single",
|
|
"sort": "asc"
|
|
}
|
|
},
|
|
"repeatDirection": "h",
|
|
"targets": [
|
|
{
|
|
"expr": "sum by (pod,namespace) ((container_memory_working_set_bytes{image=\"\"} * on(pod, namespace) agentgateway_build_info))",
|
|
"legendFormat": "{{namespace}}/{{pod}}",
|
|
"refId": ""
|
|
}
|
|
],
|
|
"title": "Memory",
|
|
"transformations": [],
|
|
"transparent": false,
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "$datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"fillOpacity": 10,
|
|
"gradientMode": "opacity",
|
|
"showPoints": "never"
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 1
|
|
},
|
|
"interval": "5s",
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"last",
|
|
"max",
|
|
"mean"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Last",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "single",
|
|
"sort": "asc"
|
|
}
|
|
},
|
|
"repeatDirection": "h",
|
|
"targets": [
|
|
{
|
|
"expr": "sum by (pod,namespace) ((irate(container_cpu_usage_seconds_total{image=\"\"}[$__rate_interval]) * on(pod, namespace) agentgateway_build_info))",
|
|
"legendFormat": "{{namespace}}/{{pod}}",
|
|
"refId": ""
|
|
}
|
|
],
|
|
"title": "CPU",
|
|
"transformations": [],
|
|
"transparent": false,
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 11
|
|
},
|
|
"id": 0,
|
|
"panels": [],
|
|
"title": "Requests",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "$datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"fillOpacity": 10,
|
|
"gradientMode": "opacity",
|
|
"showPoints": "never"
|
|
},
|
|
"unit": "reqps"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 12
|
|
},
|
|
"interval": "5s",
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"last",
|
|
"max",
|
|
"mean"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Last",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "single",
|
|
"sort": "asc"
|
|
}
|
|
},
|
|
"repeatDirection": "h",
|
|
"targets": [
|
|
{
|
|
"expr": "sum by (pod,namespace) (rate(agentgateway_requests_total[$__rate_interval]))",
|
|
"legendFormat": "{{namespace}}/{{pod}}",
|
|
"refId": ""
|
|
}
|
|
],
|
|
"title": "Requests (by Pod)",
|
|
"transformations": [],
|
|
"transparent": false,
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "$datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"fillOpacity": 10,
|
|
"gradientMode": "opacity",
|
|
"showPoints": "never"
|
|
},
|
|
"unit": "reqps"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 12
|
|
},
|
|
"interval": "5s",
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"last",
|
|
"max",
|
|
"mean"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Last",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "single",
|
|
"sort": "asc"
|
|
}
|
|
},
|
|
"repeatDirection": "h",
|
|
"targets": [
|
|
{
|
|
"expr": "sum by (gateway) (rate(agentgateway_requests_total[$__rate_interval]))",
|
|
"legendFormat": "{{gateway}}",
|
|
"refId": ""
|
|
}
|
|
],
|
|
"title": "Requests (by Gateway)",
|
|
"transformations": [],
|
|
"transparent": false,
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "$datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"fillOpacity": 10,
|
|
"gradientMode": "opacity",
|
|
"showPoints": "never"
|
|
},
|
|
"unit": "reqps"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 22
|
|
},
|
|
"interval": "5s",
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"last",
|
|
"max",
|
|
"mean"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Last",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "single",
|
|
"sort": "asc"
|
|
}
|
|
},
|
|
"repeatDirection": "h",
|
|
"targets": [
|
|
{
|
|
"expr": "sum by (route) (rate(agentgateway_requests_total[$__rate_interval]))",
|
|
"legendFormat": "{{route}}",
|
|
"refId": ""
|
|
}
|
|
],
|
|
"title": "Requests (by Route)",
|
|
"transformations": [],
|
|
"transparent": false,
|
|
"type": "timeseries"
|
|
}
|
|
],
|
|
"refresh": "15s",
|
|
"schemaVersion": 36,
|
|
"style": "dark",
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"auto": false,
|
|
"auto_count": 30,
|
|
"auto_min": "10s",
|
|
"hide": 0,
|
|
"id": "00000000-0000-0000-0000-000000000000",
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "datasource",
|
|
"query": "prometheus",
|
|
"skipUrlSync": false,
|
|
"type": "datasource"
|
|
},
|
|
{
|
|
"auto": false,
|
|
"auto_count": 30,
|
|
"auto_min": "10s",
|
|
"hide": 0,
|
|
"id": "00000000-0000-0000-0000-000000000000",
|
|
"includeAll": false,
|
|
"label": "Namespace",
|
|
"multi": true,
|
|
"name": "namespace",
|
|
"query": "label_values(agentgateway_build_info,namespace)",
|
|
"refresh": 2,
|
|
"skipUrlSync": false,
|
|
"sort": 1,
|
|
"type": "query"
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-30m",
|
|
"to": "now"
|
|
},
|
|
"timezone": "browser",
|
|
"title": "Agentgateway",
|
|
"uid": "agentgateway"
|
|
} |