From ba7cf10c47fcd250d8ca0d994ebf75fd9ebd9df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Mon, 24 Apr 2023 12:25:02 +0200 Subject: [PATCH] news: add entries for #4440 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: László Várady --- news/feature-4440-2.md | 4 ++++ news/feature-4440.md | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 news/feature-4440-2.md create mode 100644 news/feature-4440.md diff --git a/news/feature-4440-2.md b/news/feature-4440-2.md new file mode 100644 index 00000000000..21f4fff2f18 --- /dev/null +++ b/news/feature-4440-2.md @@ -0,0 +1,4 @@ +The new `$RAWMSG_SIZE` hard macro can be used to query the original size of the +incoming message in bytes. + +This information may not be available for all source drivers. diff --git a/news/feature-4440.md b/news/feature-4440.md new file mode 100644 index 00000000000..6c1dc644278 --- /dev/null +++ b/news/feature-4440.md @@ -0,0 +1,9 @@ +`network()`, `syslog()`, `file()`, `http()`: new byte-based metrics for incoming/outgoing events + +These metrics show the serialized message sizes (protocol-specific header/framing/etc. length is not included). + +``` +syslogng_input_event_bytes_total{id="s_network#0",driver_instance="tcp,127.0.0.1"} 1925529600 +syslogng_output_event_bytes_total{id="d_network#0",driver_instance="tcp,127.0.0.1:5555"} 565215232 +syslogng_output_event_bytes_total{id="d_http#0",driver_instance="http,http://127.0.0.1:8080/"} 1024 +```