Child pages
  • JVM Heap Metrics Template
Skip to end of metadata
Go to start of metadata

Introduction

This page documents a metric template which renders data from our JVM heap Sensu checks.

The checks require JMX to be enabled on the application, and require sensu to be configured specifically to check the JMX data on the application.  As this is not the default, please open a ticket with support if you would like to graph this data.

 

Template

The template as valid JSON is below.

  "APPLICATION_NAME JVM Heap":{
    "areaAlpha":0.75,
    "areaMode":"all",
    "target":[
      {
        "alias":[
          {
            "metric":[
              "service.jvm.APPLICATION_NAME.heap.Perm_Util"
            ]
          },
          "Perm Gen Utilization"
        ]
      },
      {
        "alias":[
          {
            "metric":[
              "service.jvm.APPLICATION_NAME.heap.Used_Heap"
            ]
          },
          "Used Heap"
        ]
      },
      {
        "alias":[
          {
            "metric":[
              "service.jvm.APPLICATION_NAME.heap.Committed_Heap"
            ]
          },
          "Committed Heap"
        ]
      }
    ]
  }

Using this template

To apply this template, click the "edit" link on the Managed Device Metrics box when in "View Device" for the device which provides the metrics. Add this template to the list of templates in the JSON data structure. Replace APPLICATION_NAME with the name of the application to which the metrics apply. For a list of application names in Graphite metric paths, consult the text area with available metrics. Note that it should come before the final curly brace ( } ), and a comma should be added to the end of the previous metric in order for the JSON to be valid.

  • No labels