a738c39328
Why I did it Current regex not able to capture logs, modify regex to capture syslog messages Work item tracking Microsoft ADO (number only): 13366345 How I did it Code change How to verify it sonic-mgmt test case
18 lines
581 B
JSON
18 lines
581 B
JSON
[
|
|
{
|
|
"tag": "disk-usage",
|
|
"regex": ".([a-zA-Z0-9-_]*). space usage (\\d+\\.\\d+)% matches resource limit .space usage.(\\d+\\.\\d+)%.",
|
|
"params": [ "fs", "usage", "limit" ]
|
|
},
|
|
{
|
|
"tag": "memory-usage",
|
|
"regex": ".*mem usage of (\\d+\\.\\d+)% matches resource limit .mem usage>(\\d+\\.\\d+)%.",
|
|
"params": [ "usage", "limit" ]
|
|
},
|
|
{
|
|
"tag": "cpu-usage",
|
|
"regex": ".*cpu user usage of (\\d+\\.\\d+)% matches resource limit .cpu user usage>(\\d+\\.\\d+)%.",
|
|
"params": [ "usage", "limit" ]
|
|
}
|
|
]
|