我使用Ambari设置了一个hbase集群,我可以看到除RegionServer GC指标以外的所有指标。我已经搜寻了很长时间,但仍然找不到解决方法。
{"metrics":[{"metricname":"jvm.JvmMetrics.ThreadsNew","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.GcTimeMillis","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":139.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.ThreadsBlocked","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.ThreadsTimedWaiting","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":34.88888888888889},"metadata":{}},{"metricname":"jvm.JvmMetrics.LogInfo","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.MemNonHeapCommittedM","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":94.43229166666667},"metadata":{}},{"metricname":"jvm.JvmMetrics.MemMaxM","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":5802.666666666667},"metadata":{}},{"metricname":"jvm.JvmMetrics.ThreadsRunnable","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":19.333333333333332},"metadata":{}},{"metricname":"jvm.JvmMetrics.ThreadsWaiting","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":141.22222222222226},"metadata":{}},{"metricname":"jvm.JvmMetrics.LogWarn","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.GcTimeMillisG1 Young Generation","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":139.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.GcCountG1 Young Generation","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":6.666666666666667},"metadata":{}},{"metricname":"jvm.JvmMetrics.MemNonHeapMaxM","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.GcTimeMillisG1 Old Generation","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.ThreadsTerminated","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.LogFatal","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.MemNonHeapUsedM","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":92.63643646240234},"metadata":{}},{"metricname":"jvm.JvmMetrics.MemHeapMaxM","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":5802.666666666667},"metadata":{}},{"metricname":"jvm.JvmMetrics.LogError","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.GcCountG1 Old Generation","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":0.0},"metadata":{}},{"metricname":"jvm.JvmMetrics.MemHeapCommittedM","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":5628.666666666667},"metadata":{}},{"metricname":"jvm.JvmMetrics.MemHeapUsedM","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":192.6938222249349},"metadata":{}},{"metricname":"jvm.JvmMetrics.GcCount","appid":"hbase","timestamp":0,"starttime":1534832550000,"metrics":{"1534832550000":6.666666666666667},"metadata":{}}]}
http://[collectorServer]:6188/ws/v1/timeline/metrics?metricNames=jvm.%&appId=hbase显示的内容如下。似乎收集器未成功检索java.regionserver。%的指标。 任何帮助将不胜感激。