• /
  • ログイン
  • 無料アカウント

Custom JMX YAML examples

This is an example of a custom JMX YAML file for New Relic's Java agent, including value and definition, MBean, attributes, type, and names for metrics, objects, and attributes. For more information, including a video, see Custom JMX monitoring by YAML.

YAML example

Here is an example of a custom JMX YAML file. YAML files are space senstive.

name: TomcatCustom
version: 1.0
enabled: true
jmx:
- object_name: Catalina:type=Cache,host=localhost,path=/examples
metrics:
- attributes: accessCount, cacheSize, hitsCount
type: simple
- object_name: Catalina:type=Connector,port=8009
metrics:
- attributes: bufferSize, maxHeaderCount
- object_name: java.nio:type=BufferPool,name=*
metrics:
- attributes: Count
type: monotonically_increasing

Example explanation

Finding object and attribute names

The easiest way to find available MBeans and its associated attributes is to use the JConsole instructions for JDK 1.6.

その他のヘルプ

さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:

問題を作成するこのページを編集する
Copyright © 2020 New Relic Inc.