tee plugin: reporting tee_send execution count per receiver#853
tee plugin: reporting tee_send execution count per receiver#853strzebon wants to merge 1 commit into
Conversation
88d8ccf to
4eef250
Compare
paololucente
left a comment
There was a problem hiding this comment.
Hi Witold ( @strzebon ), thanks very much for this contribution.
May i ask you a couple of related questions:
-
Can you mention a use-case for this feature? I see its usefulness but was curious how you are using it, whether manually checking the data or a 3rd party tool checks the file;
-
Have you thought of sending this output out to the log, instead that to a specific file? Especially going through syslog, a number of options and features become available for free (including file rotation, for example). A reader could still easily filter / grep through the content; maybe in that case a JSON output (or anything self-describing) would be more favorable than CSV that needs the title to be parsed first.
Paolo
|
Our idea was to keep it as similar to the print plugin as possible to keep the things generic for whoever parses the CVS anyhow :-)
|
|
Hi Paolo @paololucente, ping :-) Do you think we could have it merged? |
This Pull Request introduces monitoring of how many times a message has been sent to a specific receiver by tee plugin. The counters are periodically exported to .csv file. Example structure of the file:
Two new config properties were added:
tee_counters_refresh_time- time interval in seconds at which the counters are reported to file and reset (optional, default 60s)tee_counters_path- file where counters are reported to (if not provided, counters are not reported)