-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Create e2e tests for all exposed Prometheus metrics #4127
Comments
hey, is this issue already worked on ? if not then I want to give a try... as I'm new in open source. |
Hey @Parthiba-Hazra |
Hey @JorTurFer thank you for the response . |
@Parthiba-Hazra there's a doc around e2e tests: https://github.com/kedacore/keda/tree/main/tests#readme Existing Prometheus metrics related tests are here: In the issue description you can see missing tests, so you need to create test cases for them. |
got it 👍 |
Hey @zroubalik I need some help -- |
@Parthiba-Hazra yeah, check that Prometheus metrics show the error. |
hey @zroubalik I created test cases that asserts that applying wrong scaled object increase the counter-value of keda_scaler_errors , keda_scaler_error_totals and keda_scaled_object_errors metrics from 0 to any positive number .. is there anything that I should check also ? |
Proposal
At the moment KEDA exposes following metrics:
keda_scaler_active
keda_scaler_metrics_value
keda_scaler_metrics_latency
keda_scaler_errors
keda_scaler_error_totals
keda_scaled_object_errors
keda_resource_totals
keda_trigger_totals
We should cover all of these metrics by e2e tests:
Exisiting Prometheus Metrics e2e tests: https://github.com/kedacore/keda/blob/main/tests/internals/prometheus_metrics/prometheus_metrics_test.go
Docs: https://keda.sh/docs/2.10/operate/prometheus/
The text was updated successfully, but these errors were encountered: