Closed aldafu closed 6 years ago
I've since found https://support.instana.com/hc/en-us/articles/360014430212-Agent-Connection-error-resolution-for-node-js-sensor
And included the following for my deployment:
spec:
containers:
env:
- name: INSTANA_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
The env var is set correctly in the container, but in the log for my process I find:
{"name":"instana-nodejs-sensor","hostname":"supervisor-deployment-77f5fcc979-wd9lb","pid":1,"module":"agentHostLookup","level":30,"msg":"Attempting agent communication via 10.240.0.10:42699","time":"2018-10-19T14:05:39.465Z","v":0}
{"name":"instana-nodejs-sensor","hostname":"supervisor-deployment-77f5fcc979-wd9lb","pid":1,"module":"index","level":30,"msg":"Transitioning from agentHostLookup to unannounced","time":"2018-10-19T14:05:39.466Z","v":0}
{"name":"instana-nodejs-sensor","hostname":"supervisor-deployment-77f5fcc979-wd9lb","pid":1,"module":"unannounced","level":30,"msg":"Announce attempt failed: Announce to agent failed with status code 500. Will rety in 60000ms","time":"2018-10-19T14:05:39.489Z","v":0}
Processing initial queue with length 0
{"name":"instana-nodejs-sensor","hostname":"supervisor-deployment-77f5fcc979-wd9lb","pid":1,"module":"unannounced","level":30,"msg":"Overwriting pid for reporting purposes to: 13154","time":"2018-10-19T14:06:39.506Z","v":0}
Example request against with curl 10.240.0.10:42699
return:
{"version":"1.1.458"}
What is missing?
After a while the sensor will switch from unannounced
to announced
and then it works.
Sorry, I didn't see this in time. Seems you have already been able to figure it out. Please use https://support.instana.com/hc/en-us/requests/new to file a support requests in the future, thanks.
When having the agent deployed through Helm (as described here: https://github.com/instana/instana-helm-chart) what's the best way to configure the
agentHost
setting? The defaultlocalhost
won't do since that is local to the pod and the agent is running in a different pod on the same node.