alerts: sync alert expression for DiskRunsOutOfSpaceIn3Days with dashboard (#1436)

This commit is contained in:
Roman Khavronenko 2021-07-07 10:31:09 +03:00 committed by GitHub
parent a7694092b8
commit 2f54559c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,16 +33,16 @@ groups:
rules: rules:
- alert: DiskRunsOutOfSpaceIn3Days - alert: DiskRunsOutOfSpaceIn3Days
expr: | expr: |
vm_free_disk_space_bytes / ignoring(path) ( vm_free_disk_space_bytes / ignoring(path)
( (
sum(rate(vm_rows_added_to_storage_total[1d])) - (
sum(rate(vm_deduplicated_samples_total[1d])) without(type) rate(vm_rows_added_to_storage_total[1d]) -
) ignoring(type) rate(vm_deduplicated_samples_total{type="merge"}[1d])
* )
( * scalar(
sum(vm_data_size_bytes{type!="indexdb"}) / sum(vm_data_size_bytes{type!="indexdb"}) /
sum(vm_rows{type!="indexdb"}) sum(vm_rows{type!="indexdb"})
) )
) < 3 * 24 * 3600 ) < 3 * 24 * 3600
for: 30m for: 30m
labels: labels: