telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

feat(inputs.vsphere): Adding vSAN extension to vSphere plugin

Open gangadharaswamy opened this issue 2 years ago • 3 comments

Required for all PRs

  • [x] Updated associated README.md.
  • [x] Wrote appropriate unit tests.
  • [x] Pull request title or commits are in conventional commit format

resolves #5966

This resumes the old PR #5970.

gangadharaswamy avatar Oct 06 '22 18:10 gangadharaswamy

@srebhan Could you please review this PR?

gangadharaswamy avatar Oct 19 '22 05:10 gangadharaswamy

@srebhan can you please have a look into this as @gangadharaswamy has fixed the review comments?

yogeshprasad avatar Jan 04 '23 06:01 yogeshprasad

@gangadharaswamy can please run make docs and fix the CI/build errors!?

srebhan avatar Jan 31 '23 09:01 srebhan

Hi @gangadharaswamy,

For the tests, you need to add the new package to the list of our dependencies:

diff --git a/docs/LICENSE_OF_DEPENDENCIES.md b/docs/LICENSE_OF_DEPENDENCIES.md
index 030430695..2a5d22095 100644
--- a/docs/LICENSE_OF_DEPENDENCIES.md
+++ b/docs/LICENSE_OF_DEPENDENCIES.md
@@ -78,6 +78,7 @@ following works:
 - github.com/awslabs/kinesis-aggregation/go [Apache License 2.0](https://github.com/awslabs/kinesis-aggregation/blob/master/LICENSE.txt)
 - github.com/benbjohnson/clock [MIT License](https://github.com/benbjohnson/clock/blob/master/LICENSE)
 - github.com/beorn7/perks [MIT License](https://github.com/beorn7/perks/blob/master/LICENSE)
+- github.com/blang/semver [MIT License](https://github.com/blang/semver/blob/master/LICENSE)
 - github.com/blues/jsonata-go [MIT License](https://github.com/blues/jsonata-go/blob/main/LICENSE)
 - github.com/bmatcuk/doublestar [MIT License](https://github.com/bmatcuk/doublestar/blob/master/LICENSE)
 - github.com/caio/go-tdigest [MIT License](https://github.com/caio/go-tdigest/blob/master/LICENSE)

Additionally it looks like you have a failing lint result, as the queryPerformance function is always returning nil:

  Error: (*Endpoint).queryPerformance - result 0 (error) is always nil (unparam)

Thanks!

powersj avatar Feb 02 '23 00:02 powersj

Or even better use: github.com/coreos/go-semver...

srebhan avatar Feb 02 '23 13:02 srebhan

Hi @gangadharaswamy,

Looks like your latest push is failing the tests. Could you look at fixing those up?

Thanks!

powersj avatar Feb 15 '23 20:02 powersj

@powersj Thank you! Will look into the issues.

gangadharaswamy avatar Feb 22 '23 02:02 gangadharaswamy

@gangadharaswamy Can you please alaborate? Either the documentation is wrong, or the sample config is wrong IMHO.

Hipska avatar Feb 27 '23 08:02 Hipska

The vsan_metric_include = [] or vsan_metric_include = [<list_of_metrics>] and vsan_metric_exclude = [ ] commented or uncommented collects vSAN metrics. vsan_metric_exclude = [ "*" ] excludes all vSAN metrics.

gangadharaswamy avatar Mar 03 '23 09:03 gangadharaswamy

@srebhan Could you please review the PR?

gangadharaswamy avatar Mar 27 '23 17:03 gangadharaswamy

@srebhan What's the next step? Is there anything that needs to be done to move forward?

gangadharaswamy avatar Apr 04 '23 14:04 gangadharaswamy

@srebhan What's the next step? Is there anything that needs to be done to move forward?

Sven and I just went through all the outstanding PRs to see what we need to do. For this PR he needs to get you a review. nothing needed from your side.

powersj avatar Apr 04 '23 15:04 powersj

Hi @srebhan , @powersj, To which Telegraf release this PR will be considered? Will it be part of alternative weekly releases or quarterly releases?

gangadharaswamy avatar Apr 20 '23 07:04 gangadharaswamy

There is a bugfix release every 3 weeks and a quarterly feature releas. Since this is not a bug fix , but a feature, it will be on the next feature release, which is planned at June 12th.

Hipska avatar Apr 20 '23 07:04 Hipska