# GO 1

This page describes the Optimization Pack for the component type Go 1.

## Metrics

| Metric                  | Unit          | Description                                                                                                     |
| ----------------------- | ------------- | --------------------------------------------------------------------------------------------------------------- |
| cpu\_used               | CPUs          | The total amount of CPUs used                                                                                   |
| cpu\_util               | percents      | The average CPU utilization % across all the CPUs (i.e., how much time on average the CPUs are busy doing work) |
| go\_heap\_size          | bytes         | The largest size reached by the Go heap memory                                                                  |
| go\_heap\_used          | bytes         | The amount of heap memory used                                                                                  |
| go\_heap\_util          | bytes         | The amount of heap memory used                                                                                  |
| go\_memory\_used        | bytes         | The total amount of memory used by Go                                                                           |
| go\_gc\_time            | percent       | The % of wall clock time the Go spent doing stop the world garbage collection activities                        |
| go\_gc\_duration        | seconds       | The average duration of a stop the world Go garbage collection                                                  |
| go\_gc\_count           | collections/s | The total number of stop the world Go garbage collections that have occurred per second                         |
| go\_threads\_current    | threads       | The total number of active Go threads                                                                           |
| go\_goroutines\_current | goroutines    | The total number of active Goroutines                                                                           |

## Parameters

| Parameter              | Type    | Unit     | Default | Domain          | Restart | Description                                                                                   |
| ---------------------- | ------- | -------- | ------- | --------------- | ------- | --------------------------------------------------------------------------------------------- |
| go\_gcTargetPercentage | integer |          | `100`   | `0` → `25000`   | yes     | Sets the GOGC variable which controls the aggressiveness of the garbage collector             |
| go\_maxProcs           | integer | theads   | `8`     | `0` → `100`     | yes     | Limits the number of operating system threads that can execute user-level code simultaneously |
| go\_memLimit           | integer | megabtes | 100     | `0` → `1048576` | yes     | <p>Sets a soft memory limit for the runtime.<br>Available since Go 1.19</p>                   |
