Added MetricLookback setting#9045
Merged
sspaink merged 5 commits intoinfluxdata:masterfrom Apr 13, 2021
Merged
Conversation
ivorybilled
approved these changes
Mar 24, 2021
sspaink
approved these changes
Apr 13, 2021
reimda
pushed a commit
that referenced
this pull request
Apr 28, 2021
* Added MetricLookback setting * Fixed go mod issue (cherry picked from commit 5f26582)
arstercz
pushed a commit
to arstercz/telegraf
that referenced
this pull request
Mar 5, 2023
* Added MetricLookback setting * Fixed go mod issue (cherry picked from commit 5f26582)
arstercz
pushed a commit
to arstercz/telegraf
that referenced
this pull request
Aug 28, 2025
* Added MetricLookback setting * Fixed go mod issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Required for all PRs:
Resolved issues
#8316
Description
In versions 6.7 and 7.0 of vCenter, certain metrics can be have significant reporting delays in some cases. By default, the vSphere plugin looks three collection cycles back for delayed metrics. Since non-realtime metrics are collected at a 5 minute cycle, this translates to 15 minutes. However, we've seen metrics delayed as much as 40 minutes, so looking back only 15 minutes caused all the samples to be missed.
To mitigate this, we made the lookback period configurable. The
metric_lookbacksetting determines how many vCenter collection periods (5 minutes) to look back. We've tested setting it to 8, which allowed us to collect all metrics.Since a very long lookback could cause performance issues, this setting should be used with caution. Currently, we believe that, if you are experiencing issues with missing metrics, setting it to 8 should be sufficient.