Skip to content

Commit

Permalink
Prometheus dashboard: fix node RAM (#375)
Browse files Browse the repository at this point in the history
Co-authored-by: Herve Nicol <[email protected]>
  • Loading branch information
hervenicol and hervenicol authored Oct 6, 2023
1 parent 9c3c370 commit 8c98d7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Prometheus dashboard: fix node RAM

### Added

- Add custom dashboards documentation link into home panel.
Expand Down
5 changes: 2 additions & 3 deletions helm/dashboards/dashboards/shared/public/prometheus.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": 67,
"links": [
{
"asDropdown": false,
Expand Down Expand Up @@ -935,7 +934,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "max (node_memory_MemTotal_bytes{node=~\".+\"} * on (node) group_right(pod) (kube_pod_info{pod=~\"prometheus-.*-0\",cluster_type=\"management_cluster\", namespace=~\"($cluster)-prometheus\"})) by (namespace)",
"expr": "max (node_memory_MemTotal_bytes{node=~\".+\", cluster_type=\"management_cluster\"} * on (node) group_right(pod) (kube_pod_info{pod=~\"prometheus-.*-0\",cluster_type=\"management_cluster\", namespace=~\"($cluster)-prometheus\"})) by (namespace)",
"hide": false,
"legendFormat": "node memory - {{ namespace }}",
"range": true,
Expand Down Expand Up @@ -1775,6 +1774,6 @@
"timezone": "UTC",
"title": "Prometheus",
"uid": "iWowmlSmk",
"version": 1,
"version": 4,
"weekStart": ""
}

0 comments on commit 8c98d7f

Please sign in to comment.