lifecycle-toolkit icon indicating copy to clipboard operation
lifecycle-toolkit copied to clipboard

keptn_app_deploymentinterval: 9.223372036854776e+09

Open LittaKake opened this issue 1 year ago • 2 comments

Hi!

In my DORA grafana dashboard I get this huge number which skews my whole panel.

image

Checking more closely on keptn.svc.something:2222/metrics I find this

keptn_app_deploymentinterval{keptn_deployment_app_name="my-app",keptn_deployment_app_namespace="my-app",keptn_deployment_app_previousversion="2449103969",keptn_deployment_app_version="924330662",otel_scope_name="keptn/task",otel_scope_version=""} 9.223372036854776e+09

The number 9.2233... is the same as 2^63 which makes me think there is some kind of integer overflow? Not sure what caused this, but I believe I reverted to a previous deployment and when looking at the calculation between the versions it became 292 years.

LittaKake avatar Aug 12 '24 08:08 LittaKake

For now I just exclude numbers bigger than "1000000000 seconds".

By changing the dashboard from

"expr": "avg by(keptn_deployment_app_previousversion, keptn_deployment_app_version) (keptn_app_deploymentinterval{keptn_deployment_app_name=\"$Application\"})",

to

"expr": "avg by(keptn_deployment_app_previousversion, keptn_deployment_app_version) (keptn_app_deploymentinterval{keptn_deployment_app_name=\"$Application\"} < 1000000000)",

LittaKake avatar Aug 13 '24 11:08 LittaKake

For now I just exclude numbers bigger than "1000000000 seconds".

By changing the dashboard from

"expr": "avg by(keptn_deployment_app_previousversion, keptn_deployment_app_version) (keptn_app_deploymentinterval{keptn_deployment_app_name=\"$Application\"})",

to

"expr": "avg by(keptn_deployment_app_previousversion, keptn_deployment_app_version) (keptn_app_deploymentinterval{keptn_deployment_app_name=\"$Application\"} < 1000000000)",

Thanks! I'll use the same condition for now

fernandonogueira avatar Aug 15 '24 03:08 fernandonogueira

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 15 '24 03:10 github-actions[bot]