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

Unable to Monitor services in Docker Image GO

rgarzon1
Pro

Hi

in a fresh Ubuntu 22 with docker installed.

I am trying to  monitor this example in order to validate this documentation

https://www.dynatrace.com/support/help/technology-support/application-software/go/support/go-known-l...

But i am facing some problems. even after reboot the machine, restart the docker, delete the image. i was unable to achieve the monitoring of the image. i know that its monitoring the  process but its not  monitoring the services. 

SO: Ubuntu 22.04.1 LTS

Docker: Docker version 20.10.21, build baeda1f

OneAgent version: 1.255.174.20221209-095004

rgarzon1_0-1670906898404.png

 

Do anyone have a valid working example of a api (with the services detected) build in Go that its working with dynatrace ? like in the demo,

i try some of us that we are using without success, i try this

https://github.com/crizstian/golang-api-example

https://github.com/wdrdres3qew5ts21/Example-Golang-REST-API-with-Docker

our last hope to monitor go image was the example 7 and is not working neither. 

Logs:  https://pastebin.com/fSbmFy1x

Pas: GjNxjTYAL2

any advice would be appreciated

Thank you In advance

fuelled by coffee and curiosity.
6 REPLIES 6

pahofmann
DynaMight Guru
DynaMight Guru

There are a few limitations with go Monitoring, be sure to check out the documentation.

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

rgarzon1
Pro

Thank you pahofmann

as i said, i just validated all and the app comply with all of them. even i am using a example from google that works if the oneagent its running on the server, but its not working if i am trying to monitor only the image. 

the last logs i am getting show me some hints but i cant understand why it stops 

rgarzon1_1-1672740179062.png

 

========= Agent state DISABLED has changed to true. Current agent.state: MANUALLY_STOPPED ===================
[native] SensorBase: Sensor 'Go.ClientWebRequest': agent initialization unsuccessful

but as i said. i am not getting any advance. our intention its to find a configuration that the agent can work. because in the demo there is a api in docker with go working with the agent 

 

fuelled by coffee and curiosity.

rgarzon1
Pro

Does anyone have a template of a Docker image of a api build in go ?  that dynatrace can monitor ?

fuelled by coffee and curiosity.

bhantol
Participant

I would like to see this working as well. In my case I can't understand why oneagent-pass Go Agent gets Inactivated. We have disabled Go monitoring but we do enable it using dt_agent_type_overide='go=on'

 

Hi  @Peter_Youssef 

This issue dates back about two years. From what I recall, it was related to running the OneAgent in a virtual machine (VM) where the monitoring was disabled. If I attempted to monitor the same image with monitoring enabled (only for the image), the OneAgent inside the image would stop functioning.

In such cases, there are typically two options:

Use a clean VM without OneAgent installed.
Use a VM with OneAgent installed but ensure that monitoring is enabled.
The problem I faced at the time was due to forgetting that the OneAgent was already installed and active inside the VM.

I hope this helps clarify the situation. and thank you for your response. 

fuelled by coffee and curiosity.

Featured Posts