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

issues with graphite trigger #6319

Closed
mahmed15-09 opened this issue Nov 7, 2024 · 2 comments
Closed

issues with graphite trigger #6319

mahmed15-09 opened this issue Nov 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mahmed15-09
Copy link

Report

Hi i have started using keda with graphite server to scale up our cicd system. i see that the values we get from graphite are not correct.

i get the following values via graphite:

[
{
"target": "starting builds",
"tags": {
"name": "sumSeries(stats.gauges.zuul.executor.*.starting_builds)",
"aggregatedBy": "sum"
},
"datapoints": [
[14, 1730991300],
[11, 1730991360],
[18, 1730991420],
[39, 1730991480],
[9, 1730991540]
]
}
]

and In K8s HPA i get the following result:

Metrics: ( current / target )
"s3-graphite" (target average value): 1389m / 2

1389 actually means 0.1389.
I don't see such value any where in the graph as well.

I am using the same query in keda that i used to curl the datapoints above.

Expected Behavior

Metrics: ( current / target )
"s3-graphite" (target average value): 1389m / 2

I expected the above 1389m value to be 13890m or maybe some value near the above data points

Actual Behavior

Actual Behavior:
Metrics: ( current / target )
"s3-graphite" (target average value): 1389m / 2

Steps to Reproduce the Problem

1.Its basically the same for any graphite usecase. The value is wrong
2.
3.

Logs from KEDA operator

example

KEDA Version

2.13.1

Kubernetes Version

1.29

Platform

None

Scaler Details

Graphite

Anything else?

I am using keda chart version 2.13.2 which was not specified in the above list

@mahmed15-09 mahmed15-09 added the bug Something isn't working label Nov 7, 2024
@JorTurFer
Copy link
Member

Hello
1389m means 1.389. This can be totally normal as the default metric type is average so the value that you see in the HPA is the result of calculating the average.
In this case, 1389m could be shown because you have 25 in your graphite scaler and there are 18 instances (25/18=1389m).

@mahmed15-09
Copy link
Author

I understand . I have verified that this is indeed the case.

@github-project-automation github-project-automation bot moved this from To Triage to Ready To Ship in Roadmap - KEDA Core Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready To Ship
Development

No branches or pull requests

2 participants