Merge pull request #123 from prometheus/change-go-metric-prefix
Rename process_goroutines to go_goroutines
This commit is contained in:
commit
f112f16831
|
@ -16,7 +16,7 @@ type goCollector struct {
|
||||||
func NewGoCollector() *goCollector {
|
func NewGoCollector() *goCollector {
|
||||||
return &goCollector{
|
return &goCollector{
|
||||||
goroutines: NewGauge(GaugeOpts{
|
goroutines: NewGauge(GaugeOpts{
|
||||||
Name: "process_goroutines",
|
Name: "go_goroutines",
|
||||||
Help: "Number of goroutines that currently exist.",
|
Help: "Number of goroutines that currently exist.",
|
||||||
}),
|
}),
|
||||||
gcDesc: NewDesc(
|
gcDesc: NewDesc(
|
||||||
|
|
|
@ -175,9 +175,9 @@ http_response_size_bytes_count{handler="prometheus"} 119
|
||||||
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
|
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
|
||||||
# TYPE process_cpu_seconds_total counter
|
# TYPE process_cpu_seconds_total counter
|
||||||
process_cpu_seconds_total 0.55
|
process_cpu_seconds_total 0.55
|
||||||
# HELP process_goroutines Number of goroutines that currently exist.
|
# HELP go_goroutines Number of goroutines that currently exist.
|
||||||
# TYPE process_goroutines gauge
|
# TYPE go_goroutines gauge
|
||||||
process_goroutines 70
|
go_goroutines 70
|
||||||
# HELP process_max_fds Maximum number of open file descriptors.
|
# HELP process_max_fds Maximum number of open file descriptors.
|
||||||
# TYPE process_max_fds gauge
|
# TYPE process_max_fds gauge
|
||||||
process_max_fds 8192
|
process_max_fds 8192
|
||||||
|
|
Loading…
Reference in New Issue