-
Notifications
You must be signed in to change notification settings - Fork 183
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
Add missing metrics to fluentd #718
Conversation
I got:
I tested it on empty vagrant environment Regarding that, I'm going to disable those metrics by default |
The increase makes sense as I assume it is by plugin ID, which adds a good amount of cardinality to the data. |
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.
A few comments, other than that plus adding filtering this looks good.
{{- end }} | ||
@include buffer.output.conf | ||
</buffer> | ||
@type copy |
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.
Why did we switch to copy
?
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.
type counter | ||
desc The total number of incoming records | ||
<labels> | ||
tag ${tag} |
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 what leads to very high cardinality in the case of logs. Each tag is the full file path for the container log, and it includes the container and pod ID, so it can drastically increase the metrics cardinality here.
879cb67
to
d9bb74f
Compare
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.
LGTM
9d1eecd
to
ebfbc60
Compare
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.
👍
Description
Adds
fluentd_input_status_num_records_total
andfluentd_output_status_num_records_total
metricsFixes #717
Testing performed