Deploy Code Profiling & Usage Monitoring for GoLang

Steps on how to deploy Germain UX - Code Profiler for GoLang.

Add Golang profiling to you application

The official Golang documentation best explains how to add the ‘pprof’ package, and start a listener for 'pprof' in your GoLang application: https://golang.org/pkg/net/http/pprof/

Import Golang settings into Germain

The setting json files are available here

[service-disto]/install/configuration/golang/

You will need to import:

  • germain.apm.monitoringConfig.components.json

  • germain.apm.monitoringConfig.keyPerformanceIndicators.json

  • germain.apm.workspace.rcaDashboards.json

Optionally you can import a pre-made Golang Dasboard

  • germain.apm.workspace.dashboards.json


Go to Germain Workspace > Left Menu > Wizard > Golang

go1.png
GoLang Wizard - Germain UX


Enter ‘Monitored Server’, ‘Port’, ‘Monitored Application’ and ‘Read Timeout’

go2.png
GoLang Parameters - Germain UX


Unless you have special configuration, you can click 'skip'

go3.png
GoLang Wizard (2) - Germain UX


Choose a 'Monitor Name', ‘Monitoring Node’, ‘Engine’

Set a schedule to run the Monitor on

go4.png
GoLang Wizard (3) - Germain UX


Check whether it is running on the State screen

go5.png
Check the State of GoLang Agent - Germain UX
go6.png
Dive into the State of the GoLang Agent - Germain UX

 

Component: Code Profiler

Feature Availability: 8.6.0 or later