We are working on a POC to implement Dynatrace to monitor a application running on Red Hat OpenShift Container Platform.
We know that DT OneAgent have capability of monitoring full stack OCP using smartscape Component.
But here we are looking to implement DT on the GraphQL and provide GraphQL related metrics to monitor the GraphQL Engine Performance.
Hi @Siavash H.,
Thanks for your reply. Yes we have tried monitoring GraphQL as you suggested, but it is not providing GraphQL query presented as an independent call inside the distributed trace. We should be able to parse the query or mutation and provides insight into the provided arguments. DT should be able to provide user with insight into the subscription messages and subscribers.
Dynatrace can monitor query or mutation in GraphQL (as Request Attribute). You need to use Dynatrace SDK https://github.com/Dynatrace/OneAgent-SDK-for-NodeJs. I have already test it in my tenant
Thank you so much for responding on my query.
Yes we did use Oneagent SDK for Node JS. But I request you to clarify on below as well to help me understand the instrumentation done by you.
Which feature of one agent SDK did you use from below :
1. Trace incoming and outgoing remote calls
2. Set Custom request attributes
We used both of the above stated features, but no luck.
This the code we have added as part of one agent SDK
Thanks in advance!
If you would like to extract value from each mutation/query of GraphQL request. You can use Custom Request Attributes on SDK. You also need to add Request Attribute on Dynatrace Environment and choose SDK Custom Attribute.
Hope it helps
Is there a How-to somewhere that explains exactly how to hook this up? I'm not really finding anything online besides this thread, which is not very helpful for somebody that is evaluating DT. My stack uses GraphQL and I would like to set it up properly ( however that is supposed to happen ) so that I can compare it to other tools. Is there some helpful information out there?