Grafana dashboard: Graphite Go-Carbon Metrics
Description: For the metrics of the go-carbon implementation as alternative to the original Python carbon.

[go-carbon](https://github.com/lomik/go-carbon) brings slightly different metrics than the original Python implementation of carbon.

This dashboard tires to give you an overview over the current throughput.

{
  "__inputs": [
    {
      "name": "DS_GRAPHITE",
      "label": "Graphite",
      "description": "With data from the go-carbon daemon",
      "type": "datasource",
      "pluginId": "graphite",
      "pluginName": "Graphite"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.2.5"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "graphite",
      "name": "Graphite",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "enable": false,
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 11221,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1564583982147,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 5,
      "legend": {
        "avg": true,
        "current": false,
        "max": true,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {},
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/errors/",
          "color": "#C4162A",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "refCount": 0,
          "refId": "A",
          "target": "aliasByNode(sumSeries(carbon.agents.$agent.tcp.metricsReceived), 3)"
        },
        {
          "refCount": 0,
          "refId": "B",
          "target": "aliasByNode(sumSeries(carbon.agents.$agent.udp.metricsReceived), 3)"
        },
        {
          "refCount": 0,
          "refId": "C",
          "target": "aliasByNode(sumSeries(carbon.agents.$agent.pickle.metricsReceived), 3)"
        },
        {
          "refCount": 0,
          "refId": "D",
          "target": "aliasByNode(sumSeries(carbon.agents.$agent.*.errors), 4)"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Metric Inputs",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "annotate": {
        "enable": false
      },
      "bars": false,
      "cacheTimeout": "",
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_GRAPHITE}",
      "editable": true,
      "fill": 0,
      "grid": {
        "max": null,
        "min": 0
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 1,
      "legend": {
        "alignAsTable": false,
        "avg": true,
        "current": false,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "loadingEditor": false,
      "nullPointMode": "null",
      "options": {},
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "resolution": 100,
      "scale": 1,
      "seriesOverrides": [
        {
          "alias": "/Points per Update/",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "refCount": 0,
          "refId": "A",
          "target": "alias(sumSeries(carbon.agents.$agent.persister.updateOperations), 'Updates')"
        },
        {
          "refCount": 0,
          "refId": "C",
          "target": "alias(sumSeries(carbon.agents.$agent.persister.committedPoints), 'Committed Points')"
        },
        {
          "refCount": 0,
          "refId": "F",
          "target": "alias(sumSeries(carbon.agents.$agent.persister.created), 'Creates')"
        },
        {
          "refCount": 0,
          "refId": "D",
          "target": "alias(sumSeries(carbon.agents.$agent.persister.pointsPerUpdate), 'Points per Update')"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Persister Actions",
      "tooltip": {
        "msResolution": false,
        "query_as_alias": true,
        "shared": false,
        "sort": 0,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      },
      "zerofill": true
    },
    {
      "aliasColors": {
        "CPU": "#E24D42"
      },
      "annotate": {
        "enable": false
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_GRAPHITE}",
      "editable": true,
      "fill": 1,
      "grid": {
        "max": null,
        "min": 0
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 8
      },
      "id": 2,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "loadingEditor": false,
      "nullPointMode": "null",
      "options": {},
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "resolution": 100,
      "scale": 1,
      "seriesOverrides": [
        {
          "alias": "/queries/",
          "color": "#3274D9",
          "fill": 0,
          "yaxis": 2
        },
        {
          "alias": "/overflow/",
          "color": "#C4162A",
          "stack": true,
          "zindex": -1
        },
        {
          "alias": "/maxSize/",
          "color": "#FA6400",
          "fill": 0,
          "stack": true,
          "zindex": -1
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "refCount": 0,
          "refId": "A",
          "target": "aliasByNode(sumSeries(carbon.agents.$agent.cache.size), 4)"
        },
        {
          "refCount": 0,
          "refId": "B",
          "target": "aliasByNode(sumSeries(carbon.agents.$agent.cache.queries), 4)"
        },
        {
          "refCount": 0,
          "refId": "C",
          "target": "aliasByNode(sumSeries(carbon.agents.$agent.cache.maxSize), 4)"
        },
        {
          "refCount": 0,
          "refId": "D",
          "target": "aliasByNode(sumSeries(carbon.agents.$agent.cache.overflow), 4)"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Cache Status",
      "tooltip": {
        "msResolution": false,
        "query_as_alias": true,
        "shared": true,
        "sort": 0,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      },
      "zerofill": true
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": "",
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 8
      },
      "id": 7,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {},
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/Time/",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "refCount": 0,
          "refId": "A",
          "target": "alias(carbon.agents.$agent.cache.queueWriteoutTime, 'Queue Writeout Time')"
        },
        {
          "refCount": 0,
          "refId": "B",
          "target": "alias(carbon.agents.$agent.cache.queueBuildTimeMs, 'Queue Build Time')"
        },
        {
          "hide": false,
          "refCount": 0,
          "refId": "C",
          "target": "alias(carbon.agents.$agent.cache.queueBuildCount, 'Queue Rebuilds')"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Queue Stats",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "ms",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": "30s",
  "schemaVersion": 18,
  "style": "dark",
  "tags": [
    "graphite",
    "carbon"
  ],
  "templating": {
    "list": [
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_GRAPHITE}",
        "definition": "carbon.agents.*",
        "hide": 0,
        "includeAll": true,
        "label": "Carbon Agent",
        "multi": false,
        "name": "agent",
        "options": [],
        "query": "carbon.agents.*",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {
    "collapse": false,
    "enable": true,
    "notice": false,
    "now": true,
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "status": "Stable",
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ],
    "type": "timepicker"
  },
  "timezone": "",
  "title": "Graphite Go-Carbon Metrics",
  "uid": "hqIB4VvZk",
  "version": 17,
  "description": "For the metrics of the go-carbon implementation as alternative to the original Python carbon."
}