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

test(inputs.vault): Avoid hard-compare of metrics #14221

Closed
wants to merge 1 commit into from

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Oct 31, 2023

During the integration test we spin up a real vault instance in a docker container and hit the metrics endpoint. However, the number of metrics reported by this endpoint change depending on how long the instance has been up.

For example, the longer then container is up additional metrics about the go runtime start to show up.

This means doing a hard-comparison of the metrics we expect is not a good idea and instead we should ensure that we collected without error. We already have unit tests that validate we can correctly parse the various types of metrics.

During the integration test we spin up a real vault instance in a docker
container and hit the metrics endpoint. However, the number of metrics
reported by this endpoint change depending on how long the instance has
been up.

For example, the longer then container is up additional metrics about
the go runtime start to show up.

This means doing a hard-comparison of the metrics we expect is not a
good idea and instead we should ensure that we collected without error.
We already have unit tests that validate we can correctly parse the
various types of metrics.
@telegraf-tiger telegraf-tiger bot added plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins test labels Oct 31, 2023
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Oct 31, 2023
@powersj powersj marked this pull request as ready for review October 31, 2023 15:12
@telegraf-tiger
Copy link
Contributor

@powersj
Copy link
Contributor Author

powersj commented Oct 31, 2023

Closing in favor of #14222

@powersj powersj closed this Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants