u39kun / ambari-grafana

Integrate Grafana with Ambari Metrics System
Other
27 stars 16 forks source link

Parent Service resource doesn't exist #13

Open mikehomee opened 8 years ago

mikehomee commented 8 years ago

Hi!

I'm having an issue using it, it's prompting me error below.

From WebUI Parent Service resource doesn't exist. Service not found, clusterName=MyCluster, serviceName=undefined. Service not found, clusterName=MyCluster, serviceName=undefined.

From Grafana Logs 2016/05/19 10:00:08 [I] Completed 192.168.242.10 - "GET /api/v1/clusters/MyCluster/services/undefined/components/undefined HTTP/1.1" 404 Not Found 201 bytes in 11404us 2016/05/19 10:00:11 [I] Completed 192.168.242.10 - "GET /api/v1/clusters/MyCluster/services/undefined/components/undefined HTTP/1.1" 404 Not Found 201 bytes in 10980us 2016/05/19 10:00:13 [I] Completed 192.168.242.10 - "GET /api/v1/clusters/MyCluster/services/undefined/components/undefined HTTP/1.1" 404 Not Found 201 bytes in 11137us

Please help. Thank you!

mikehomee commented 8 years ago

BTW, I'm trying to display graphs from Kafka Component. Namenode seems to be working though. :)

Please help.

Thank you!

prajwalrao commented 8 years ago

@mikehomee What version of Ambari are you running?

mikehomee commented 8 years ago

Hi @prajwalrao

I'm using Ambari 2.2.0 via HDP-2.3.2

prajwalrao commented 8 years ago

Do you see anything when you try accessing this endpoint via browser?

http://ambari-host:port/api/v1/clusters/MyCluster/services/KAFKA/components/KAFKA_BROKER

mikehomee commented 8 years ago

Yes.

{ "href": "http://myserver.local.com:8080/api/v1/clusters/MyCluster/services/KAFKA/components/KAFKA_BROKER", "ServiceComponentInfo": { "category": "MASTER", "cluster_name": "MyCluster", "component_name": "KAFKA_BROKER", "installed_count": 0, "service_name": "KAFKA", "started_count": 1, "state": "STARTED", "total_count": 1 }, "host_components": [ { "href": "http://myserver.local.com:8080/api/v1/clusters/MyCluster/hosts/mykafka.local.com/host_components/KAFKA_BROKER", "HostRoles": { "cluster_name": "MyCluster", "component_name": "KAFKA_BROKER", "host_name": "mykafka.local.com" } } ] }

prajwalrao commented 8 years ago

@mikehomee As you can see, there are no metrics being emitted, which is why you see an error in Grafana logs.

http://ambari-host:port/api/v1/clusters/MyCluster/services/HDFS/components/NAMENODE

For example will show you the list of Namenode metrics (see the object array after "ServiceComponentInfo") that are exposed to the Ambari API, and therefore can be visualized via Grafana

mikehomee commented 8 years ago

I see the differences now. Will check the ambari-metrics on kafka brokers.

Thank you, @prajwalrao

prajwalrao commented 8 years ago

No problem @mikehomee Glad I could help :) You could use Ambari 2.2.2 (which comes with an AMS Datasource for Grafana ) and use it to visualize Kafka Metrics. » Ambari 2.2.2