View Component Information

Back to Resources

Refers to a specific component identified by “:componentName” for a given service.

GET /clusters/:name/services/:serviceName/components/:componentName

Response

200 OK
{
	"href" : "http://your.ambari.server/api/v1/clusters/c1/services/HDFS/components/DATANODE",
	"metrics" : {
		"process" : {
			...    
		},
  		"rpc" : {
    		...
  		},
  		"ugi" : {
  			...
  		},
  		"dfs" : {
    		"datanode" : {
      		...
    		}
  		},
  		"disk" : {
    		...
  		},
  		"cpu" : {
    		...
  		},
  		"rpcdetailed" : {
  			...
  		},
  		"jvm" : {
    		...
  		},
  		"load" : {
    		...
  		},
  		"memory" : {
    		...
  		},
  		"network" : {
    		...
  		},
	},
	"ServiceComponentInfo" : {
  		"cluster_name" : "c1",
  		"component_name" : "DATANODE",
  		"service_name" : "HDFS"
  		"state" : "STARTED"
	},
	"host_components" : [
  		{
  			"href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host1/host_components/DATANODE",
  			"HostRoles" : {
    			"cluster_name" : "c1",
    			"component_name" : "DATANODE",
    			"host_name" : "host1"
    		}
  		}
   	]
}