Fix Loki dashboard metrics

- Change "Chunks in Memory" to "Total Stored" using loki_ingester_chunk_stored_bytes_total
  (loki_ingester_memory_chunks_bytes doesn't exist)
- Update "Memory Usage Over Time" to "Storage Over Time" with correct metric

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-15 13:23:33 -08:00
commit c3b8362d8b

View file

@ -49,11 +49,11 @@
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "sum(loki_ingester_memory_chunks_bytes)",
"expr": "sum(loki_ingester_chunk_stored_bytes_total)",
"refId": "A"
}
],
"title": "Chunks in Memory",
"title": "Total Stored",
"type": "stat"
},
{
@ -368,8 +368,8 @@
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "sum(loki_ingester_memory_chunks_bytes)",
"legendFormat": "Chunks in Memory",
"expr": "sum(loki_ingester_chunk_stored_bytes_total)",
"legendFormat": "Total Stored",
"refId": "A"
},
{
@ -379,7 +379,7 @@
"refId": "B"
}
],
"title": "Memory Usage Over Time",
"title": "Storage Over Time",
"type": "timeseries"
},
{