ソースを参照

Change regex for hdd errors to be more strict

Its possible for fluentd to match and report false positives with
current regex for hdd errors. The following log example line:
failed to deactivate service binding for container
 jenkins_slave02.1.tijvdstzxrs6gikbwrtu85078" error=
can be catched by the regex and report about the (false positive)
issue will be sent to prometheus. So the new regex must be more strict,
in order to avoid such alerts.

Change-Id: Ieb27ca39a32ad7bf6e1d0e88d564405e460a4f5f
Closes-Bug: PROD-17883
pull/144/head
Mateusz Matuszkowiak 6年前
コミット
03538a8530
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      linux/meta/fluentd.yml

+ 2
- 2
linux/meta/fluentd.yml ファイルの表示

@@ -99,11 +99,11 @@ agent:
result: metric.out_of_memory
- name: Payload
regexp: >-
'error.+[sv]d[a-z]+\d*'
'error.*\b[sv]d[a-z]{1,2}\d{0,3}\b.*'
result: metric.hdd_errors
- name: Payload
regexp: >-
'[sv]d[a-z]+\d*.+error'
'\b[sv]d[a-z]{1,2}\d{0,3}\b.*error'
result: metric.hdd_errors
push_to_metric:
tag: 'metric.**'

読み込み中…
キャンセル
保存