cloudnative-pg / cloudnative-pg/grafana-dashboards

Memory Utilisation widget shows warnings based on memory request value, not limit value

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
88
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Hello!

The Memory Utilisation and Health widgets show the request value and warn if the memory usage approaches 100%.

However, we've got the following limits set:

```yaml
resources:
requests:
memory: "2Gi"
cpu: "1"
limits:
memory: "12Gi"
```

Should the widget only show warnings if the memory usage approaches the limit of 12Gi and not the request value of 2Gi?

Now it feels things are about to go horribly wrong, while the database can easily request more memory if it needs.

Contributor guide

Open the contributing guide

Research direction

Locate the Memory Utilisation and Health widgets in the Grafana dashboards and inspect how their warning thresholds use Kubernetes memory requests and limits. Confirm the intended threshold against the reported 2Gi request and 12Gi limit; the issue is done when warnings reflect the configured memory limit rather than the request value.

Written by the indexing model from the issue text.

Assessment

Tech stack
grafana, kubernetes
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.