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

Record metrics for scaler latency #4037

Closed
kevinteng525 opened this issue Dec 23, 2022 · 5 comments
Closed

Record metrics for scaler latency #4037

kevinteng525 opened this issue Dec 23, 2022 · 5 comments
Assignees
Labels
feature-request All issues for new features that have not been committed to stale-bot-ignore All issues that should not be automatically closed by our stale bot

Comments

@kevinteng525
Copy link
Contributor

kevinteng525 commented Dec 23, 2022

Proposal

For production monitoring, we want to actively monitoring different kinds of metrics, KEDA already provided a lot, and one more metric I would like to have is the latency of retrieve metrics from scalar. That will be helpful for us to diagnose and locate the root cause.

Suggested to add a metric calling keda_metrics_adapter_scaler_metrics_latency
And record the time of
metrics, err := cache.GetMetricsForScaler(ctx, scalerIndex, info.Metric, metricSelector)

Use-Case

No response

Anything else?

No response

@kevinteng525 kevinteng525 added feature-request All issues for new features that have not been committed to needs-discussion labels Dec 23, 2022
@tomkerkhove tomkerkhove moved this to Proposed in Roadmap - KEDA Core Dec 23, 2022
@JorTurFer
Copy link
Member

Hi @kevinteng525
This sounds really useful IMO, but not in the adapter (at least not only). Since v2.9, all the metric requesting load has been moved from metrics server (adapter) to the operator, now the adapter just makes a gRPC request to the operator for getting the value. I think this metric could be more useful getting it from the operator itself, to have the querying time to the upstream.
WDYT, are you willing to contribute it?

@JorTurFer JorTurFer added stale-bot-ignore All issues that should not be automatically closed by our stale bot and removed needs-discussion labels Dec 23, 2022
@kevinteng525
Copy link
Contributor Author

Hi @JorTurFer ,

Sure, I will contribute on it.

Thanks,
Kevin

@kevinteng525
Copy link
Contributor Author

#4040 submitted, PTAL

@zroubalik
Copy link
Member

A great suggestion, I like it.

@zroubalik zroubalik moved this from Proposed to In Review in Roadmap - KEDA Core Jan 2, 2023
@tomkerkhove
Copy link
Member

+1

@github-project-automation github-project-automation bot moved this from In Review to Ready To Ship in Roadmap - KEDA Core Jan 6, 2023
@JorTurFer JorTurFer moved this from Ready To Ship to Done in Roadmap - KEDA Core Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request All issues for new features that have not been committed to stale-bot-ignore All issues that should not be automatically closed by our stale bot
Projects
Archived in project
Development

No branches or pull requests

4 participants