One way to understand how your monitored entities relate to each other is through our NerdGraph API.
The NerdGraph relationship API captures how pairs of entities interact and how they're related. By using the API, you can troubleshoot upstream and downstream services and understand how minor issues may have larger repercussions, similar to service maps.
Relationship types
Relationship types provide additional information about how two entities are related. The supported relationship types are:
Type | Description |
---|---|
| The relationship between one service or application calling another. Used to display upstream and downstream services. |
| The relationship and hierarchical use cases common to modern and cloud infrastructure. For example, this could indicate that the |
| The relationship between an application or process and the system it runs on. |
| The relationship between a back-end application and the browser application it returns in the response. |
Read relationships of an entity
You can use the NerdGraph relationship API to read the existing relationship of your monitored entities. The following example shows how to query an entity by its specific GUID, using the NerdGraph GraphiQL explorer. For more information, see Use NerdGraph to query entities.
query{
actor{
entity(guid: YOUR_ENTITY_GUID){
name
relationships{
source {
entity{
guid,
name
}
}
target {
entity{
guid,
name
}
},
type
}
}
}
}
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.