Skip to content

Conversation

@jordan-simonovski
Copy link
Contributor

Added some more autoscaling configurations to Tempo components:

  • Metrics Generator
    • Added a HPA to the metrics generator
    • Added a KEDA scaled object to support custom metric scaling
  • Ingester
    • Added a KEDA scaled object to support custom metric scaling
  • Distributor
    • Added a KEDA scaled object to support custom metric scaling
  • Compactor
    • Updated the query example

Happy to discuss further. We've been running the metrics generator HPA in production without any issues.

The context behind adding KEDA support to the ingester and distributor is to allow for more flexible scaling on external metrics such as pipeline queue backlogs, spikes in ingestion volume, etc.

@jon-rei
Copy link

jon-rei commented Oct 9, 2025

I'm currently optimising our Tempo setup and have just added KEDA to the Compactor. We are also searching for a solution to automatically scale the metrics generator. Therefore, the PR would be a great help.

I do have one remark, though: do you think it would make sense to allow the advanced configuration to be configured in the ScaledObject? This would also allow HPA behaviours to be set.

@jordan-simonovski
Copy link
Contributor Author

I'm currently optimising our Tempo setup and have just added KEDA to the Compactor. We are also searching for a solution to automatically scale the metrics generator. Therefore, the PR would be a great help.

I do have one remark, though: do you think it would make sense to allow the advanced configuration to be configured in the ScaledObject? This would also allow HPA behaviours to be set.

I'm definitely open to this if the maintainers are happy with it as an additional config.

# -- Init containers for the metrics generator pod
initContainers: []
autoscaling:
# -- Enable autoscaling for the metrics-generator. WARNING: Autoscaling metrics-generators can result in lost data. Only do this if you know what you're doing.

Choose a reason for hiding this comment

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

WARNING: Autoscaling metrics-generators can result in lost data.

Where can I find more info about this? I haven't been able to find any documentation about autoscaling the metrics-generator.

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