Custom source and output metrics
When using syslog-ng as the log aggregator, you can create custom log metrics for sources and outputs, based on the metrics-probe() parser.
Available in Logging operator version 4.5 and later.
Source metrics
Custom source metrics are added to the messages after the JSON parsing is completed. The following example adds the key called custom_input
:
This corresponds to the following syslog-ng configuration:
And results in the following metrics:
Output metrics
Output metrics are added before the log reaches the destination, and is decorated with the output metadata like: name
, namespace
, and scope
. scope
stores whether the output is a local or global one. For example:
This corresponds to the following syslog-ng configuration:
And results in the following metrics:
Last modified September 24, 2024: Merge pull request #256 from kube-logging/kubecon-banner (ddb5873)