[#239] Added test log counter metrics #239

Merged
abereziny merged 1 commit from i.niyazov/frostfs-testcases:add-test-log-counter-metrics into master 2024-06-04 09:22:04 +00:00
Member

Signed-off-by: Ilyas Niyazov i.niyazov@yadro.com

Signed-off-by: Ilyas Niyazov i.niyazov@yadro.com
i.niyazov added 1 commit 2024-05-30 10:33:08 +00:00
[#239] Added test log counter metrics
Some checks reported warnings
DCO check / Commits Check (pull_request) Has been cancelled
0463d34599
abereziny approved these changes 2024-05-30 14:49:19 +00:00
abereziny requested review from qa-committers 2024-05-30 14:49:28 +00:00
abereziny requested review from qa-developers 2024-05-30 14:49:29 +00:00
abereziny approved these changes 2024-05-31 10:36:19 +00:00
abereziny requested review from qa-committers 2024-05-31 10:37:01 +00:00
d.zayakin approved these changes 2024-05-31 12:43:13 +00:00
abereziny reviewed 2024-06-04 09:21:09 +00:00
@ -0,0 +48,4 @@
def get_count_logs_by_level(shell: Shell, log_level: str, after_time: str):
count_logs = 0
try:
logs = shell.exec(f"journalctl -u frostfs-storage --grep='{log_level}' --since '{after_time}'")
Member
This may not work on DevEnv environments. For logs we use https://git.frostfs.info/TrueCloudLab/frostfs-testlib/src/branch/master/src/frostfs_testlib/hosting/interfaces.py#L293
abereziny merged commit 08aa61ed79 into master 2024-06-04 09:22:03 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-testcases#239
No description provided.