Skip to content

Conversation

@sysadmind
Copy link
Contributor

To prepare for the conversion of the snapshot collector to the collector interface, update the tests to test the metric output.

  • Remove the up, totalScrapes, and jsonParseFailures metrics. These won't be used after conversion to the collector interface.
  • Fix Describe() including the repositoryMetrics to pass tests
  • Break test fixtures out to individual files

To prepare for the conversion of the snapshot collector to the collector interface, update the tests to test the metric output.

- Remove the up, totalScrapes, and jsonParseFailures metrics. These won't be used after conversion to the collector interface.
- Fix `Describe()` including the repositoryMetrics to pass tests
- Break test fixtures out to individual files

Signed-off-by: Joe Adams <github@joeadams.io>
@sysadmind sysadmind requested a review from SuperQ October 10, 2023 02:53
@sysadmind sysadmind merged commit cf37e02 into prometheus-community:master Oct 11, 2023
@sysadmind sysadmind deleted the snapshot-tests branch October 15, 2023 18:36
@sysadmind sysadmind added this to the Test Cleanup milestone Oct 15, 2023
jaimeyh pushed a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
To prepare for the conversion of the snapshot collector to the collector interface, update the tests to test the metric output.

- Remove the up, totalScrapes, and jsonParseFailures metrics. These won't be used after conversion to the collector interface.
- Fix `Describe()` including the repositoryMetrics to pass tests
- Break test fixtures out to individual files

Signed-off-by: Joe Adams <github@joeadams.io>
jaimeyh added a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
jaimeyh added a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
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