{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS-INFINISPAN",
      "label": "prometheus-infinispan",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.1.2"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1631696803799,
  "links": [],
  "panels": [
    {
      "collapsed": true,
      "datasource": "${DS_PROMETHEUS-INFINISPAN}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 21,
      "panels": [
        {
          "datasource": "${DS_PROMETHEUS-INFINISPAN}",
          "fieldConfig": {
            "defaults": {
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-purple",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 24,
            "x": 0,
            "y": 1
          },
          "id": 22,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.1.2",
          "repeatDirection": "v",
          "targets": [
            {
              "exemplar": true,
              "expr": "cache_size{cache = \"$cache_name\", pod = \"$pod\", service = \"$service\"}",
              "format": "time_series",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "total size",
          "type": "stat"
        },
        {
          "datasource": "${DS_PROMETHEUS-INFINISPAN}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "links": [],
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 12,
            "x": 0,
            "y": 5
          },
          "id": 2,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "multi"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "exemplar": true,
              "expr": "rate(cache_puts_total{cache = \"$cache_name\", pod = \"$pod\" , service = \"$service\" }[1m])",
              "interval": "",
              "legendFormat": "puts",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "sum(rate(cache_gets_total{cache = \"$cache_name\", pod = \"$pod\" , service = \"$service\"}[1m]))",
              "interval": "",
              "legendFormat": "gets",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "rate(cache_evictions_total{cache = \"$cache_name\", pod = \"$pod\" , service = \"$service\"}[1m])",
              "interval": "",
              "legendFormat": "evictions",
              "refId": "C"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "rate (average per minute)",
          "type": "timeseries"
        },
        {
          "datasource": "${DS_PROMETHEUS-INFINISPAN}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "links": [],
              "mappings": []
            },
            "overrides": []
          },
          "gridPos": {
            "h": 10,
            "w": 12,
            "x": 12,
            "y": 5
          },
          "id": 17,
          "options": {
            "legend": {
              "displayMode": "list",
              "placement": "bottom"
            },
            "pieType": "pie",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "exemplar": true,
              "expr": "cache_gets_total{cache=\"$cache_name\",pod=\"$pod\",service=\"$service\",result=\"hit\"}",
              "format": "time_series",
              "instant": false,
              "interval": "",
              "legendFormat": "hits",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "cache_gets_total{cache=\"$cache_name\",pod=\"$pod\",service=\"$service\",result=\"miss\"}",
              "instant": false,
              "interval": "",
              "legendFormat": "misses",
              "refId": "B"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "hits/misses",
          "type": "piechart"
        }
      ],
      "title": "Micrometer Cache",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_PROMETHEUS-INFINISPAN}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 12,
      "panels": [
        {
          "datasource": "${DS_PROMETHEUS-INFINISPAN}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-blue",
                    "value": null
                  }
                ]
              },
              "unit": "dtdhms"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 12,
            "x": 0,
            "y": 2
          },
          "id": 10,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "vertical",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.1.2",
          "repeat": "pod_name",
          "repeatDirection": "v",
          "targets": [
            {
              "exemplar": true,
              "expr": "cache_start_SECONDS{cache = \"$cache_name\", pod = \"$pod\", service = \"$service\"}",
              "format": "time_series",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "time from start",
          "type": "stat"
        },
        {
          "datasource": "${DS_PROMETHEUS-INFINISPAN}",
          "fieldConfig": {
            "defaults": {
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-blue",
                    "value": null
                  }
                ]
              },
              "unit": "dtdhms"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 12,
            "x": 12,
            "y": 2
          },
          "id": 15,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.1.2",
          "repeat": "pod_name",
          "repeatDirection": "v",
          "targets": [
            {
              "exemplar": true,
              "expr": "cache_reset_SECONDS{cache = \"$cache_name\", pod = \"$pod\", service = \"$service\"}",
              "format": "time_series",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "time from reset",
          "type": "stat"
        }
      ],
      "title": "Statistics",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_PROMETHEUS-INFINISPAN}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 2
      },
      "id": 4,
      "panels": [
        {
          "datasource": "${DS_PROMETHEUS-INFINISPAN}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineStyle": {
                  "fill": "solid"
                },
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "links": [],
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 12,
            "w": 12,
            "x": 0,
            "y": 3
          },
          "id": 14,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "multi"
            }
          },
          "pluginVersion": "8.1.2",
          "repeat": null,
          "targets": [
            {
              "exemplar": true,
              "expr": "cache_memory_size{cache = \"$cache_name\", pod = \"$pod\", service = \"$service\"}",
              "interval": "",
              "legendFormat": "Heap",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "cache_memory_used{cache = \"$cache_name\", pod = \"$pod\", service = \"$service\"}",
              "interval": "",
              "legendFormat": "Evicted",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "cache_memory_offHeap{cache = \"$cache_name\", pod = \"$pod\", service = \"$service\"}",
              "interval": "",
              "legendFormat": "Off-heap",
              "refId": "C"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Objects in memory",
          "transformations": [],
          "type": "timeseries"
        },
        {
          "datasource": "${DS_PROMETHEUS-INFINISPAN}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "fixedColor": "text",
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "axisSoftMax": 20,
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "area"
                }
              },
              "links": [],
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "#EAB839",
                    "value": 5
                  },
                  {
                    "color": "dark-red",
                    "value": 10
                  }
                ]
              },
              "unit": "ms"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 12,
            "w": 12,
            "x": 12,
            "y": 3
          },
          "id": 6,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "multi"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "exemplar": true,
              "expr": "cache_puts_latency_MILLISECONDS{cache = \"$cache_name\", pod = \"$pod\", service = \"$service\"}",
              "interval": "",
              "legendFormat": "puts",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "cache_gets_latency_MILLISECONDS{cache = \"$cache_name\", pod = \"$pod\", service = \"$service\"}",
              "interval": "",
              "legendFormat": "gets",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "cache_removes_latency_MILLISECONDS{cache = \"$cache_name\", pod = \"$pod\" , service = \"$service\"}",
              "interval": "",
              "legendFormat": "removes",
              "refId": "C"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Latency",
          "type": "timeseries"
        }
      ],
      "title": "Cache Stats",
      "type": "row"
    }
  ],
  "refresh": "30s",
  "schemaVersion": 30,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS-INFINISPAN}",
        "definition": "label_values(service)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "service",
        "multi": false,
        "name": "service",
        "options": [],
        "query": {
          "query": "label_values(service)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS-INFINISPAN}",
        "definition": "label_values(cache_size{service=\"$service\"}, pod)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Pod",
        "multi": false,
        "name": "pod",
        "options": [],
        "query": {
          "query": "label_values(cache_size{service=\"$service\"}, pod)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS-INFINISPAN}",
        "definition": "label_values(cache_size{service=\"$service\", pod=\"$pod\"},cache)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Cache Name",
        "multi": false,
        "name": "cache_name",
        "options": [],
        "query": {
          "query": "label_values(cache_size{service=\"$service\", pod=\"$pod\"},cache)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "[a-zA-Z0-9].+",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Infinispan Embedded",
  "uid": "ER1IZPSnz",
  "version": 6
}