Skip to content

Conversation

@sysadmind
Copy link
Contributor

  • Remove up, totalScrapes, and jsonParseFailures metrics. They are not useful.
  • Move fixtures to individual files
  • Base tests on the metric output for better testing the expected output instead of the internals.

- Remove up, totalScrapes, and jsonParseFailures metrics. They are not useful.
- Move fixtures to individual files
- Base tests on the metric output for better testing the expected output instead of the internals.

Signed-off-by: Joe Adams <github@joeadams.io>
@sysadmind sysadmind added this to the Test Cleanup milestone Nov 15, 2023
@sysadmind sysadmind requested a review from SuperQ November 15, 2023 02:31
Signed-off-by: Joe Adams <github@joeadams.io>
Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

If Collect() doesn't return a 500 error on failure, we probably want to keep the up metric.

Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Oh, I see, this is a subsystem up. That's not useful.

@SuperQ SuperQ merged commit 8393bfc into prometheus-community:master Dec 2, 2023
@sysadmind sysadmind deleted the refactor-tests-cluster-health branch December 21, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants