Grafana dashboard: Go Metrics

#### Revision >= 2 是适配cicd版的面板  
fork from https://grafana.com/grafana/dashboards/10826  
add job label filter
- go_gc_duration_seconds: A summary of the pause duration of garbage collection cycles.  
取自[runtime/debug.ReadGCStats()](https://golang.org/pkg/runtime/debug/#ReadGCStats)  
- go_goroutines: Number of goroutines that currently exist.  
取自[runtime.NumGoroutine()](https://golang.org/pkg/runtime/#NumGoroutine)
- go_memstats_alloc_bytes: Number of bytes allocated and still in use.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .Alloc  
- go_memstats_alloc_bytes_total: Total number of bytes allocated, even if freed.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .TotalAlloc  
- go_memstats_buck_hash_sys_bytes: Number of bytes used by the profiling bucket hash table.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .BuckHashSys  
- go_memstats_frees_total: Total number of frees.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .Frees  
- go_memstats_gc_cpu_fraction: The fraction of this program's available CPU time used by the GC since the program started.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .GCCPUFraction  
- go_memstats_gc_sys_bytes: Number of bytes used for garbage collection system metadata.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .GCSys  
- go_memstats_heap_alloc_bytes: Number of heap bytes allocated and still in use.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .HeapAlloc  
- go_memstats_heap_idle_bytes: Number of heap bytes waiting to be used.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .HeapIdle  
- go_memstats_heap_inuse_bytes: Number of heap bytes that are in use.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .HeapInuse  
- go_memstats_heap_objects: Number of allocated objects.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .HeapObjects  
- go_memstats_heap_released_bytes: Number of heap bytes released to OS.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .HeapReleased  
- go_memstats_heap_sys_bytes: Number of heap bytes obtained from system.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .HeapSys  
- go_memstats_last_gc_time_seconds: Number of seconds since 1970 of last garbage collection.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .LastGC  
- go_memstats_lookups_total: Total number of pointer lookups.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .Lookups  
- go_memstats_mallocs_total: Total number of mallocs.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .Mallocs  
- go_memstats_mcache_inuse_bytes: Number of bytes in use by mcache structures.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .MCacheInuse  
- go_memstats_mcache_sys_bytes: Number of bytes used for mcache structures obtained from system.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .MCacheSys  
- go_memstats_mspan_inuse_bytes: Number of bytes in use by mspan structures.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .MSpanInuse  
- go_memstats_mspan_sys_bytes: Number of bytes used for mspan structures obtained from system.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .MSpanSys  
- go_memstats_next_gc_bytes: Number of heap bytes when next garbage collection will take place.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .NextGC  
- go_memstats_other_sys_bytes: Number of bytes used for other system allocations.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .OtherSys  
- go_memstats_stack_inuse_bytes: Number of bytes in use by the stack allocator.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .StackInuse  
- go_memstats_stack_sys_bytes: Number of bytes obtained from system for stack allocator.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .StackSys  
- go_memstats_sys_bytes: Number of bytes obtained from system.  
取自[runtime.ReadMemStats()](https://golang.org/pkg/runtime/#ReadMemStats) .Sys  
- go_threads: Number of OS threads created.  
取自[runtime.ThreadCreateProfile(nil)](https://golang.org/pkg/runtime/#ThreadCreateProfile)  
- goruntime_process_cpu_seconds_total: Total user and system CPU time spent in seconds.  
取自[procfs#ProcStat.CPUTime()](https://pkg.go.dev/github.com/prometheus/procfs#ProcStat.CPUTime)  
- goruntime_process_max_fds: Maximum number of open file descriptors.  
取自[procfs#ProcLimits](https://pkg.go.dev/github.com/prometheus/procfs#ProcLimits) .OpenFiles  
- goruntime_process_open_fds: Number of open file descriptors.  
取自[procfs#Proc.FileDescriptorsLen()](https://pkg.go.dev/github.com/prometheus/procfs#Proc.FileDescriptorsLen)  
- goruntime_process_resident_memory_bytes: Resident memory size in bytes.  
取自[procfs#ProcStat.ResidentMemory()](https://pkg.go.dev/github.com/prometheus/procfs#ProcStat.ResidentMemory)  
- goruntime_process_start_time_seconds: Start time of the process since unix epoch in seconds.  
取自[procfs#ProcStat.StartTime()](https://pkg.go.dev/github.com/prometheus/procfs#ProcStat.StartTime)  
- goruntime_process_virtual_memory_bytes: Virtual memory size in bytes.  
取自[procfs#ProcStat.VirtualMemory()](https://pkg.go.dev/github.com/prometheus/procfs#ProcStat.VirtualMemory)  
- goruntime_process_virtual_memory_max_bytes: Maximum amount of virtual memory available in bytes.  
取自[procfs#ProcLimits](https://pkg.go.dev/github.com/prometheus/procfs#ProcLimits) .AddressSpace  


{
  "__inputs": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.3.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      },
      {
        "datasource": "-- Grafana --",
        "enable": true,
        "expr": "",
        "iconColor": "rgba(0, 211, 255, 1)",
        "iconSize": 0,
        "lineColor": "",
        "name": "Annotations & Alerts",
        "query": "",
        "showLine": false,
        "step": "",
        "tagKeys": "",
        "tags": null,
        "tagsField": "",
        "textField": "",
        "textFormat": "",
        "titleFormat": "",
        "type": "dashboard"
      },
      {
        "datasource": "$datasource",
        "enable": true,
        "expr": "",
        "iconColor": "rgba(0, 211, 255, 1)",
        "iconSize": 0,
        "lineColor": "",
        "name": "Annotations & Alerts",
        "query": "",
        "showLine": false,
        "step": "",
        "tagKeys": "",
        "tags": null,
        "tagsField": "",
        "textField": "",
        "textFormat": "",
        "titleFormat": "",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 13722,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1619568379263,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 28,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "rate(goruntime_process_cpu_seconds_total{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}[2m])",
          "legendFormat": "{{service}}-{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "process cpu",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "percentunit",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 12,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "go_memstats_heap_alloc_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_heap_alloc_bytes-{{service}}-{{instance}}",
          "refId": "B"
        },
        {
          "expr": "go_memstats_heap_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_heap_sys_bytes-{{service}}-{{instance}}",
          "refId": "A"
        },
        {
          "expr": "go_memstats_heap_idle_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_heap_idle_bytes-{{service}}-{{instance}}",
          "refId": "C"
        },
        {
          "expr": "go_memstats_heap_inuse_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_heap_inuse_bytes-{{service}}-{{instance}}",
          "refId": "D"
        },
        {
          "expr": "go_memstats_heap_released_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_heap_released_bytes-{{service}}-{{instance}}",
          "refId": "E"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Memory in Heap",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "decbytes",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 8
      },
      "id": 26,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "go_memstats_mspan_inuse_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_mspan_inuse_bytes-{{service}}-{{instance}}",
          "refId": "A"
        },
        {
          "expr": "go_memstats_mspan_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_mspan_sys_bytes-{{service}}-{{instance}}",
          "refId": "B"
        },
        {
          "expr": "go_memstats_mcache_inuse_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_mcache_inuse_bytes-{{service}}-{{instance}}",
          "refId": "C"
        },
        {
          "expr": "go_memstats_mcache_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_mcache_sys_bytes-{{service}}-{{instance}}",
          "refId": "D"
        },
        {
          "expr": "go_memstats_buck_hash_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_buck_hash_sys_bytes-{{service}}-{{instance}}",
          "refId": "E"
        },
        {
          "expr": "go_memstats_gc_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_gc_sys_bytes-{{service}}-{{instance}}",
          "refId": "F"
        },
        {
          "expr": "go_memstats_other_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"} - go_memstats_other_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "bytes of memory are used for other runtime allocations {pod={{kubernetes_pod_name}}}",
          "refId": "G"
        },
        {
          "expr": "go_memstats_next_gc_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_next_gc_bytes-{{service}}-{{instance}}",
          "refId": "H"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Memory in Off-Heap",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "decbytes",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 8
      },
      "id": 16,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "go_memstats_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{service}}-{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Total Used Memory",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "decbytes",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 16
      },
      "id": 24,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "go_memstats_stack_inuse_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_stack_inuse_bytes-{{service}}-{{instance}}",
          "refId": "A"
        },
        {
          "expr": "go_memstats_stack_sys_bytes{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "go_memstats_stack_sys_bytes-{{service}}-{{instance}}",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Memory in Stack",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "decbytes",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "shows how many heap objects are allocated. This is a counter value so you can use rate() to objects allocated/s.",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 16
      },
      "id": 20,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "rate(go_memstats_mallocs_total{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}[2m])",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{service}}-{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Rate of Objects Allocated",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 24
      },
      "id": 22,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "go_memstats_mallocs_total{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"} - go_memstats_frees_total{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{service}}-{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Number of Live Objects",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 24
      },
      "id": 8,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "go_goroutines{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{service}}-{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Goroutines",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "go_memstats_lookups_total – counts how many pointer dereferences happened. This is a counter value so you can use rate() to lookups/s.",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 32
      },
      "id": 18,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "rate(go_memstats_lookups_total{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}[2m])",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{service}}-{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Rate of a Pointer Dereferences",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "ops",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 32
      },
      "id": 4,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "go_gc_duration_seconds{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{service}}-{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "GC duration quantile",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "ms",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "editable": false,
      "error": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 40
      },
      "id": 14,
      "isNew": false,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 1,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "span": 0,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "rate(go_memstats_alloc_bytes_total{job=\"$job\", project=\"$project\", env_name=\"$env\", stage=\"$stage\", service=~\"$service\"}[2m])",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{service}}-{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Rates of Allocation",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "format": "",
        "logBase": 0,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "Bps",
          "logBase": 1,
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 19,
  "style": "dark",
  "tags": [
    "go",
    "golang"
  ],
  "templating": {
    "list": [
      {
        "allFormat": "",
        "allValue": "",
        "current": {
          "text": "Prometheus",
          "value": "Prometheus"
        },
        "datasource": null,
        "hide": 2,
        "includeAll": false,
        "label": "",
        "multi": false,
        "multiFormat": "",
        "name": "datasource",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "^(?!default$).*$",
        "skipUrlSync": false,
        "sort": 0,
        "type": "datasource"
      },
      {
        "allFormat": "",
        "allValue": "",
        "current": {},
        "datasource": "$datasource",
        "definition": "",
        "hide": 2,
        "includeAll": false,
        "label": "job",
        "multi": false,
        "multiFormat": "",
        "name": "job",
        "options": [],
        "query": "label_values(go_goroutines, job)",
        "refresh": 1,
        "regex": "kubernetes-pods",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allFormat": "",
        "allValue": "",
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(go_goroutines{job=\"$job\"}, project)",
        "hide": 0,
        "includeAll": false,
        "label": "",
        "multi": false,
        "multiFormat": "",
        "name": "project",
        "options": [],
        "query": "label_values(go_goroutines{job=\"$job\"}, project)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allFormat": "",
        "allValue": "",
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(go_goroutines{job=\"$job\", project=\"$project\"}, env_name)",
        "hide": 0,
        "includeAll": false,
        "label": "",
        "multi": false,
        "multiFormat": "",
        "name": "env",
        "options": [],
        "query": "label_values(go_goroutines{job=\"$job\", project=\"$project\"}, env_name)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allFormat": "",
        "allValue": "",
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(go_goroutines{job=\"$job\", project=\"$project\", env_name=\"$env\"}, stage)",
        "hide": 0,
        "includeAll": false,
        "label": "",
        "multi": false,
        "multiFormat": "",
        "name": "stage",
        "options": [],
        "query": "label_values(go_goroutines{job=\"$job\", project=\"$project\", env_name=\"$env\"}, stage)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allFormat": "",
        "allValue": "",
        "current": {},
        "datasource": "$datasource",
        "definition": "",
        "hide": 0,
        "includeAll": true,
        "label": "",
        "multi": true,
        "multiFormat": "",
        "name": "service",
        "options": [],
        "query": "label_values(go_goroutines{job=\"$job\", project=\"$project\"}, service)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Go Metrics",
  "uid": "CgCw8jKZz1",
  "version": 8
}