Can I get related resources for an application through NRQL?

I want to get related resources used by an application through NRQL, like database, redis, or other external resources, is there an approach to do this?

Hello @matthewshi1 -

NRQL is deigned to help you query Event data and metric timeslice data.

I don’t think there’s a way to get what you are looking for via NRQL. That said, if you haven’t tried it yet, Service Maps may get you the information you are looking for.

Hi, @matthewshi1: Not NRQL, but you may use the NerdGraph API to get related entities: NerdGraph tutorial: Understand entity relationships and dependencies | New Relic Documentation.

Can I get the “map view” in these images? or get an embedded chart url?