Custom HPA metric names #5925
Labels
feature-request
All issues for new features that have not been committed to
needs-discussion
stale
All issues that are marked as stale due to inactivity
Proposal
Currently, KEDA creates HPA with auto-generated metric names (i.e
s0-prometheus
).Though we can customise a trigger name via
trigger.name
, metric name cannot be changed.Usually that's not a problem, but in our case it's a bit confusing.
We usually use multiple triggers for our apps.
To understand what causes scaling up, we used to plot these two prometheus metrics from hpa:
kube_horizontalpodautoscaler_status_target_metric
kube_horizontalpodautoscaler_spec_target_metric
or target & hpa spec values.
This is a convenient method to understand what's going on with HPA and what hpa.spec.metrics should be tuned.
However, as hpa.spec.metrics from KEDA are auto-generated, it's not as straightforward anymore.
Fortunately, KEDA has
keda_scaler_metrics_value
that shows the current value of a metric in a trigger.As we can specify
trigger.name
, we could use this metric, but there is no correspondingkeda_scaler_metrics_target
to compare with.So, from my perspective, there could be two possible solutions on how to add more visibility:
trigger.name
as prefix/postfix)keda_scaler_metrics_target
to get be able to compare it withkeda_scaler_metrics_value
How does that sound to you?
Use-Case
No response
Is this a feature you are interested in implementing yourself?
No
Anything else?
No response
The text was updated successfully, but these errors were encountered: