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

[IMPROVEMENT] Test metrics validity when testing Exporter #526

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

kfdm
Copy link
Collaborator

@kfdm kfdm commented Jul 3, 2024

When using the 'test' button for an exporter, we previously only checked the status code and assumed things were good. It is very possible for an incorrect endpoint to be registered, so we should ensure that the registered endpoint produces correct Prometheus metrics.

Right now, we will return a somewhat developer like output, but I expect to make the output more user friendly as we cleanup some of our internal test URLs.

test exporter

When using the 'test' button for an exporter, we previously *only*
checked the status code and assumed things were good. It is very possible
for an incorrect endpoint to be registered, so we should ensure that the
registered endpoint produces correct Prometheus metrics.

Right now, we will return a somewhat *developer* like output, but I
expect to make the output more user friendly as we cleanup some of our
internal test URLs.
@kfdm kfdm requested a review from a team as a code owner July 3, 2024 07:12
Copy link
Contributor

@vincent-olivert-riera vincent-olivert-riera left a comment

Choose a reason for hiding this comment

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

Code changes look good to me.
Tested in my local env and working fine.

Approved 👍

@kfdm kfdm merged commit 9d31e9d into line:master Jul 3, 2024
5 checks passed
@kfdm kfdm deleted the expoter-metrics-test branch July 3, 2024 07:42
@line line deleted a comment from vincent-olivert-riera Jul 3, 2024
@line line deleted a comment from vincent-olivert-riera Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants