VM dashboard
using prometheus simpleclient hotspot to gather metrics.
templated per job (all instances)
one graph for threads, one for memory
using prometheus simpleclient hotspot to gather metrics.
Templated per job (all instances).
One graph for threads, one for memory.
{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "3.1.1"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "id": null,
  "title": "VM dashboard",
  "tags": [],
  "style": "dark",
  "timezone": "browser",
  "editable": true,
  "hideControls": false,
  "sharedCrosshair": false,
  "rows": [
    {
      "collapse": false,
      "editable": true,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "datasource": "${DS_PROMETHEUS}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 1,
          "isNew": true,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeat": null,
          "repeatIteration": 1476436588153,
          "scopedVars": {},
          "seriesOverrides": [],
          "span": 6,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "jvm_gc_collection_seconds_count{job=\"$job\"}",
              "intervalFactor": 2,
              "legendFormat": "",
              "metric": "jvm_gc_collection_seconds_count",
              "refId": "A",
              "step": 2
            },
            {
              "expr": "jvm_memory_bytes_max{job=\"$job\"}",
              "intervalFactor": 2,
              "legendFormat": "",
              "metric": "jvm_memory_bytes_max",
              "refId": "D",
              "step": 2
            },
            {
              "expr": "jvm_memory_bytes_used{job=\"$job\"}",
              "intervalFactor": 2,
              "legendFormat": "",
              "metric": "jvm_memory_bytes_used",
              "refId": "E",
              "step": 2
            },
            {
              "expr": "jvm_memory_bytes_committed{job=\"$job\"}",
              "intervalFactor": 2,
              "legendFormat": "",
              "metric": "jvm_memory_bytes_committed",
              "refId": "F",
              "step": 2
            },
            {
              "expr": "jvm_gc_collection_seconds_sum_per_process_cpu_seconds_total_percent{job=\"$job\"}",
              "intervalFactor": 2,
              "legendFormat": "",
              "metric": "jvm_gc_collection_seconds_sum_per_process_cpu_seconds_total_percent",
              "refId": "G",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "VM memory ($job)",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": false,
          "datasource": "${DS_PROMETHEUS}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 3,
          "isNew": true,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "span": 6,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "jvm_threads_current{job=\"$job\"}",
              "intervalFactor": 2,
              "legendFormat": "",
              "metric": "jvm_threads_current",
              "refId": "B",
              "step": 2
            },
            {
              "expr": "jvm_threads_peak{job=\"$job\"}",
              "intervalFactor": 2,
              "legendFormat": "",
              "metric": "jvm_threads_peak",
              "refId": "C",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "VM threads ($job)",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "scopedVars": {},
          "repeatIteration": 1476436588153
        }
      ],
      "repeat": "job",
      "scopedVars": {
        "job": {
          "text": "jfr-srv-d1",
          "value": "jfr-srv-d1",
          "selected": true
        }
      },
      "title": "Row"
    }
  ],
  "time": {
    "from": "2016-10-14T09:16:24.598Z",
    "to": "2016-10-14T09:16:28.282Z"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": true,
        "name": "job",
        "options": [],
        "query": "label_values(job)",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": null,
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": true
      }
    ]
  },
  "annotations": {
    "list": []
  },
  "refresh": false,
  "schemaVersion": 12,
  "version": 8,
  "links": [],
  "gnetId": 637,
  "description": "using prometheus simpleclient hotspot to gather metrics.\r\ntemplated per job (all instances)\r\none graph for threads, one for memory"
}