client_golang/prometheus/collectors
Arianna Vespri ff60566f1b
Refactor default runtime metrics tests for Go collector so that default runtime metric set autogenerates (#1631)
* Enable autogeneration for default runtime metrics list in collectors tests according to Go version

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>

* Adapt withDefaultRuntimeMetrics function to work regardless of the Go version

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>

* Autogenerate go collector test for go1.23

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>

* Modify gen_go_collector_set.go to please linter and regenerate files

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>

* Simplify gen_go_collector_set.go logic by modifying func computeMetricsList

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>

* Slight simplification of withDefaultRuntimeMetrics func

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>

* Refactor withDefaultRuntimeMetrics with generated default runtime metrics subsets

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>

---------

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
2024-09-23 14:55:38 +01:00
..
version chore: Move VersionCollector to collectors directory (#1427) 2024-01-15 10:07:52 +01:00
collectors.go gocollector: Added options to Go Collector for changing the (#1031) 2022-04-13 09:55:22 +01:00
dbstats_collector.go Remove workaround for pre go1.15 (#1010) 2022-03-27 19:11:56 +01:00
dbstats_collector_test.go Use pedantic registry in other places too, to double check. 2024-08-20 11:44:35 +01:00
expvar_collector.go Fix typos in comments, tests, and errors (#1346) 2023-09-21 12:31:08 +01:00
gen_go_collector_set.go Refactor default runtime metrics tests for Go collector so that default runtime metric set autogenerates (#1631) 2024-09-23 14:55:38 +01:00
go_collector_go116.go gocollector: Added options to Go Collector for changing the (#1031) 2022-04-13 09:55:22 +01:00
go_collector_go120_test.go Refactor default runtime metrics tests for Go collector so that default runtime metric set autogenerates (#1631) 2024-09-23 14:55:38 +01:00
go_collector_go121_test.go Refactor default runtime metrics tests for Go collector so that default runtime metric set autogenerates (#1631) 2024-09-23 14:55:38 +01:00
go_collector_go122_test.go Refactor default runtime metrics tests for Go collector so that default runtime metric set autogenerates (#1631) 2024-09-23 14:55:38 +01:00
go_collector_go123_test.go Refactor default runtime metrics tests for Go collector so that default runtime metric set autogenerates (#1631) 2024-09-23 14:55:38 +01:00
go_collector_latest.go Remove go_memstat_lookups_total; added runtime/metrics calculation to memstat metric's help. (#1577) 2024-08-14 12:11:51 +00:00
go_collector_latest_test.go Refactor default runtime metrics tests for Go collector so that default runtime metric set autogenerates (#1631) 2024-09-23 14:55:38 +01:00
process_collector.go Add new collectors package 2021-05-08 10:43:31 +09:00