Skip to content

Commit

Permalink
Mimir Cost Estimation: fix RAM usage (#591)
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 Jun 28, 2024
1 parent eba1e4a commit c0f4733
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- fluentbit dashboard: cluster selection

### Fixed

- Mimir Cost Estimation: fix RAM usage

### Removed

- Removed the dashboard 'Webhook Health'.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"annotations": {
"list": []
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
Expand Down Expand Up @@ -84,7 +97,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": "$datasource",
Expand Down Expand Up @@ -148,7 +161,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": "$datasource",
Expand Down Expand Up @@ -273,6 +286,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "multi",
"sort": "none"
}
Expand Down Expand Up @@ -358,7 +372,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": "$datasource",
Expand Down Expand Up @@ -494,6 +508,7 @@
"width": 450
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -531,7 +546,10 @@
"type": "timeseries"
},
{
"datasource": "$datasource",
"datasource": {
"type": "prometheus",
"uid": "$datasource"
},
"description": "Total memory used by all mimir pods",
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -580,12 +598,12 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": "$datasource",
"editorMode": "code",
"expr": "sum(sum(max_over_time(container_memory_usage_bytes{pod=~\"mimir-.*\", cluster_type=~\"management_cluster\"}[$__range] ) ) by (pod))",
"expr": "max_over_time(sum(sum(container_memory_usage_bytes{pod=~\"mimir-.*\", cluster_type=~\"management_cluster\"}) by (pod))[$__range:$__rate_interval])",
"legendFormat": "__auto",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -681,6 +699,7 @@
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
Expand Down Expand Up @@ -755,7 +774,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "11.0.0",
"targets": [
{
"datasource": "$datasource",
Expand Down Expand Up @@ -825,8 +844,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -915,8 +933,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1062,16 +1079,20 @@
"list": [
{
"current": {
"selected": false,
"text": "default",
"value": "default"
},
"hide": 0,
"includeAll": false,
"label": "Data source",
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
Expand All @@ -1084,7 +1105,10 @@
"$__all"
]
},
"datasource": "$datasource",
"datasource": {
"type": "prometheus",
"uid": "$datasource"
},
"definition": "label_values(kube_pod_container_info{image=~\".*mimir.*\"},cluster_id)",
"description": "Allows to select a particular cluster in the installation",
"hide": 0,
Expand All @@ -1109,6 +1133,7 @@
"from": "now-6h",
"to": "now"
},
"timeRangeUpdatedDuringEditOrView": false,
"timepicker": {},
"timezone": "",
"title": "Mimir / Cost Estimation",
Expand Down

0 comments on commit c0f4733

Please sign in to comment.