-
Notifications
You must be signed in to change notification settings - Fork 79
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
Support for buffer_timekeys metric #89
Comments
I'm 100% not sure about the feature. I guess each buffer chunks have created time and the buffer instance have a list of the time.
|
The timekey of a chunk is not its creation time, but it represents a time range for the log events it can contain. See https://docs.fluentd.org/configuration/buffer-section#time. I can see a use case for both the oldest and newest chunks. Monitoring the oldest one gives insight into delays within fluentd itself, while monitoring the newest can give insight into delays upstream of fluentd -- that is, if the newest message fluentd has is 5 minutes old, then whatever is sending logs to fluentd is delayed. I'm fine with only exposing these two metrics if you think that's best. I'll work on a PR for that if nobody else has any other views. |
A metric listing all timekeys in each buffer was added to fluentd in <fluent/fluentd#2343>. This exports the oldest and newest values in that list as Prometheus metrics. See discussion in <fluent#89> for context and rationale.
A metric listing all timekeys in each buffer was added to fluentd in <fluent/fluentd#2343>. This exports the oldest and newest values in that list as Prometheus metrics. See discussion in <fluent#89> for context and rationale. Signed-off-by: Steven McDonald <[email protected]>
I've raised #97 as a proposed implementation. |
A metric listing all timekeys in each buffer was added to fluentd in <fluent/fluentd#2343>. This exports the oldest and newest values in that list as Prometheus metrics. See discussion in <fluent#89> for context and rationale. Signed-off-by: Steven McDonald <[email protected]>
Implemented by #97. |
Hi,
I've recently had a buffer_timekeys metric added to fluentd, and I'd like to add support for this to the prometheus plugin.
However, this metric takes the form of a list and I'm not sure how best to represent this as a Prometheus metric. I can see a few options:
All of these are straightforward to implement, and I'm willing to raise a PR with an implementation. I'm just interested in first finding out what you think the best approach is.
The text was updated successfully, but these errors were encountered: