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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report metrics while idle #1451

Merged
merged 1 commit into from Mar 17, 2021
Merged

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Mar 16, 2021

馃摂 Description

Previously, VAST skipped metrics reports for the archive, importer, source, and sink components when they handled 0 events since the last metric report. This made it impossible to distinguish on metrics dashboards whether a component was offline or idle. Instead, VAST now properly reports 0 events while idle.

馃摑 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

馃幆 Review Instructions

File-by-file.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Mar 16, 2021
@dominiklohmann dominiklohmann requested a review from a team March 16, 2021 13:10
Previously, VAST skipped metrics reports for the archive, importer,
source, and sink components when they handled 0 events since the last
metric report. This made it impossible to distinguish on metrics
dashboards whether a component was offline or idle. Instead, VAST now
properly reports 0 events while idle.
Copy link
Member

@lava lava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

else
self->state->record(key + ".rate",
std::numeric_limits<decltype(rate)>::max(), ts);
if (value.events == 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on slack, this special case shouldnt be necessary but empirically we observed that we sometimes receive records with 0 events and 0 duration.

(just leaving this comment in case anyone wonders and looks at the PR in the future)

@dominiklohmann dominiklohmann merged commit 8dfe8b1 into master Mar 17, 2021
@dominiklohmann dominiklohmann deleted the story/ch23346/metrics-while-idle branch March 17, 2021 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
3 participants