Skip to content

Commit

Permalink
[AUTO-COMMIT] Backup grafana dashboards
Browse files Browse the repository at this point in the history
Files changed:
M	grafana/staging/dashboards/ai-gateway.json
M	grafana/staging/dashboards/app-versions.json
M	grafana/staging/dashboards/nginx-5xx.json
M	grafana/staging/dashboards/orchestrator-versions.json
  • Loading branch information
hjpotter92 committed Nov 16, 2024
1 parent cfefc86 commit 34e756f
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 12 deletions.
2 changes: 1 addition & 1 deletion grafana/staging/dashboards/ai-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -2439,6 +2439,6 @@
"timezone": "",
"title": "AI Gateway",
"uid": "Livepeer-Gateway-AI",
"version": 8,
"version": 1,
"weekStart": "monday"
}
2 changes: 1 addition & 1 deletion grafana/staging/dashboards/app-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,6 @@
"timezone": "utc",
"title": "App Versions",
"uid": "L7BdzGh4z",
"version": 4,
"version": 1,
"weekStart": ""
}
219 changes: 210 additions & 9 deletions grafana/staging/dashboards/nginx-5xx.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"axisPlacement": "auto",
"axisSoftMin": 0,
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -223,6 +224,7 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "All the requests (all response statuses)",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -235,6 +237,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
Expand Down Expand Up @@ -365,6 +368,7 @@
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
Expand All @@ -381,6 +385,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -524,14 +529,15 @@
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "sum by(path, host, method) (increase(nginx_ingress_controller_requests{ingress=~\"${ingress:pipe}\", region=~\"${region:pipe}\", host=~\"${host:pipe}\", status=~\"${status:pipe}\", method=~\"${method:pipe}\", path=~\"${path:pipe}\", path!=\"/51eebae3-9b8e-48bc-89ca-5340c4074a48.json\"}[$__interval]))",
"expr": "sum by(host, method, path) (increase(nginx_ingress_controller_requests{ingress=~\"${ingress:pipe}\", region=~\"${region:pipe}\", host=~\"${host:pipe}\", status=~\"${status:pipe}\", method=~\"${method:pipe}\", path=~\"${path:pipe}\"}[$__interval]))",
"format": "time_series",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "{{ host }} {{ method }} {{ path }}",
"legendFormat": "{{method}} {{host}} {{path}}",
"metric": "container_memory_usage:sort_desc",
"range": true,
"refId": "A",
Expand Down Expand Up @@ -559,6 +565,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -719,6 +726,7 @@
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
Expand All @@ -735,6 +743,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -910,6 +919,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "bars",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -1113,6 +1123,7 @@
},
{
"datasource": {
"default": false,
"type": "datasource",
"uid": "-- Mixed --"
},
Expand All @@ -1128,6 +1139,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -1267,8 +1279,8 @@
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(ingress) (increase(nginx_ingress_controller_requests{region!=\"fra\", status=\"429\", ingress=~\"$ingress\"}[$__interval]))",
"editorMode": "code",
"expr": "sum by(ingress) (increase(nginx_ingress_controller_requests{region=~\"${region:pipe}\", status=\"429\", ingress=~\"$ingress\"}[$__interval]))",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
Expand Down Expand Up @@ -1302,11 +1314,200 @@
"content": "* We don't collect `/health`, `/healthz`, `/{{ UUID }}.json`, `/loki/api/v1/push`, `/insert/420/prometheus` logs.\nSo even you can see prometheus metrics related to these endpoints the logs are missing\n* Too narrow time range may filter out some logs while showing prometheus metrics on charts as metrics and logs might have slightly different datetimes.\n* [Explore nginx logs](/grafana/explore?schemaVersion=1&panes=%7B%22D32%22:%7B%22datasource%22:%22P8E80F9AEF21F6940%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bapp%3D%5C%22ingress-nginx%5C%22,%20namespace%3D%5C%22default%5C%22,%20stream%3D%5C%22stdout%5C%22,%20region%3D~%5C%22${region:pipe}%5C%22%7D%20%7C%20pattern%20%60%3Cip%3E%20-%20-%20%3Ctimestamp%3E%20%5C%22%3Cmethod%3E%20%3Curl%3E%20%3Cprotocol%3E%5C%22%20%3Cstatus%3E%20%3Cbytes%3E%20%5C%22%3Corigin%3E%5C%22%20%5C%22%3CuserAgent%3E%5C%22%20%3Cwtf1%3E%20%3Cwtf2%3E%20%5B%3Cupstream%3E%5D%20%5B%3Cwtf3%3E%5D%20%3CupstreamAddr%3E%20%3Cwtf4%3E%20%3Cwtf5%3E%20%3CupstreamStatus%3E%20%3CrequestId%3E%60%20%7C%20upstream%20%3D~%20%60default-%28${ingress:pipe}%29-.%2A%60%20%7C%20status%20%3D~%20%60${status:pipe}%60%22,%22queryType%22:%22range%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22P8E80F9AEF21F6940%22%7D,%22editorMode%22:%22code%22%7D%5D,%22range%22:%7B%22from%22:%22${__from}%22,%22to%22:%22${__to}%22%7D%7D%7D&orgId=1)",
"mode": "markdown"
},
"pluginVersion": "11.1.3",
"pluginVersion": "11.2.0",
"type": "text"
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "All the requests (all response statuses)",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "max - istio-proxy"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#890f02",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "max - master"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#bf1b00",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "max - prometheus"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#bf1b00",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byValue",
"options": {
"op": "gte",
"reducer": "allIsZero",
"value": 0
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": true,
"tooltip": true,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 40
},
"id": 14,
"options": {
"legend": {
"calcs": [
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Max",
"sortDesc": true
},
"tooltip": {
"mode": "single",
"sort": "asc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "sum by(region) (increase(nginx_ingress_controller_response_size_sum{ingress=~\"${ingress:pipe}\", region=~\"${region:pipe}\", host=~\"${host:pipe}\", method=~\"${method:pipe}\", path=~\"${path:pipe}\"}[$__interval]))",
"format": "time_series",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"interval": "10s",
"intervalFactor": 1,
"legendFormat": "read {{region}}",
"metric": "container_memory_usage:sort_desc",
"refId": "A",
"step": 10,
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum by(region) (increase(nginx_ingress_controller_bytes_sent_sum{ingress=~\"${ingress:pipe}\", region=~\"${region:pipe}\", host=~\"${host:pipe}\", method=~\"${method:pipe}\", path=~\"${path:pipe}\"}[$__interval]))",
"hide": false,
"instant": false,
"legendFormat": "write {{region}}",
"range": true,
"refId": "B"
}
],
"title": "Total bytes per region",
"type": "timeseries"
}
],
"refresh": false,
"schemaVersion": 39,
"tags": [
"nginx"
Expand All @@ -1316,7 +1517,7 @@
{
"allValue": ".*",
"current": {
"selected": true,
"selected": false,
"text": [
"5XX"
],
Expand Down Expand Up @@ -1679,8 +1880,8 @@
]
},
"time": {
"from": "now-3h",
"to": "now"
"from": "2024-11-01T14:05:46.213Z",
"to": "2024-11-01T22:09:12.923Z"
},
"timepicker": {},
"timezone": "",
Expand Down
2 changes: 1 addition & 1 deletion grafana/staging/dashboards/orchestrator-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,6 @@
"timezone": "browser",
"title": "Orchestrator versions",
"uid": "edyyryuj00we8b",
"version": 2,
"version": 1,
"weekStart": ""
}

0 comments on commit 34e756f

Please sign in to comment.