calculating consul.runtime.total_gc_pause_ns
- Dominant language
- Go
- Stars
- 30.1k
- Forks
- 4.6k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 43
Description
#### Overview of the Issue
I don't understand the calculation here. If this is a cumulative number, "since Consul started", how can "the value return is more than ..." be possible? It'll always be high, since it accumulates. How do you calculate GC?
> https://developer.hashicorp.com/consul/tutorials/day-2-operations/monitor-datacenter-health#garbage-collection
>If the value return is more than 2 seconds/minute, you should start investigating the cause. If it exceeds 5 seconds per minute, >you should consider the datacenter to be in a critical state and start ensuring failure recovery procedures are up-to-date and >start investigating. Below is an example of healthy GC pause.
---
#### Reproduction Steps
```
# curl -s http://127.0.0.1:8500/v1/agent/metrics | jq . | grep -A3 consul.runtime.total_gc_pause_ns
"Name": "consul.runtime.total_gc_pause_ns",
"Value": 568344960,
"Labels": {}
},
```
Contributor guide
Assessment
This issue has not been assessed yet.