-
Notifications
You must be signed in to change notification settings - Fork 593
feat(mixin): Update loki dashboard #5848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1acf511
41326ca
d11e064
7619fc3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -94,7 +94,7 @@ local filename = 'alloy-loki.json'; | |||||||||||||
| ( | ||||||||||||||
| panel.new(title='Write latency in $cluster', type='timeseries') + | ||||||||||||||
| panel.withDescription(||| | ||||||||||||||
| Bytes dropped per second. | ||||||||||||||
| Percentile write latency. | ||||||||||||||
| |||) + | ||||||||||||||
| panel.withUnit('s') + | ||||||||||||||
| panel.withPosition({ x: 12, y: 1 + y_offset, w: 12, h: 10 }) + | ||||||||||||||
|
|
@@ -159,14 +159,83 @@ local filename = 'alloy-loki.json'; | |||||||||||||
| panel.withDescription(||| | ||||||||||||||
| Bytes dropped per second. | ||||||||||||||
| |||) + | ||||||||||||||
| panel.withStacked() + | ||||||||||||||
| panel.withUnit('Bps') + | ||||||||||||||
| panel.withStacked(stackingMode='off') + | ||||||||||||||
| panel.withPosition({ x: 12, y: 1 + y_offset, w: 12, h: 10 }) + | ||||||||||||||
| panel.withQueries([ | ||||||||||||||
| panel.newQuery( | ||||||||||||||
| expr=||| | ||||||||||||||
| sum by(${groupby}, reason) (rate(loki_write_dropped_bytes_total{%(instanceSelector)s, host=~"$url"}[$__rate_interval])) | ||||||||||||||
|
thampiotr marked this conversation as resolved.
|
||||||||||||||
| ||| % $._config, | ||||||||||||||
| legendFormat='{{${groupby}}}: {{reason}}' | ||||||||||||||
| ), | ||||||||||||||
| ]) | ||||||||||||||
| ), | ||||||||||||||
|
|
||||||||||||||
| // Loki write request size distribution | ||||||||||||||
| ( | ||||||||||||||
| panel.newNativeHistogramHeatmap('Write request size distribution in $cluster', 'bytes') + | ||||||||||||||
| panel.withDescription(||| | ||||||||||||||
| Shows distribution of write request sizes over time. | ||||||||||||||
| |||) + | ||||||||||||||
| panel.withPosition({ x: 0, y: 1 + y_offset, w: 12, h: 10 }) + | ||||||||||||||
| panel.withQueries([ | ||||||||||||||
| panel.newQuery( | ||||||||||||||
| expr= ||| | ||||||||||||||
| sum(increase(loki_write_request_size_bytes{%(instanceSelector)s}[$__rate_interval])) | ||||||||||||||
| or ignoring (le) | ||||||||||||||
| sum by (le) (increase(loki_write_request_size_bytes_bucket{%(instanceSelector)s}[$__rate_interval])) | ||||||||||||||
|
Comment on lines
+185
to
+187
|
||||||||||||||
| sum(increase(loki_write_request_size_bytes{%(instanceSelector)s}[$__rate_interval])) | |
| or ignoring (le) | |
| sum by (le) (increase(loki_write_request_size_bytes_bucket{%(instanceSelector)s}[$__rate_interval])) | |
| sum(increase(loki_write_request_size_bytes{%(instanceSelector)s, host=~"$url"}[$__rate_interval])) | |
| or ignoring (le) | |
| sum by (le) (increase(loki_write_request_size_bytes_bucket{%(instanceSelector)s, host=~"$url"}[$__rate_interval])) |
Copilot
AI
Mar 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The entry propagation latency queries don’t include the host=~"$url" selector. This makes the URL template variable ineffective for this panel and changes behavior vs the other loki.write charts which are scoped to the selected host. Add host=~"$url" to both the native and classic histogram selectors.
Uh oh!
There was an error while loading. Please reload this page.