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](../__attachments/3828219905/go1.png?inst-v=baad7441-1094-48da-b263-fa99f8ae5725)
GoLang Wizard - Germain UX
Enter ‘Monitored Server’, ‘Port’, ‘Monitored Application’ and ‘Read Timeout’
![go2.png](../__attachments/3828219905/go2.png?inst-v=baad7441-1094-48da-b263-fa99f8ae5725)
GoLang Parameters - Germain UX
Unless you have special configuration, you can click 'skip'
![go3.png](../__attachments/3828219905/go3.png?inst-v=baad7441-1094-48da-b263-fa99f8ae5725)
GoLang Wizard (2) - Germain UX
Choose a 'Monitor Name', ‘Monitoring Node’, ‘Engine’
Set a schedule to run the Monitor on
![go4.png](../__attachments/3828219905/go4.png?inst-v=baad7441-1094-48da-b263-fa99f8ae5725)
GoLang Wizard (3) - Germain UX
Check whether it is running on the State screen
![go5.png](../__attachments/3828219905/go5.png?inst-v=baad7441-1094-48da-b263-fa99f8ae5725)
Check the State of GoLang Agent - Germain UX
![go6.png](../__attachments/3828219905/go6.png?inst-v=baad7441-1094-48da-b263-fa99f8ae5725)
Dive into the State of the GoLang Agent - Germain UX
Component: Code Profiler
Feature Availability: 8.6.0 or later