Skip to content

Commit

Permalink
Add All Go metrics to admin endpoint default (#629)
Browse files Browse the repository at this point in the history
* Add All Go metrics to admin endpoint default

Add All Go `runtime/metrics` to the default included metrics.

This will add several new metrics per process:
* `go_cgo_go_to_c_calls_calls_total`
* `go_cpu_classes_gc_mark_assist_cpu_seconds_total`
* `go_cpu_classes_gc_mark_dedicated_cpu_seconds_total`
* `go_cpu_classes_gc_mark_idle_cpu_seconds_total`
* `go_cpu_classes_gc_pause_cpu_seconds_total`
* `go_cpu_classes_gc_total_cpu_seconds_total`
* `go_cpu_classes_idle_cpu_seconds_total`
* `go_cpu_classes_scavenge_assist_cpu_seconds_total`
* `go_cpu_classes_scavenge_background_cpu_seconds_total`
* `go_cpu_classes_scavenge_total_cpu_seconds_total`
* `go_cpu_classes_total_cpu_seconds_total`
* `go_cpu_classes_user_cpu_seconds_total`
* `go_gc_cycles_automatic_gc_cycles_total`
* `go_gc_cycles_forced_gc_cycles_total`
* `go_gc_cycles_total_gc_cycles_total`
* `go_gc_gogc_percent`
* `go_gc_gomemlimit_bytes`
* `go_gc_heap_allocs_by_size_bytes`
* `go_gc_heap_allocs_bytes_total`
* `go_gc_heap_allocs_objects_total`
* `go_gc_heap_frees_by_size_bytes`
* `go_gc_heap_frees_bytes_total`
* `go_gc_heap_frees_objects_total`
* `go_gc_heap_goal_bytes`
* `go_gc_heap_live_bytes`
* `go_gc_heap_objects_objects`
* `go_gc_heap_tiny_allocs_objects_total`
* `go_gc_limiter_last_enabled_gc_cycle`
* `go_gc_pauses_seconds`
* `go_gc_scan_globals_bytes`
* `go_gc_scan_heap_bytes`
* `go_gc_scan_stack_bytes`
* `go_gc_scan_total_bytes`
* `go_gc_stack_starting_size_bytes`
* `go_godebug_non_default_behavior_execerrdot_events_total`
* `go_godebug_non_default_behavior_gocachehash_events_total`
* `go_godebug_non_default_behavior_gocachetest_events_total`
* `go_godebug_non_default_behavior_gocacheverify_events_total`
* `go_godebug_non_default_behavior_gotypesalias_events_total`
* `go_godebug_non_default_behavior_http2client_events_total`
* `go_godebug_non_default_behavior_http2server_events_total`
* `go_godebug_non_default_behavior_httplaxcontentlength_events_total`
* `go_godebug_non_default_behavior_httpmuxgo121_events_total`
* `go_godebug_non_default_behavior_installgoroot_events_total`
* `go_godebug_non_default_behavior_jstmpllitinterp_events_total`
* `go_godebug_non_default_behavior_multipartmaxheaders_events_total`
* `go_godebug_non_default_behavior_multipartmaxparts_events_total`
* `go_godebug_non_default_behavior_multipathtcp_events_total`
* `go_godebug_non_default_behavior_panicnil_events_total`
* `go_godebug_non_default_behavior_randautoseed_events_total`
* `go_godebug_non_default_behavior_tarinsecurepath_events_total`
* `go_godebug_non_default_behavior_tls10server_events_total`
* `go_godebug_non_default_behavior_tlsmaxrsasize_events_total`
* `go_godebug_non_default_behavior_tlsrsakex_events_total`
* `go_godebug_non_default_behavior_tlsunsafeekm_events_total`
* `go_godebug_non_default_behavior_x509sha1_events_total`
* `go_godebug_non_default_behavior_x509usefallbackroots_events_total`
* `go_godebug_non_default_behavior_x509usepolicies_events_total`
* `go_godebug_non_default_behavior_zipinsecurepath_events_total`
* `go_memory_classes_heap_free_bytes`
* `go_memory_classes_heap_objects_bytes`
* `go_memory_classes_heap_released_bytes`
* `go_memory_classes_heap_stacks_bytes`
* `go_memory_classes_heap_unused_bytes`
* `go_memory_classes_metadata_mcache_free_bytes`
* `go_memory_classes_metadata_mcache_inuse_bytes`
* `go_memory_classes_metadata_mspan_free_bytes`
* `go_memory_classes_metadata_mspan_inuse_bytes`
* `go_memory_classes_metadata_other_bytes`
* `go_memory_classes_os_stacks_bytes`
* `go_memory_classes_other_bytes`
* `go_memory_classes_profiling_buckets_bytes`
* `go_memory_classes_total_bytes`
* `go_sched_pauses_stopping_gc_seconds`
* `go_sched_pauses_stopping_other_seconds`
* `go_sched_pauses_total_gc_seconds`
* `go_sched_pauses_total_other_seconds`
* `go_sync_mutex_wait_total_seconds_total`

Signed-off-by: SuperQ <[email protected]>

* Update Prometheus client_golang to latest version.

Signed-off-by: SuperQ <[email protected]>

---------

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ authored Mar 13, 2024
1 parent 00f31e5 commit 8a597c5
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 374 deletions.
19 changes: 9 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ require (
github.com/go-kit/kit v0.9.0
github.com/go-redis/redis/v8 v8.11.5
github.com/gofrs/uuid v3.2.0+incompatible
github.com/google/go-cmp v0.5.9
github.com/google/go-cmp v0.6.0
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/joomcode/errorx v1.0.3
github.com/joomcode/redispipe v0.9.4
github.com/opentracing/opentracing-go v1.2.0
github.com/prometheus/client_golang v1.13.0
github.com/prometheus/client_model v0.2.0
github.com/prometheus/client_golang v1.19.0
github.com/prometheus/client_model v0.5.0
github.com/sony/gobreaker v0.4.1
go.uber.org/automaxprocs v1.5.1
go.uber.org/zap v1.24.0
golang.org/x/sys v0.15.0
golang.org/x/sys v0.16.0
golang.org/x/time v0.0.0-20220609170525-579cf78fd858
google.golang.org/grpc v1.56.3
gopkg.in/yaml.v2 v2.4.0
Expand Down Expand Up @@ -52,20 +52,19 @@ require (
github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
github.com/klauspost/compress v1.12.2 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mediocregopher/radix.v2 v0.0.0-20181115013041-b67df6e626f9 // indirect
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/protobuf v1.30.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
k8s.io/apimachinery v0.25.0 // indirect
k8s.io/klog/v2 v2.80.1 // indirect
)
Expand Down
Loading

0 comments on commit 8a597c5

Please sign in to comment.