Skip to content

Commit

Permalink
Merge pull request #58 from MerzMax/fix/grafana
Browse files Browse the repository at this point in the history
Fix grafana dashboard
  • Loading branch information
martbock authored Feb 14, 2022
2 parents 4ddbdd6 + 6ffa83e commit 0794777
Showing 1 changed file with 87 additions and 37 deletions.
124 changes: 87 additions & 37 deletions grafana/dashboards/go-processes.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"fiscalYearStartMonth": 0,
"gnetId": 6671,
"graphTooltip": 0,
"iteration": 1642864955105,
"iteration": 1644842976239,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -278,19 +278,25 @@
"steppedLine": false,
"targets": [
{
"expr": "process_resident_memory_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}",
"exemplar": true,
"expr": "process_resident_memory_bytes{instance=~\"server.+\"}",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - resident",
"legendFormat": "{{instance}} - resident",
"metric": "process_resident_memory_bytes",
"refId": "A",
"step": 4
},
{
"expr": "process_virtual_memory_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}",
"exemplar": true,
"expr": "process_virtual_memory_bytes{instance=~\"server.+\"}",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - virtual",
"legendFormat": "{{instance}} - virtual",
"metric": "process_virtual_memory_bytes",
"refId": "B",
"step": 4
Expand All @@ -317,6 +323,7 @@
},
"yaxes": [
{
"$$hashKey": "object:199",
"format": "bytes",
"label": null,
"logBase": 1,
Expand All @@ -325,6 +332,7 @@
"show": true
},
{
"$$hashKey": "object:200",
"format": "short",
"label": null,
"logBase": 1,
Expand Down Expand Up @@ -391,19 +399,23 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(process_resident_memory_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}[$interval])",
"exemplar": true,
"expr": "rate(process_resident_memory_bytes{instance=~\"server.+\"}[$interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - resident",
"legendFormat": "{{instance}} - resident",
"metric": "process_resident_memory_bytes",
"refId": "A",
"step": 4
},
{
"expr": "deriv(process_virtual_memory_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}[$interval])",
"exemplar": true,
"expr": "deriv(process_virtual_memory_bytes{instance=~\"server.+\"}[$interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - virtual",
"legendFormat": "{{instance}} - virtual",
"metric": "process_virtual_memory_bytes",
"refId": "B",
"step": 4
Expand All @@ -430,6 +442,7 @@
},
"yaxes": [
{
"$$hashKey": "object:255",
"format": "bytes",
"label": null,
"logBase": 1,
Expand All @@ -438,6 +451,7 @@
"show": true
},
{
"$$hashKey": "object:256",
"format": "short",
"label": null,
"logBase": 1,
Expand Down Expand Up @@ -504,38 +518,46 @@
"steppedLine": false,
"targets": [
{
"expr": "go_memstats_alloc_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}",
"exemplar": true,
"expr": "go_memstats_alloc_bytes{instance=~\"server.+\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - bytes allocated",
"legendFormat": "{{instance}} - bytes allocated",
"metric": "go_memstats_alloc_bytes",
"refId": "A",
"step": 4
},
{
"expr": "rate(go_memstats_alloc_bytes_total{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}[30s])",
"exemplar": true,
"expr": "rate(go_memstats_alloc_bytes_total{instance=~\"server.+\"}[30s])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - alloc rate",
"legendFormat": "{{instance}} - alloc rate",
"metric": "go_memstats_alloc_bytes_total",
"refId": "B",
"step": 4
},
{
"expr": "go_memstats_stack_inuse_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}",
"exemplar": true,
"expr": "go_memstats_stack_inuse_bytes{instance=~\"server.+\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - stack inuse",
"legendFormat": "{{instance}} - stack inuse",
"metric": "go_memstats_stack_inuse_bytes",
"refId": "C",
"step": 4
},
{
"expr": "go_memstats_heap_inuse_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}",
"exemplar": true,
"expr": "go_memstats_heap_inuse_bytes{instance=~\"server.+\"}",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - heap inuse",
"legendFormat": "{{instance}} - heap inuse",
"metric": "go_memstats_heap_inuse_bytes",
"refId": "D",
"step": 4
Expand All @@ -562,6 +584,7 @@
},
"yaxes": [
{
"$$hashKey": "object:375",
"format": "bytes",
"label": null,
"logBase": 1,
Expand All @@ -570,6 +593,7 @@
"show": true
},
{
"$$hashKey": "object:376",
"format": "Bps",
"label": null,
"logBase": 1,
Expand Down Expand Up @@ -636,38 +660,46 @@
"steppedLine": false,
"targets": [
{
"expr": "deriv(go_memstats_alloc_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}[$interval])",
"exemplar": true,
"expr": "deriv(go_memstats_alloc_bytes{instance=~\"server.+\"}[$interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - bytes allocated",
"legendFormat": "{{instance}} - bytes allocated",
"metric": "go_memstats_alloc_bytes",
"refId": "A",
"step": 4
},
{
"expr": "rate(go_memstats_alloc_bytes_total{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}[$interval])",
"exemplar": true,
"expr": "rate(go_memstats_alloc_bytes_total{instance=~\"server.+\"}[$interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - alloc rate",
"metric": "go_memstats_alloc_bytes_total",
"refId": "B",
"step": 4
},
{
"expr": "deriv(go_memstats_stack_inuse_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}[$interval])",
"exemplar": true,
"expr": "deriv(go_memstats_stack_inuse_bytes{instance=~\"server.+\"}[$interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - stack inuse",
"legendFormat": "{{instance}} - stack inuse",
"metric": "go_memstats_stack_inuse_bytes",
"refId": "C",
"step": 4
},
{
"expr": "deriv(go_memstats_heap_inuse_bytes{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}[$interval])",
"exemplar": true,
"expr": "deriv(go_memstats_heap_inuse_bytes{instance=~\"server.+\"}[$interval])",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}} - heap inuse",
"legendFormat": "{{instance}} - heap inuse",
"metric": "go_memstats_heap_inuse_bytes",
"refId": "D",
"step": 4
Expand All @@ -694,6 +726,7 @@
},
"yaxes": [
{
"$$hashKey": "object:319",
"format": "bytes",
"label": null,
"logBase": 1,
Expand All @@ -702,6 +735,7 @@
"show": true
},
{
"$$hashKey": "object:320",
"format": "Bps",
"label": null,
"logBase": 1,
Expand Down Expand Up @@ -763,10 +797,12 @@
"steppedLine": false,
"targets": [
{
"expr": "process_open_fds{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}",
"exemplar": true,
"expr": "process_open_fds{instance=~\"server.+\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}}",
"legendFormat": "{{instance}}",
"metric": "process_open_fds",
"refId": "A",
"step": 4
Expand All @@ -793,6 +829,7 @@
},
"yaxes": [
{
"$$hashKey": "object:946",
"format": "short",
"label": null,
"logBase": 1,
Expand All @@ -801,6 +838,7 @@
"show": true
},
{
"$$hashKey": "object:947",
"format": "short",
"label": null,
"logBase": 1,
Expand Down Expand Up @@ -862,10 +900,12 @@
"steppedLine": false,
"targets": [
{
"expr": "deriv(process_open_fds{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}[$interval])",
"exemplar": true,
"expr": "deriv(process_open_fds{instance=~\"server.+\"}[$interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}}",
"legendFormat": "{{instance}}",
"metric": "process_open_fds",
"refId": "A",
"step": 4
Expand All @@ -892,6 +932,7 @@
},
"yaxes": [
{
"$$hashKey": "object:1056",
"format": "short",
"label": null,
"logBase": 1,
Expand All @@ -900,6 +941,7 @@
"show": true
},
{
"$$hashKey": "object:1057",
"format": "short",
"label": null,
"logBase": 1,
Expand Down Expand Up @@ -961,10 +1003,12 @@
"steppedLine": false,
"targets": [
{
"expr": "go_goroutines{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}",
"exemplar": true,
"expr": "go_goroutines{instance=~\"server.+\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}}",
"legendFormat": "{{instance}}",
"metric": "go_goroutines",
"refId": "A",
"step": 4
Expand All @@ -991,6 +1035,7 @@
},
"yaxes": [
{
"$$hashKey": "object:1112",
"format": "short",
"label": null,
"logBase": 1,
Expand All @@ -999,6 +1044,7 @@
"show": true
},
{
"$$hashKey": "object:1113",
"format": "short",
"label": null,
"logBase": 1,
Expand Down Expand Up @@ -1060,10 +1106,12 @@
"steppedLine": false,
"targets": [
{
"expr": "go_gc_duration_seconds{namespace=~\"^($namespace)$\",pod=~\"^($pod)$\"}",
"exemplar": true,
"expr": "go_gc_duration_seconds{instance=~\"server.+\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "{{pod}}: {{quantile}}",
"legendFormat": "{{instance}}: {{quantile}}",
"metric": "go_gc_duration_seconds",
"refId": "A",
"step": 4
Expand All @@ -1090,6 +1138,7 @@
},
"yaxes": [
{
"$$hashKey": "object:1168",
"format": "s",
"label": null,
"logBase": 1,
Expand All @@ -1098,6 +1147,7 @@
"show": true
},
{
"$$hashKey": "object:1169",
"format": "short",
"label": null,
"logBase": 1,
Expand Down Expand Up @@ -1183,9 +1233,9 @@
"targets": [
{
"exemplar": true,
"expr": "process_cpu_seconds_total",
"expr": "process_cpu_seconds_total{instance=~\"server.+\"}",
"interval": "",
"legendFormat": "",
"legendFormat": "{{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1264,9 +1314,9 @@
"targets": [
{
"exemplar": true,
"expr": "go_memstats_gc_cpu_fraction",
"expr": "go_memstats_gc_cpu_fraction{instance=~\"server.+\"}",
"interval": "",
"legendFormat": "",
"legendFormat": "{{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1423,5 +1473,5 @@
"timezone": "browser",
"title": "Go Processes",
"uid": "ypFZFgvmz",
"version": 1
"version": 2
}

0 comments on commit 0794777

Please sign in to comment.