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
New metric system (Prometheus data format) #4325
Conversation
No news file has been detected. Please write one, if applicable. |
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.
Reviewed until stats: add labeling capability
, inclusive. It looks good, I only had UT related comments.
I will check the last 2 commits soon.
8710521
to
6e6ce40
Compare
Build FAILURE |
e24141b
to
9c11d46
Compare
9c11d46
to
be7dcca
Compare
0ee8a78
to
95f2e77
Compare
Build FAILURE |
95f2e77
to
476a1d2
Compare
Build FAILURE |
187437d
to
49891a2
Compare
a89d3a3
to
c5f98a4
Compare
@kira-syslogng do stresstest |
Kira-stress-test: Build FAILURE |
@kira-syslogng do stresstest |
@HofiOne Can you help us fix the stress test? 15:53:49 # An exception occured: https://ci.syslog-ng.com/jenkins/job/kira-performance-test-disk-buffer/645/console |
Kira-stress-test: Build FAILURE |
Signed-off-by: László Várady <laszlo.varady@anno.io>
The CSV and log output are now considered legacy, stats-query can be used to display new "labeled" metrics. Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
This commit adds labels to stats cluster keys. These labels are similar to the labels in the Prometheus data model: https://prometheus.io/docs/concepts/data_model/ The (id, labels) pair identifies a new-style key. The order of the labels should not matter, and a label with an empty value should be equivalent to a label non-existing, but the current implementation is rudimentary and does not take these considerations into account. Signed-off-by: László Várady <laszlo.varady@anno.io>
To provide labels for individual counters within a cluster. Signed-off-by: László Várady <laszlo.varady@anno.io>
NOTE: Currently, it is not guaranteed that the message has reached its destination (the old name is misleading as well). Signed-off-by: László Várady <laszlo.varady@anno.io>
This helps creating legacy aliases for new metrics without adding a lot of boilerplate to the user side. Signed-off-by: László Várady <laszlo.varady@anno.io>
The new metric system requires metrics within the same cluster to have the same unit of measure. Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
sum(syslogng_output_events_total) wouldn't not be meaningful otherwise. Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
b5464f1
to
d33a548
Compare
@kira-syslogng do stresstest |
Kira-stress-test: Build SUCCESS |
Signed-off-by: László Várady <laszlo.varady@anno.io>
This PR adds a new metric naming scheme (labeling capability) to syslog-ng and a querying tool to produce Prometheus-like metric exports.
syslog-ng stats labels are similar to the labels in the Prometheus data model:
https://prometheus.io/docs/concepts/data_model/
The (id, labels) pair identifies a new-style key. The order of the labels
should not matter, and a label with an empty value should be equivalent to
a label non-existing, but the current implementation is rudimentary and
does not take these considerations into account.
The old (component, instance , id) keying is marked as
legacy
; any of the legacy functions should not be used when introducing new metrics.Questions:
stats-log
?Related PR: #4318