...
Structure of metrics.json file
Key | Allowed Values | Comments |
---|---|---|
Type | "ganglia" / "jmx" | Ganglia = Metrics Service request fulfilled by either a Ganglia or Ambari Metrics Backend service |
Category | "default" / "performace" ... | 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", .... } ] |
---|
...