New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cfg: add named logpaths with counters #4344
Conversation
No news file has been detected. Please write one, if applicable. |
8a90734
to
3399d17
Compare
It makes a neater output IMO. Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
c017eeb
to
4044b4e
Compare
Updated the E2E tests according to what we agreed on. |
949234f
to
2d374ea
Compare
Build FAILURE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I would like to look into the commit [cfg-tree: inject metrics-pipes to named log paths](https://github.com/syslog-ng/syslog-ng/pull/4344/commits/e572f54b4eaf06b82d2fe8a9a94c5cbac6bbb88d)
more closely, I'll get back with an approve or another review note in a few hours.
@kira-syslogng do stresstest |
Kira-stress-test: Build FAILURE |
@HofiOne Kira is broken due to an internal Java change. Can you check it, please? |
2d374ea
to
9719cf0
Compare
Build FAILURE |
done, sorry for the inconvenience |
@kira-syslogng retest this please |
@kira-syslogng do stresstest @HofiOne Thanks |
LGTM otherwise. |
Kira-stress-test: Build SUCCESS |
self->log_path_name = g_strdup(log_path_name); | ||
|
||
log_pipe_add_info(&self->super, "metrics-pipe"); | ||
log_pipe_add_info(&self->super, self->log_path_name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should start specifying some kind of "type" qualifier to info, so that we could use the same mechanism for the debugger, but in a way that allows programmatic use.
Like use a key-value pair here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more like a where should we go next kind of comment, not to be addressed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, we could add more detailed info for the LogPipe
s. Let's gather the use cases and make the LogPipe
info functionality smarter.
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
32851fe
to
55d30dc
Compare
This is my last comment, I promise. LGTM otherwise. |
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
The ingress counter is incremented once, when its queue() method is called, the egress counter is increased once, when the message gets matched by at least one of the following pipes. Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
Signed-off-by: Attila Szakacs <szakacs.attila96@gmail.com>
55d30dc
to
e2c0fb1
Compare
E.g.:
Each named log path counts its ingress and egress messages:
Note that the egress statistics only count the messages which have been have not been filtered out from the related
log path, it does care about whether there are any destinations in it or that any destination delivers or drops the message.
Depends on #4325 and #4339.
Signed-off-by: Attila Szakacs szakacs.attila96@gmail.com