{
  "tags": [],
  "title": "JVM (Micrometer)",
  "widgets": [
    {
      "layout": {
        "x": 0,
        "y": 0,
        "width": 12,
        "height": 2
      },
      "definition": {
        "type": "group",
        "title": "Quick Facts",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "query_value",
              "title": "Uptime",
              "requests": [
                {
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:process_uptime_seconds{$application,$instance}",
                      "aggregator": "last",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "formula": "query1"
                    }
                  ],
                  "response_format": "scalar"
                }
              ],
              "autoscale": true,
              "precision": 2,
              "text_align": "center",
              "custom_unit": "s"
            }
          },
          {
            "layout": {
              "x": 3,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "query_value",
              "title": "Start time",
              "requests": [
                {
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:process_start_time_seconds{$application,$instance}",
                      "aggregator": "last",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "formula": "query1 * 1000"
                    }
                  ],
                  "response_format": "scalar"
                }
              ],
              "autoscale": true,
              "precision": 2,
              "text_align": "center"
            }
          },
          {
            "layout": {
              "x": 6,
              "y": 0,
              "width": 3,
              "height": 1
            },
            "definition": {
              "type": "query_value",
              "title": "Heap used",
              "requests": [
                {
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:jvm_memory_used_bytes{$application,$instance,area:heap}",
                      "aggregator": "last",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "sum:jvm_memory_max_bytes{$application,$instance,area:heap}",
                      "aggregator": "last",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "formula": "query1 * 100 / query2"
                    }
                  ],
                  "response_format": "scalar",
                  "conditional_formats": [
                    {
                      "value": 70,
                      "palette": "white_on_gray",
                      "comparator": ">="
                    },
                    {
                      "value": 90,
                      "palette": "white_on_gray",
                      "comparator": ">="
                    }
                  ]
                }
              ],
              "autoscale": true,
              "precision": 2,
              "text_align": "center",
              "custom_unit": "%"
            }
          },
          {
            "layout": {
              "x": 9,
              "y": 0,
              "width": 3,
              "height": 1
            },
            "definition": {
              "type": "query_value",
              "title": "Non-Heap used",
              "requests": [
                {
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:jvm_memory_used_bytes{$application,$instance,area:nonheap}",
                      "aggregator": "last",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "sum:jvm_memory_max_bytes{$application,$instance,area:nonheap}",
                      "aggregator": "last",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "formula": "query1 * 100 / query2"
                    }
                  ],
                  "response_format": "scalar",
                  "conditional_formats": [
                    {
                      "value": 70,
                      "palette": "white_on_gray",
                      "comparator": ">="
                    },
                    {
                      "value": 90,
                      "palette": "white_on_gray",
                      "comparator": ">="
                    }
                  ]
                }
              ],
              "autoscale": true,
              "precision": 2,
              "text_align": "center",
              "custom_unit": "%"
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    },
    {
      "layout": {
        "x": 0,
        "y": 2,
        "width": 12,
        "height": 2
      },
      "definition": {
        "type": "group",
        "title": "I/O Overview",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Rate",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:http_server_requests_seconds.count{$application,$instance}.as_rate()",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "HTTP",
                      "formula": "query1"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 3,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Errors",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:http_server_requests_seconds.count{$application,$instance,status:5*}.as_rate()",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "HTTP - 5xx",
                      "formula": "query1"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 6,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Duration",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:http_server_requests_seconds.sum{$application,$instance,!status:5*}.as_rate()",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "sum:http_server_requests_seconds.count{$application,$instance,!status:5*}.as_rate()",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "max:http_server_requests_seconds_max{$application,$instance,!status:5*}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "HTTP - AVG",
                      "formula": "query1 / query2"
                    },
                    {
                      "alias": "HTTP - MAX",
                      "formula": "query3"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 9,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Utilisation",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:tomcat_threads_busy_threads{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:tomcat_threads_current_threads{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "avg:tomcat_threads_config_max_threads{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query4",
                      "query": "avg:jetty_threads_busy{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query5",
                      "query": "avg:jetty_threads_current{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query6",
                      "query": "avg:jetty_threads_config_max{$application,$instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "TOMCAT - BSY",
                      "formula": "query1"
                    },
                    {
                      "alias": "TOMCAT - CUR",
                      "formula": "query2"
                    },
                    {
                      "alias": "TOMCAT - MAX",
                      "formula": "query3"
                    },
                    {
                      "alias": "JETTY - BSY",
                      "formula": "query4"
                    },
                    {
                      "alias": "JETTY - CUR",
                      "formula": "query5"
                    },
                    {
                      "alias": "JETTY - MAX",
                      "formula": "query6"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    },
    {
      "layout": {
        "x": 0,
        "y": 4,
        "width": 12,
        "height": 2
      },
      "definition": {
        "type": "group",
        "title": "JVM Memory",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "JVM Heap",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:jvm_memory_used_bytes{$application,$instance,area:heap}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "sum:jvm_memory_committed_bytes{$application,$instance,area:heap}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "sum:jvm_memory_max_bytes{$application,$instance,area:heap}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "used",
                      "formula": "query1"
                    },
                    {
                      "alias": "committed",
                      "formula": "query2"
                    },
                    {
                      "alias": "max",
                      "formula": "query3"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 3,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "JVM Non-Heap",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:jvm_memory_used_bytes{$application,$instance,area:nonheap}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "sum:jvm_memory_committed_bytes{$application,$instance,area:nonheap}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "sum:jvm_memory_max_bytes{$application,$instance,area:nonheap}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "used",
                      "formula": "query1"
                    },
                    {
                      "alias": "committed",
                      "formula": "query2"
                    },
                    {
                      "alias": "max",
                      "formula": "query3"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 6,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "JVM Total",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:jvm_memory_used_bytes{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "sum:jvm_memory_committed_bytes{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "sum:jvm_memory_max_bytes{$application,$instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "used",
                      "formula": "query1"
                    },
                    {
                      "alias": "committed",
                      "formula": "query2"
                    },
                    {
                      "alias": "max",
                      "formula": "query3"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 9,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "JVM Process Memory",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:process_memory_rss_bytes{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:process_memory_swap_bytes{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "avg:process_memory_rss_bytes{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query4",
                      "query": "avg:process_memory_swap_bytes{$application,$instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "rss",
                      "formula": "query1"
                    },
                    {
                      "alias": "swap",
                      "formula": "query2"
                    },
                    {
                      "alias": "total",
                      "formula": "query3 + query4"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    },
    {
      "layout": {
        "x": 0,
        "y": 6,
        "width": 12,
        "height": 4
      },
      "definition": {
        "type": "group",
        "title": "JVM Misc",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "CPU Usage",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:system_cpu_usage{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:process_cpu_usage{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "avg:process_cpu_usage{$application,$instance}.rollup(avg, 900)",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "system",
                      "formula": "(query1) * 100"
                    },
                    {
                      "alias": "process",
                      "formula": "(query2) * 100"
                    },
                    {
                      "alias": "process-15m",
                      "formula": "(query3) * 100"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 3,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Load",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:system_load_average_1m{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:system_cpu_count{$application,$instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "system-1m",
                      "formula": "query1"
                    },
                    {
                      "alias": "cpus",
                      "formula": "query2"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 6,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Threads",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_threads_live_threads{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:jvm_threads_daemon_threads{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "avg:jvm_threads_peak_threads{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query4",
                      "query": "avg:process_threads{$application,$instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "live",
                      "formula": "query1"
                    },
                    {
                      "alias": "daemon",
                      "formula": "query2"
                    },
                    {
                      "alias": "peak",
                      "formula": "query3"
                    },
                    {
                      "alias": "process",
                      "formula": "query4"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 9,
              "y": 0,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Thread States",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_threads_states_threads{$application,$instance} by {state}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "formula": "query1"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 0,
              "y": 2,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "GC Pressure",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "sum:jvm_gc_pause_seconds.sum{$application,$instance} by {application,instance}.as_rate()",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:system_cpu_count{$application,$instance} by {application,instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "CPU time spent on GC",
                      "formula": "(query1 / query2) * 100"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 3,
              "y": 2,
              "width": 6,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Log Events",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:logback_events.count{$application,$instance} by {level}.as_count()",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "formula": "query1"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 9,
              "y": 2,
              "width": 3,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "File Descriptors",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:process_files_open_files{$application,$instance}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:process_files_max_files{$application,$instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "open",
                      "formula": "query1"
                    },
                    {
                      "alias": "max",
                      "formula": "query2"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    },
    {
      "layout": {
        "x": 0,
        "y": 10,
        "width": 12,
        "height": 2
      },
      "definition": {
        "type": "group",
        "title": "JVM Memory Pools (Heap)",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 4,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "$jvm_memory_pool_heap",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_memory_used_bytes{$application,$instance,$jvm_memory_pool_heap}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:jvm_memory_committed_bytes{$application,$instance,$jvm_memory_pool_heap}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "avg:jvm_memory_max_bytes{$application,$instance,$jvm_memory_pool_heap}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "used",
                      "formula": "query1"
                    },
                    {
                      "alias": "commited",
                      "formula": "query2"
                    },
                    {
                      "alias": "max",
                      "formula": "query3"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    },
    {
      "layout": {
        "x": 0,
        "y": 12,
        "width": 12,
        "height": 2
      },
      "definition": {
        "type": "group",
        "title": "JVM Memory Pools (Non-Heap)",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 4,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "$jvm_memory_pool_nonheap",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_memory_used_bytes{$application,$instance,$jvm_memory_pool_nonheap}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:jvm_memory_committed_bytes{$application,$instance,$jvm_memory_pool_nonheap}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "avg:jvm_memory_max_bytes{$application,$instance,$jvm_memory_pool_nonheap}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "used",
                      "formula": "query1"
                    },
                    {
                      "alias": "commited",
                      "formula": "query2"
                    },
                    {
                      "alias": "max",
                      "formula": "query3"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    },
    {
      "layout": {
        "x": 0,
        "y": 14,
        "width": 12,
        "height": 2
      },
      "definition": {
        "type": "group",
        "title": "Garbage Collection",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 4,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Collections",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_gc_pause_seconds.count{$application,$instance} by {action,cause}.as_rate()",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "formula": "query1"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 4,
              "y": 0,
              "width": 4,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Pause Durations",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_gc_pause_seconds.sum{$application,$instance} by {action,cause}.as_rate()",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:jvm_gc_pause_seconds.count{$application,$instance} by {action,cause}.as_rate()",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "max:jvm_gc_pause_seconds_max{$application,$instance} by {action,cause}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "formula": "query1 / query2"
                    },
                    {
                      "formula": "query3"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 8,
              "y": 0,
              "width": 4,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Allocated/Promoted",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_gc_memory_allocated_bytes.count{$application,$instance}.as_rate()",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:jvm_gc_memory_promoted_bytes.count{$application,$instance}.as_rate()",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "allocated",
                      "formula": "query1"
                    },
                    {
                      "alias": "promoted",
                      "formula": "query2"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    },
    {
      "layout": {
        "x": 0,
        "y": 16,
        "width": 12,
        "height": 2
      },
      "definition": {
        "type": "group",
        "title": "Classloading",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 6,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Classes loaded",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_classes_loaded_classes{$application,$instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "loaded",
                      "formula": "query1"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          },
          {
            "layout": {
              "x": 6,
              "y": 0,
              "width": 6,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "Class delta",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_classes_loaded_classes{$application,$instance}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "delta-1m",
                      "formula": "diff(query1)"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    },
    {
      "layout": {
        "x": 0,
        "y": 18,
        "width": 12,
        "height": 2
      },
      "definition": {
        "type": "group",
        "title": "Buffer Pools",
        "widgets": [
          {
            "layout": {
              "x": 0,
              "y": 0,
              "width": 4,
              "height": 2
            },
            "definition": {
              "type": "timeseries",
              "title": "$jvm_buffer_pool",
              "yaxis": {
                "max": "auto",
                "min": "auto",
                "label": "",
                "scale": "linear",
                "include_zero": true
              },
              "requests": [
                {
                  "style": {
                    "palette": "dog_classic",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "queries": [
                    {
                      "name": "query1",
                      "query": "avg:jvm_buffer_memory_used_bytes{$application,$instance,$jvm_buffer_pool}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query2",
                      "query": "avg:jvm_buffer_total_capacity_bytes{$application,$instance,$jvm_buffer_pool}",
                      "data_source": "metrics"
                    },
                    {
                      "name": "query3",
                      "query": "avg:jvm_buffer_count_buffers{$application,$instance,$jvm_buffer_pool}",
                      "data_source": "metrics"
                    }
                  ],
                  "formulas": [
                    {
                      "alias": "used",
                      "formula": "query1"
                    },
                    {
                      "alias": "capacity",
                      "formula": "query2"
                    },
                    {
                      "alias": "buffers",
                      "formula": "query3"
                    }
                  ],
                  "display_type": "area",
                  "response_format": "timeseries"
                }
              ],
              "show_legend": true,
              "legend_layout": "auto",
              "legend_columns": [
                "avg",
                "min",
                "max",
                "value",
                "sum"
              ]
            }
          }
        ],
        "show_title": true,
        "layout_type": "ordered"
      }
    }
  ],
  "description": "Converted from Grafana dashboard https://grafana.com/grafana/dashboards/4701 (by mweirauch). Dashboard for Micrometer instrumented applications (Java, Spring Boot, Micronaut)",
  "layout_type": "ordered",
  "reflow_type": "fixed",
  "template_variables": [
    {
      "name": "application",
      "prefix": "application",
      "default": "*",
      "available_values": []
    },
    {
      "name": "instance",
      "prefix": "instance",
      "default": "*",
      "available_values": []
    },
    {
      "name": "jvm_memory_pool_heap",
      "prefix": "id",
      "default": "*",
      "available_values": []
    },
    {
      "name": "jvm_memory_pool_nonheap",
      "prefix": "id",
      "default": "*",
      "available_values": []
    },
    {
      "name": "jvm_buffer_pool",
      "prefix": "id",
      "default": "*",
      "available_values": []
    }
  ]
}