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

Refactor Loki scaler #6264

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Refactor Loki scaler #6264

merged 1 commit into from
Oct 23, 2024

Conversation

rickbrouwer
Copy link
Contributor

@rickbrouwer rickbrouwer commented Oct 23, 2024

  • Refactor the scaler to match the new metadata guidelines.
  • Removed some prometheus const because of error in Static Checks:

pkg/scalers/prometheus_scaler.go:29:2: const promServerAddress is unused (unused) pkg/scalers/prometheus_scaler.go:30:2: const promQuery is unused (unused) pkg/scalers/prometheus_scaler.go:31:2: const promQueryParameters is unused (unused) pkg/scalers/prometheus_scaler.go:32:2: const promThreshold is unused (unused) pkg/scalers/prometheus_scaler.go:33:2: const promActivationThreshold is unused (unused) pkg/scalers/prometheus_scaler.go:34:2: const promNamespace is unused (unused) pkg/scalers/prometheus_scaler.go:35:2: const promCustomHeaders is unused (unused) pkg/scalers/prometheus_scaler.go:36:2: const ignoreNullValues is unused (unused) pkg/scalers/prometheus_scaler.go:37:2: const unsafeSsl is unused (unused)

Checklist

Related: 5797

@rickbrouwer rickbrouwer requested a review from a team as a code owner October 23, 2024 12:33
@rickbrouwer rickbrouwer marked this pull request as draft October 23, 2024 12:33
@rickbrouwer rickbrouwer changed the title Refactor Loki Scaler Refactor Loki scaler Oct 23, 2024
@rickbrouwer rickbrouwer marked this pull request as ready for review October 23, 2024 13:00
Signed-off-by: rickbrouwer <[email protected]>
@wozniakjan
Copy link
Member

wozniakjan commented Oct 23, 2024

/run-e2e loki
Update: You can check the progress here

Copy link
Member

@wozniakjan wozniakjan left a comment

Choose a reason for hiding this comment

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

lgtm, thank you!

@zroubalik zroubalik merged commit 2cf3c4c into kedacore:main Oct 23, 2024
20 checks passed
@rickbrouwer rickbrouwer deleted the loki branch October 24, 2024 05:53
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.

3 participants