Skip to content

feat(metrics): add histogram mirrors for latency metrics (#7675)#7715

Open
apshada wants to merge 1 commit intokedacore:mainfrom
apshada:fix/7675-latency-histograms
Open

feat(metrics): add histogram mirrors for latency metrics (#7675)#7715
apshada wants to merge 1 commit intokedacore:mainfrom
apshada:fix/7675-latency-histograms

Conversation

@apshada
Copy link
Copy Markdown

@apshada apshada commented May 3, 2026

Closes #7675. Adds histogram mirrors with _duration_seconds suffix for both Prometheus and OpenTelemetry exporters; existing gauges retained for backwards compatibility.

Adds keda_scaler_metrics_duration_seconds and
keda_internal_scale_loop_duration_seconds (Prometheus) plus their OTel
counterparts as histogram mirrors of the existing latency gauges. The
gauges are kept and marked deprecated in their Help strings.

Closes kedacore#7675

Signed-off-by: Aditya Pratap Singh Hada <apshada1@gmail.com>
@apshada apshada requested a review from a team as a code owner May 3, 2026 06:04
@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented May 3, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@keda-automation keda-automation requested a review from a team May 3, 2026 06:04
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

Thank you for your contribution! 🙏

Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected.

While you are waiting, make sure to:

  • Add an entry in our changelog in alphabetical order and link related issue
  • Update the documentation, if needed
  • Add unit & e2e tests for your changes
  • GitHub checks are passing
  • Is the DCO check failing? Here is how you can fix DCO issues

Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient.

Learn more about our contribution guide.

@rickbrouwer
Copy link
Copy Markdown
Member

duplicate with #7682

@rickbrouwer rickbrouwer added the duplicate This issue or pull request already exists label May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use histograms for latency related metrics

2 participants