Skip to content

Report the number of AI-assisted runs in Scalr - #3300

Open
RomanMytsko wants to merge 2 commits into
DataDog:masterfrom
Scalr:SCALRCORE-41424
Open

RomanMytsko wants to merge 2 commits into
DataDog:masterfrom
Scalr:SCALRCORE-41424

Conversation

@RomanMytsko

Copy link
Copy Markdown

What does this PR do?

Report scalr.runs.ai_assisted.count as a gauge when the Scalr account metrics API returns runs-ai-assisted-count. The check reports zero for accounts with no AI-assisted runs and skips the gauge when an older server omits the field. This prepares version 1.1.0 of the Scalr integration.

Motivation

Platform teams can track how many runs in their Scalr account used an AI tool. Each run counts once, including runs that used several tools.

Review checklist

  • The title describes the change.
  • Tests cover a positive count, zero, and an older API response.
  • Git history is clean.
  • Documentation review for the updated installation version.

@RomanMytsko
RomanMytsko marked this pull request as ready for review November 23, 2026 14:33
@RomanMytsko
RomanMytsko requested review from a team as code owners November 23, 2026 14:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants