Skip to content
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

Expose the current list of timekeys as a buffer metric #2343

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

stevenjm
Copy link
Contributor

What this PR does / why we need it:

This is useful for monitoring things like:

  • How old is the current oldest log message still in the buffer?
  • Equivalently, what is the maximum latency of the logging system as a whole? This might be interesting to track over time.
  • How new is the newest log message in the buffer? This might indicate a delay upstream of fluentd.

Docs Changes:

None of the existing buffer_* metrics appear to be documented, so there doesn't seem to be a sensible place to document this.

Release Note:

A new buffer_timekeys metric provides a list of timekeys currently in the buffer when time-based chunking is enabled.

This is useful for monitoring things like:

 - How old is the current oldest log message still in the buffer?

 - Equivalently, what is the maximum latency of the logging system
   as a whole? This might be interesting to track over time.

 - How new is the *newest* log message in the buffer? This might
   indicate a delay upstream of fluentd.

Signed-off-by: Steven McDonald <steven.mcdonald@usabilla.com>
@stevenjm
Copy link
Contributor Author

The initial test failure doesn't look related to my change. I've force pushed the same commit with an updated timestamp to re-run the CI.

@repeatedly repeatedly added v1 enhancement Feature request or improve operations labels Mar 24, 2019
@repeatedly
Copy link
Member

Looks good for me.

@cosmo0920 How about this?

@cosmo0920
Copy link
Contributor

Also looks good to me. 😄

@repeatedly repeatedly merged commit 3566901 into fluent:master Mar 25, 2019
@repeatedly
Copy link
Member

Thx!

stevenjm added a commit to usabilla/fluent-plugin-prometheus that referenced this pull request May 29, 2019
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.
stevenjm added a commit to usabilla/fluent-plugin-prometheus that referenced this pull request May 29, 2019
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 <steven.mcdonald@usabilla.com>
stevenjm added a commit to usabilla/fluent-plugin-prometheus that referenced this pull request Aug 7, 2019
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 <steven.mcdonald@usabilla.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations v1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants