Skip to content

Commit

Permalink
enhancement: merge resource dashboards for ssd into resources-overvie…
Browse files Browse the repository at this point in the history
…w dashboard

Signed-off-by: QuentinBisson <[email protected]>
  • Loading branch information
QuentinBisson committed Jul 10, 2024
1 parent 6ea83b4 commit 1f3afb0
Show file tree
Hide file tree
Showing 10 changed files with 1,652 additions and 1,569 deletions.

This file was deleted.

1,252 changes: 1,252 additions & 0 deletions production/loki-mixin-compiled-ssd/dashboards/loki-resources-overview.json

Large diffs are not rendered by default.

This file was deleted.

64 changes: 30 additions & 34 deletions production/loki-mixin-compiled/dashboards/loki-reads-resources.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
},
{
"collapse": false,
"collapsed": false,
"height": "250px",
"panels": [
{
"datasource": "$datasource",
Expand All @@ -314,7 +314,6 @@
},
"overrides": [ ]
},
"gridPos": { },
"id": 4,
"links": [ ],
"options": {
Expand All @@ -326,6 +325,7 @@
"sort": "none"
}
},
"span": 1,
"targets": [
{
"expr": "sum by(pod) (loki_ingester_memory_streams{cluster=~\"$cluster\", job=~\"($namespace)/ingester.*\"})",
Expand Down Expand Up @@ -403,7 +403,6 @@
}
]
},
"gridPos": { },
"id": 5,
"links": [ ],
"options": {
Expand All @@ -415,6 +414,7 @@
"sort": "none"
}
},
"span": 1,
"targets": [
{
"expr": "sum by(pod) (rate(container_cpu_usage_seconds_total{cluster=~\"$cluster\", namespace=~\"$namespace\", container=\"ingester\"}[$__rate_interval]))",
Expand Down Expand Up @@ -504,7 +504,6 @@
}
]
},
"gridPos": { },
"id": 6,
"links": [ ],
"options": {
Expand All @@ -516,6 +515,7 @@
"sort": "none"
}
},
"span": 1,
"targets": [
{
"expr": "max by(pod) (container_memory_working_set_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", container=\"ingester\"})",
Expand Down Expand Up @@ -566,7 +566,6 @@
},
"overrides": [ ]
},
"gridPos": { },
"id": 7,
"links": [ ],
"options": {
Expand All @@ -578,6 +577,7 @@
"sort": "none"
}
},
"span": 1,
"targets": [
{
"expr": "sum by(pod) (go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", job=~\"($namespace)/ingester.*\"})",
Expand Down Expand Up @@ -616,7 +616,6 @@
},
"overrides": [ ]
},
"gridPos": { },
"id": 8,
"links": [ ],
"options": {
Expand All @@ -628,6 +627,7 @@
"sort": "none"
}
},
"span": 1,
"targets": [
{
"expr": "sum by(instance, pod, device) (rate(node_disk_written_bytes_total[$__rate_interval])) + ignoring(pod) group_right() (label_replace(count by(instance, pod, device) (container_fs_writes_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", container=\"ingester\", device!~\".*sda.*\"}), \"device\", \"$1\", \"device\", \"/dev/(.*)\") * 0)\n",
Expand Down Expand Up @@ -663,7 +663,6 @@
},
"overrides": [ ]
},
"gridPos": { },
"id": 9,
"links": [ ],
"options": {
Expand All @@ -675,6 +674,7 @@
"sort": "none"
}
},
"span": 1,
"targets": [
{
"expr": "sum by(instance, pod, device) (rate(node_disk_read_bytes_total[$__rate_interval])) + ignoring(pod) group_right() (label_replace(count by(instance, pod, device) (container_fs_writes_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", container=\"ingester\", device!~\".*sda.*\"}), \"device\", \"$1\", \"device\", \"/dev/(.*)\") * 0)\n",
Expand Down Expand Up @@ -710,7 +710,6 @@
},
"overrides": [ ]
},
"gridPos": { },
"id": 10,
"links": [ ],
"options": {
Expand All @@ -722,6 +721,7 @@
"sort": "none"
}
},
"span": 1,
"targets": [
{
"expr": "max by(persistentvolumeclaim) (kubelet_volume_stats_used_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\"} / kubelet_volume_stats_capacity_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\"}) and count by(persistentvolumeclaim) (kube_persistentvolumeclaim_labels{cluster=~\"$cluster\", namespace=~\"$namespace\",label_name=~\"ingester.*.*\"})",
Expand All @@ -739,8 +739,7 @@
"repeatRowId": null,
"showTitle": true,
"title": "Ingester",
"titleSize": "h6",
"type": "row"
"titleSize": "h6"
}
],
"schemaVersion": 14,
Expand Down
3 changes: 2 additions & 1 deletion production/loki-mixin/dashboards.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
(import 'dashboards/loki-chunks.libsonnet') +
(import 'dashboards/loki-logs.libsonnet') +
(import 'dashboards/loki-operational.libsonnet') +
(import 'dashboards/loki-resources-overview.libsonnet') +
(import 'dashboards/loki-reads.libsonnet') +
(import 'dashboards/loki-reads-resources.libsonnet') +
(import 'dashboards/loki-writes.libsonnet') +
(import 'dashboards/loki-writes-resources.libsonnet') +
(import 'dashboards/loki-reads-resources.libsonnet') +
(import 'dashboards/loki-deletion.libsonnet') +
(import 'dashboards/loki-canary-dashboard.libsonnet') +
(import 'dashboards/recording-rules.libsonnet') +
Expand Down
Loading

0 comments on commit 1f3afb0

Please sign in to comment.