Showing results for 
Show  only  | Search instead for 
Did you mean: 

connect to oneagent not active through oneagent sdk for node.js


I deploy my node.js application and other dynatrace applications in kyma(k8s), but when I getCurrentState,

the state is not active. I have already check the version . who can kindly  give me some advice.



DynaMight Legend
DynaMight Legend

I guess you don't have oneagent running or not injecting code modules to pods running your nodejs application. It's difficult to tell without knowing your deployment. What mode of Dynatrace Operator deployment are you using in your k8s cluster?

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

I deploy Dynatrace Operator by : create namespace dynatrace and  apply this yaml,

I have seen the k8s-metering-oneagent is running in Pods. and I also had used this env to monitor 

java microservice by JMX plugin successfully. so Are there any other configurations that haven't been considered of using oneagent-sdk?


I mean what deployment mode described here are you using - the mode is specified when you create the DynaKube resource.
Nevertheless, first check if Dynatrace is injecting code modules into your NodeJS process. You can see that easily if you open the NodeJS process in Dynatrace UI and you will see the OneAgent version in the metadata:


If there is OneAgent version then there is definitely some issue with initializing - check the OneAgent log (Download the OneAgent diagnostic archive).

If there is no mention of OneAgent version, then Dynatrace is not injecting into your nodejs process. Maybe due to the deployment mode you are using or due to rules you have set up or the version you are running is not supported. 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

here is my dynakube.yaml.


the mode you mean maybe 'classicFullStack',and  there is no mention of OneAgent version;

I just refer to this example, could you show me how to inject Dynatrace to nodejs app, otherwise, I don't understand the rules you mean. 

Featured Posts