Arianna Vespri
|
3ad272204b
|
Add default Go runtime metrics for /gc/gogc:percent, /gc/gomemlimit:bytes, /sched/gomaxprocs:threads (#1559)
* Add go_gomaxprocs, go_gogc_percent and go_gomemlimit to the default Go runtime metrics
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Move newly added metrics out of base metrics and into goCollector
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Rethink struct for newly added metrics, adapt and add tests
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Simplify new metrics reading
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Correct loop, add debugging lines
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Make goRuntimeEnvVarsMetrics function Go version dependent
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Fix go mod
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Remove debuggin line
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Move default runtime metrics into the runtime metrics flow, change tests accordingly
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* Go version expected default runtime metrics map for tests
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
* 1.21 update.
Signed-off-by: bwplotka <bwplotka@gmail.com>
* Addressed comments on Arianna's PR.
Signed-off-by: bwplotka <bwplotka@gmail.com>
* Use default GoCollector func in test
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
---------
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
Signed-off-by: bwplotka <bwplotka@gmail.com>
Co-authored-by: bwplotka <bwplotka@gmail.com>
|
2024-08-09 20:27:25 +01:00 |