You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Ambari Stack definition represents the complete declarative description of Services that are comprised in a cluster.

The stack definition also contains a definition file for all metrics that are supported by the stack.

Presently the metrics.json describes the mapping between the metrics name requested in the REST API and the metrics name to use for making a call to the Metrics Service.

Location of the metrics.json in the stack:

LevelLocationComment
Cluster & Hostganglia_properties.jsonThis file defines metrics for Host Component and Service Components as well but these are only used for older versions of stack < 2.0 and unit tests.
Component & Host Componentcommon-services.<SERVICE_NAME>This file contains definition of metrics mapping for Ambari Metrics (type = ganglia) and JMX.

Note: The individual stacks that override behavior from common services can redefine the metrics.json file, the inheritance is all-or-nothing, meaning if metrics.json file is present in the child stack, it will override the metrics.json from common-services

Structure of metrics.json file

{

  "NAMENODE": {

    "Component": [

      {

        "type": "ganglia",

        "metrics": {

          "default": {

            "metrics/dfs/FSNamesystem/TotalLoad": {

              "metric": "dfs.FSNamesystem.TotalLoad",

              "pointInTime": false,

              "temporal": true

            }

        } ]

    },

    "HostComponent" : [

         { "type" : "ganglia", ... }

         {  "type" : "jmx", .... }

      ]

 

 

 

  • No labels