Skip to content

Added MetricLookback setting#9045

Merged
sspaink merged 5 commits intoinfluxdata:masterfrom
prydin:prydin-lookback
Apr 13, 2021
Merged

Added MetricLookback setting#9045
sspaink merged 5 commits intoinfluxdata:masterfrom
prydin:prydin-lookback

Conversation

@prydin
Copy link
Copy Markdown
Contributor

@prydin prydin commented Mar 24, 2021

Required for all PRs:

  • Updated associated README.md.
  • Wrote appropriate unit tests.

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_lookback setting 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.

@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Mar 24, 2021
Copy link
Copy Markdown
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

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

🤝 ✅ CLA has been signed. Thank you!

Copy link
Copy Markdown
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

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

@sspaink sspaink merged commit 5f26582 into influxdata:master 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants