gnocchi return 404 (does not exist) error

Hi everyone, im facing some issues with gnocchi.someone please help me. the issue is “gnocchi” is not able to find the vm instances that are spawned using “heat” template. due this issue, aodh alarm state is always in “insufficient data”, autoscaling is not working. when i try "gnocchi measures show cpu --resource-id " on the vm that is manually created. the above command is working fine. but when a use the same command for the vm-id of the instance created by heat template. gnoochi throws a 404 (resource does not exist) error.