Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Structure of metrics.json file

KeyAllowed ValuesComments
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", .... }

      ]

...