forked from grafana/loki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support dashboards for SSD mode (grafana#6540)
* Support dashboards for SSD mode * Fix issues * Add compiled mixins * Flip $.config.ssd on if conditions * Use prefix matcher for ssd * Add compiled SSD mixin * Update loki-mixin-check to check ssd compiled mixin * Checkout compiled ssd mixin
- Loading branch information
1 parent
b930104
commit 7314d95
Showing
32 changed files
with
14,555 additions
and
1,663 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
groups: | ||
- name: loki_alerts | ||
rules: | ||
- alert: LokiRequestErrors | ||
annotations: | ||
message: | | ||
{{ $labels.job }} {{ $labels.route }} is experiencing {{ printf "%.2f" $value }}% errors. | ||
expr: | | ||
100 * sum(rate(loki_request_duration_seconds_count{status_code=~"5.."}[1m])) by (namespace, job, route) | ||
/ | ||
sum(rate(loki_request_duration_seconds_count[1m])) by (namespace, job, route) | ||
> 10 | ||
for: 15m | ||
labels: | ||
severity: critical | ||
- alert: LokiRequestPanics | ||
annotations: | ||
message: | | ||
{{ $labels.job }} is experiencing {{ printf "%.2f" $value }}% increase of panics. | ||
expr: | | ||
sum(increase(loki_panic_total[10m])) by (namespace, job) > 0 | ||
labels: | ||
severity: critical | ||
- alert: LokiRequestLatency | ||
annotations: | ||
message: | | ||
{{ $labels.job }} {{ $labels.route }} is experiencing {{ printf "%.2f" $value }}s 99th percentile latency. | ||
expr: | | ||
namespace_job_route:loki_request_duration_seconds:99quantile{route!~"(?i).*tail.*"} > 1 | ||
for: 15m | ||
labels: | ||
severity: critical | ||
- alert: LokiTooManyCompactorsRunning | ||
annotations: | ||
message: | | ||
{{ $labels.namespace }} has had {{ printf "%.0f" $value }} compactors running for more than 5m. Only one compactor should run at a time. | ||
expr: | | ||
sum(loki_boltdb_shipper_compactor_running) by (namespace) > 1 | ||
for: 5m | ||
labels: | ||
severity: warning |
Oops, something went wrong.