Skip to content

Conversation

@lbec-octopus
Copy link
Contributor

@lbec-octopus lbec-octopus commented Oct 29, 2025

[sc-85915]

This adds a custom metric queued_builds_no_compatible_agents to replace this n8n workflow which is doing the same thing.

This metric will be sent to sumologic. An alert will be created in sumologic if a build is stuck for more than a specified time.

I successfully tested the new scraper locally.

image

@CLAassistant
Copy link

CLAassistant commented Oct 29, 2025

CLA assistant check
All committers have signed the CLA.

@lbec-octopus lbec-octopus marked this pull request as ready for review November 3, 2025 00:41
@lbec-octopus lbec-octopus requested a review from a team as a code owner November 3, 2025 00:41
.Where(qb => qb.CompatibleAgents?.Agent == null || qb.CompatibleAgents.Agent.Count == 0)
.ToArray();

var noAgentsGauge = metricFactory.CreateGauge("queued_builds_no_compatible_agents", "Queued builds waiting with no compatible agents available", "buildTypeId", "buildId", "queuedDateTime");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We spoke on Zoom about how having buildId in here impacts cardinality; with the expected magnitude of results I don't think it's a huge problem in this case.

Copy link
Contributor

@cailyoung cailyoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to get the CLA signed (this is because it's a public repo) and it's ready to merge.

@lbec-octopus lbec-octopus merged commit aec4eb7 into main Nov 3, 2025
4 checks passed
@lbec-octopus lbec-octopus deleted the lindsay/add-incompatible-build-agents-metric branch November 3, 2025 04:35
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.

3 participants