Skip to content

Commit

Permalink
Merge pull request #15291 from ggustafsson/main
Browse files Browse the repository at this point in the history
etcd-mixin: Limit etcdDatabaseHighFragmentationRatio to 100MB+
ahrtr authored Mar 22, 2023
2 parents 86fd5d6 + 1002346 commit 6b9c146
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contrib/mixin/mixin.libsonnet
Original file line number Diff line number Diff line change
@@ -241,7 +241,7 @@
{
alert: 'etcdDatabaseHighFragmentationRatio',
expr: |||
(last_over_time(etcd_mvcc_db_total_size_in_use_in_bytes[5m]) / last_over_time(etcd_mvcc_db_total_size_in_bytes[5m])) < 0.5
(last_over_time(etcd_mvcc_db_total_size_in_use_in_bytes[5m]) / last_over_time(etcd_mvcc_db_total_size_in_bytes[5m])) < 0.5 and etcd_mvcc_db_total_size_in_use_in_bytes > 104857600
||| % $._config,
'for': '10m',
labels: {
8 changes: 4 additions & 4 deletions contrib/mixin/test.yaml
Original file line number Diff line number Diff line change
@@ -143,13 +143,13 @@ tests:
- interval: 1m
input_series:
- series: 'etcd_mvcc_db_total_size_in_use_in_bytes{job="etcd",instance="10.10.10.0"}'
values: '30000+0x10'
values: '300000000+0x10'
- series: 'etcd_mvcc_db_total_size_in_bytes{job="etcd",instance="10.10.10.0"}'
values: '100000+0x10'
values: '1000000000+0x10'
- series: 'etcd_mvcc_db_total_size_in_use_in_bytes{job="etcd",instance="10.10.10.1"}'
values: '70000+0x10'
values: '700000000+0x10'
- series: 'etcd_mvcc_db_total_size_in_bytes{job="etcd",instance="10.10.10.1"}'
values: '100000+0x10'
values: '1000000000+0x10'
alert_rule_test:
- eval_time: 11m
alertname: etcdDatabaseHighFragmentationRatio

0 comments on commit 6b9c146

Please sign in to comment.