Support Questions

Find answers, ask questions, and share your expertise

What does entityName mean in CM API response?

avatar
Expert Contributor

Hello,

I have noticed in one of the charts (HDFS IO) available in CM dashboard for HDFS that runs below query have got values pulled from 2 separate entities for the same metric. Attached are the 3 screenshots for reference. 2 graphs showing values from individual entities and 1 the combined graph available in CM that triggers below query.

select total_bytes_read_rate_across_datanodes, total_bytes_written_rate_across_datanodes where category = SERVICE and serviceType = HDFS and clusterId = "1"

Two different entities are hdfs and hdfs:<cluster_name>

I have also verified the response from below API call, and it does returns both entities and both have latest data.

http://<cm-host>:7180/api/v19/timeseries?query=SELECT%20total_bytes_written_rate_across_datanodes%20WHERE%20category=SERVICE

What do they mean?
Where are they coming from?
How to get it fixed so a single value is returned for the metric?

Kindly advise.

Thanks
Snm1523


image (6).pngimage (5).pngScreenshot 2025-09-09 at 11.36.15.png
1 REPLY 1

avatar
Cloudera Employee

Hi, Snm1523

hdfs:<nameservice>, is available when HA is enabled on HDFS (HDFS > Configuration tab > NameNode Nameservice)

https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/fault-tolerance/topics/cr-enabling-high-avail...

You can just show one, editing the query and adding "and entityName='hdfs'" or "and entityName='hdfs:<nameservice>'"

For instance, 

select total_bytes_read_rate_across_datanodes, total_bytes_written_rate_across_datanodes where category = SERVICE and serviceType = HDFS and entityName = 'hdfs'

Hope it helps.

Regards
Christian.