diff options
author | Viliam Luc <vluc@cisco.com> | 2022-03-18 14:02:44 +0100 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2022-03-31 08:50:23 +0000 |
commit | e2b220824914769fd9f4b245038cc31fb8425b18 (patch) | |
tree | 33a096dd9b6c9ecd0f85d10be11d835388f133a7 /resources/templates/telemetry | |
parent | 58a35815c1b68fc5b9590aad0d5942b0508a63d4 (diff) |
telemetry: error message handling
Change-Id: I3bc07072337d45ff24acfbb75cced3b0b052b6f5
Signed-off-by: Viliam Luc <vluc@cisco.com>
Diffstat (limited to 'resources/templates/telemetry')
-rw-r--r-- | resources/templates/telemetry/bpf_runtime.yaml | 15 | ||||
-rw-r--r-- | resources/templates/telemetry/vpp_clear_stats.yaml | 15 | ||||
-rw-r--r-- | resources/templates/telemetry/vpp_runtime.yaml | 15 | ||||
-rw-r--r-- | resources/templates/telemetry/vpp_show_stats.yaml | 15 | ||||
-rw-r--r-- | resources/templates/telemetry/vpp_test_teardown.yaml | 15 |
5 files changed, 55 insertions, 20 deletions
diff --git a/resources/templates/telemetry/bpf_runtime.yaml b/resources/templates/telemetry/bpf_runtime.yaml index 88ad7eb64f..bb9d1c70ae 100644 --- a/resources/templates/telemetry/bpf_runtime.yaml +++ b/resources/templates/telemetry/bpf_runtime.yaml @@ -2,16 +2,23 @@ logging: version: 1 formatters: - console: + console_stdout: format: '%(asctime)s - %(name)s - %(message)s' + console_stderr: + format: '%(message)s' prom: format: '%(message)s' handlers: - console: + console_stdout: class: logging.StreamHandler level: INFO - formatter: console + formatter: console_stdout stream: ext://sys.stdout + console_stderr: + class: logging.StreamHandler + level: ERROR + formatter: console_stderr + stream: ext://sys.stderr prom: class: logging.handlers.RotatingFileHandler level: INFO @@ -25,7 +32,7 @@ logging: propagate: False root: level: INFO - handlers: [console] + handlers: [console_stdout, console_stderr] scheduler: duration: 1 programs: diff --git a/resources/templates/telemetry/vpp_clear_stats.yaml b/resources/templates/telemetry/vpp_clear_stats.yaml index aad916c805..2188588827 100644 --- a/resources/templates/telemetry/vpp_clear_stats.yaml +++ b/resources/templates/telemetry/vpp_clear_stats.yaml @@ -2,16 +2,23 @@ logging: version: 1 formatters: - console: + console_stdout: format: '%(asctime)s - %(name)s - %(message)s' + console_stderr: + format: '%(message)s' prom: format: '%(message)s' handlers: - console: + console_stdout: class: logging.StreamHandler level: INFO - formatter: console + formatter: console_stdout stream: ext://sys.stdout + console_stderr: + class: logging.StreamHandler + level: ERROR + formatter: console_stderr + stream: ext://sys.stderr prom: class: logging.handlers.RotatingFileHandler level: INFO @@ -25,7 +32,7 @@ logging: propagate: False root: level: INFO - handlers: [console] + handlers: [console_stdout, console_stderr] scheduler: duration: 1 programs: diff --git a/resources/templates/telemetry/vpp_runtime.yaml b/resources/templates/telemetry/vpp_runtime.yaml index a0309a3fb5..b9a2368981 100644 --- a/resources/templates/telemetry/vpp_runtime.yaml +++ b/resources/templates/telemetry/vpp_runtime.yaml @@ -2,16 +2,23 @@ logging: version: 1 formatters: - console: + console_stdout: format: '%(asctime)s - %(name)s - %(message)s' + console_stderr: + format: '%(message)s' prom: format: '%(message)s' handlers: - console: + console_stdout: class: logging.StreamHandler level: INFO - formatter: console + formatter: console_stdout stream: ext://sys.stdout + console_stderr: + class: logging.StreamHandler + level: ERROR + formatter: console_stderr + stream: ext://sys.stderr prom: class: logging.handlers.RotatingFileHandler level: INFO @@ -25,7 +32,7 @@ logging: propagate: False root: level: INFO - handlers: [console] + handlers: [console_stdout, console_stderr] scheduler: duration: 1 programs: diff --git a/resources/templates/telemetry/vpp_show_stats.yaml b/resources/templates/telemetry/vpp_show_stats.yaml index 06fc229557..dc900e6386 100644 --- a/resources/templates/telemetry/vpp_show_stats.yaml +++ b/resources/templates/telemetry/vpp_show_stats.yaml @@ -2,16 +2,23 @@ logging: version: 1 formatters: - console: + console_stdout: format: '%(asctime)s - %(name)s - %(message)s' + console_stderr: + format: '%(message)s' prom: format: '%(message)s' handlers: - console: + console_stdout: class: logging.StreamHandler level: INFO - formatter: console + formatter: console_stdout stream: ext://sys.stdout + console_stderr: + class: logging.StreamHandler + level: ERROR + formatter: console_stderr + stream: ext://sys.stderr prom: class: logging.handlers.RotatingFileHandler level: INFO @@ -25,7 +32,7 @@ logging: propagate: False root: level: INFO - handlers: [console] + handlers: [console_stdout, console_stderr] scheduler: duration: 1 programs: diff --git a/resources/templates/telemetry/vpp_test_teardown.yaml b/resources/templates/telemetry/vpp_test_teardown.yaml index 86567afb75..37618bb852 100644 --- a/resources/templates/telemetry/vpp_test_teardown.yaml +++ b/resources/templates/telemetry/vpp_test_teardown.yaml @@ -2,16 +2,23 @@ logging: version: 1 formatters: - console: + console_stdout: format: '%(asctime)s - %(name)s - %(message)s' + console_stderr: + format: '%(message)s' prom: format: '%(message)s' handlers: - console: + console_stdout: class: logging.StreamHandler level: INFO - formatter: console + formatter: console_stdout stream: ext://sys.stdout + console_stderr: + class: logging.StreamHandler + level: ERROR + formatter: console_stderr + stream: ext://sys.stderr prom: class: logging.handlers.RotatingFileHandler level: INFO @@ -25,7 +32,7 @@ logging: propagate: False root: level: INFO - handlers: [console] + handlers: [console_stdout, console_stderr] scheduler: duration: 0 programs: |