Deploy Code Profiling & Usage Monitoring for GoLang


📝 Overview

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:

File

Details

germain.apm.monitoringConfig.components.json


germain.apm.monitoringConfig.keyPerformanceIndicators.json


germain.apm.workspace.rcaDashboards.json


Optionally you can import a pre-made Golang Dasboard

Optional File

Details

germain.apm.workspace.dashboards.json



➡️ Run the Golang Wizard

Go to Germain Workspace > Left Menu > Wizard > Golang

go1.png



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

go2.png



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

go3.png



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

Set a schedule to run the Monitor on

go4.png



Check whether it is running on the State screen

go5.png


go6.png


 

Component: Code Profiler

Feature Availability: 8.6.0 or later