json Jmxtrans.json
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json Jmxtrans.json相关的知识,希望对你有一定的参考价值。
{
"servers" : [ {
"alias" : "<%= @node[:hostname] %>",
"host" : "<%= @node[:hostname] %>",
"port" : "<%= @jmx_port %>",
"username" : "<%= @jmx_user %>",
"password" : "<%= @jmx_password %>",
"queries" : [
{
"obj" : "java.lang:type=OperatingSystem",
"attr" : [ "SystemLoadAverage" ],
"resultAlias" : "jvm.cpu",
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "l-mon-02.zanox-live.de",
"port" : "2013"
}
} ]
}, {
"obj" : "java.lang:type=Memory",
"attr" : [ "HeapMemoryUsage", "NonHeapMemoryUsage" ],
"resultAlias" : "jvm.heap",
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "<%= @graphite_host %>",
"port" : "<%= @graphite_port %>"
}
} ]
}, {
"obj" : "java.lang:name=PS Perm Gen,type=MemoryPool",
"attr" : [ "Usage" ],
"resultAlias" : "jvm.permgenspace",
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "<%= @graphite_host %>",
"port" : "<%= @graphite_port %>"
}
} ]
}, {
"obj" : "java.lang:type=GarbageCollector,name=*",
"attr" : [ "CollectionCount", "CollectionTime" ],
"resultAlias" : "jvm.gc",
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "<%= @graphite_host %>",
"port" : "<%= @graphite_port %>"
}
} ]
}, {
"obj" : "java.lang:type=Threading",
"resultAlias" : "jvm.threads",
"attr" : [ "DaemonThreadCount", "ThreadCount" ],
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "<%= @graphite_host %>",
"port" : "<%= @graphite_port %>"
}
} ]
}, {
"obj" : "\"kafka.server\":type=\"BrokerTopicMetrics\",name=\"AllTopicsMessagesInPerSec\"",
"resultAlias" : "kafka.server.BrokerTopicMetrics.AllTopicsMessagesInPerSec",
"attr" : [ "OneMinuteRate", "MeanRate", "Count" ],
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "<%= @graphite_host %>",
"port" : "<%= @graphite_port %>"
}
} ]
}, {
"obj" : "\"kafka.server\":type=\"BrokerTopicMetrics\",name=\"AllTopicsBytesOutPerSec\"",
"resultAlias" : "kafka.server.BrokerTopicMetrics.AllTopicsBytesOutPerSec",
"attr" : [ "OneMinuteRate", "MeanRate", "Count" ],
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "<%= @graphite_host %>",
"port" : "<%= @graphite_port %>"
}
} ]
}, {
"obj" : "\"kafka.server\":type=\"BrokerTopicMetrics\",name=\"AllTopicsFailedFetchRequestsPerSec\"",
"resultAlias" : "kafka.server.BrokerTopicMetrics.AllTopicsFailedFetchRequestsPerSec",
"attr" : [ "OneMinuteRate", "MeanRate", "Count" ],
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "<%= @graphite_host %>",
"port" : "<%= @graphite_port %>"
}
} ]
}, {
"obj" : "\"kafka.server\":type=\"BrokerTopicMetrics\",name=\"AllTopicsFailedProduceRequestsPerSec\"",
"resultAlias" : "kafka.server.BrokerTopicMetrics.AllTopicsFailedProduceRequestsPerSec",
"attr" : [ "OneMinuteRate", "MeanRate", "Count" ],
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"host" : "<%= @graphite_host %>",
"port" : "<%= @graphite_port %>"
}
} ]
}
],
"numQueryThreads": "2"
} ]
}
以上是关于json Jmxtrans.json的主要内容,如果未能解决你的问题,请参考以下文章
python中json文件处理涉及的四个函数json.dumps()和json.loads()json.dump()和json.load()的区分
JSON相关 JSON在线解析 JSON压缩转义工具 JSON着色工具 JSON 在线格式化工具 在线XML/JSON互相转换工具 XMLJSON在线转换
python中json文件处理涉及的四个函数json.dumps()和json.loads()json.dump()和json.load()的区分
python中json文件处理涉及的四个函数json.dumps()和json.loads()json.dump()和json.load()的区分
Python中json文件处理的四个函数json.dumps()json.loads()json.dump()和json.load()的区分