Skip to content

Conversation

@zalegrala
Copy link
Contributor

@zalegrala zalegrala commented Dec 4, 2025

What this PR does

Without this change, the ScaledObject created by enabling the autoscaling in the jsonnet expects to be able to query without a tenant. In environments which require a tenant for query, this becomes a challenge.

Here we include a config to allow the specification of a tenant, which when non-empty, will add the appropriate header during query to allow the Keda ScaledObject to query the needed metrics to make autoscaling decisions.

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]. If changelog entry is not needed, please add the changelog-not-needed label to the PR.
  • about-versioning.md updated with experimental features.

Note

Enables tenant-scoped Prometheus queries for KEDA autoscaling.

  • Adds _config.autoscaling_prometheus_tenant; when non-empty, sets customHeaders with X-Scope-OrgID on prometheus triggers in autoscaling.libsonnet
  • Updates CHANGELOG.md to note the enhancement

Written by Cursor Bugbot for commit f05861b. This will update automatically on new commits. Configure here.

@zalegrala zalegrala requested a review from a team as a code owner December 4, 2025 22:00
@colega colega enabled auto-merge (squash) January 7, 2026 15:30
@colega colega merged commit 8b53250 into grafana:main Jan 7, 2026
39 checks passed
@zalegrala zalegrala deleted the autoscalingTenant branch January 7, 2026 15:35
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