hashicorp / hashicorp/consul

calculating consul.runtime.total_gc_pause_ns

Open
#16,331 3 comments 0 reactions 0 assignees View on GitHub
type/question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.