Skip to content
Snippets Groups Projects

aurweb: enable goaurrpc metrics

Merged Leonidas Spyropoulos requested to merge artafinde/infrastructure:goaurrpc_metrics into master
All threads resolved!
@@ -17,6 +17,12 @@
"name": "Grafana",
"version": ""
},
{
"type": "panel",
"id": "piechart",
"name": "Pie chart",
"version": ""
},
{
"type": "datasource",
"id": "prometheus",
@@ -69,7 +75,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"description": "",
"fieldConfig": {
@@ -150,19 +156,19 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "rpc_data_last_refresh * 1000",
"hide": false,
"legendFormat": "Last meadata refresh",
"legendFormat": "Last metadata refresh",
"range": true,
"refId": "last_refresh"
},
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "sum(rpc_requests)",
@@ -174,13 +180,25 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "sum(rpc_requests_rate_limited)",
"legendFormat": "Requests rate-limited",
"range": true,
"refId": "requests_rate_limited"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "rpc_cache_hits",
"hide": false,
"legendFormat": "Cache hits",
"range": true,
"refId": "A"
}
],
"type": "stat"
@@ -188,7 +206,70 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 5,
"x": 6,
"y": 0
},
"id": 22,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "sum by(type) (rpc_requests)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Total Requests by type",
"type": "piechart"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_GOAURRPC}"
},
"fieldConfig": {
"defaults": {
@@ -248,8 +329,8 @@
},
"gridPos": {
"h": 7,
"w": 18,
"x": 6,
"w": 13,
"x": 11,
"y": 0
},
"id": 6,
@@ -269,7 +350,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "go_memstats_heap_alloc_bytes{job=\"goaurrpc\"}",
@@ -280,7 +361,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "process_resident_memory_bytes{job=\"goaurrpc\"}",
@@ -296,7 +377,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"fieldConfig": {
"defaults": {
@@ -373,7 +454,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "sum by(type) (rate(rpc_requests[5m]))",
@@ -388,7 +469,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"fieldConfig": {
"defaults": {
@@ -465,7 +546,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"exemplar": false,
@@ -483,7 +564,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"fieldConfig": {
"defaults": {
@@ -561,7 +642,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "histogram_quantile(0.95, sum by(le) (rate(rpc_request_duration_seconds_bucket[5m])))",
@@ -572,7 +653,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "histogram_quantile(0.5, sum by(le) (rate(rpc_request_duration_seconds_bucket[5m])))",
@@ -584,7 +665,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "rate(rpc_request_duration_seconds_sum[5m]) / rate(rpc_request_duration_seconds_count[5m])",
@@ -600,7 +681,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"fieldConfig": {
"defaults": {
@@ -678,7 +759,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
"uid": "${DS_GOAURRPC}"
},
"editorMode": "builder",
"expr": "sum(rate(rpc_response_size_bytes_sum[5m])) / sum(rate(rpc_response_size_bytes_count[5m]))",
@@ -699,13 +780,13 @@
"list": []
},
"time": {
"from": "now-30m",
"from": "now-15m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "goaurrpc",
"uid": "mGJE0LS4z",
"version": 11,
"version": 1,
"weekStart": ""
}
}
\ No newline at end of file
Loading