...
Key | Allowed Values | Comments |
---|---|---|
Type | "ganglia" / "jmx" | type = ganglia implies Metrics Service request fulfilled by either a Ganglia (up to version 2.0) or Ambari Metrics (2.0 and above) backend service, this decision is taken by Ambari server at runtime. |
Category | "default" / "performance" ... | This is to group metrics into subsets for better navigability |
Metrics | metricKey : { "metricName": "pointInTime": "temporal": } | metricKey = Key to be used by REST API. metricName = Name to use for the Metrics Service backend pointInTime = Get latest value, no time range query allowed temporal = Time range query supported |
Example:
{ "NAMENODE": { "Component": [ { "type": "ganglia", "metrics": { "default": { "metrics/dfs/FSNamesystem/TotalLoad": { "metric": "dfs.FSNamesystem.TotalLoad", "pointInTime": false, "temporal": true } } ] }, "HostComponent" : [ { "type" : "ganglia", ... } { "type" : "jmx", .... } | ] } |