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

feat: use new /metrics endpoint #89

Merged
merged 2 commits into from
Sep 28, 2022
Merged

feat: use new /metrics endpoint #89

merged 2 commits into from
Sep 28, 2022

Conversation

lucaspin
Copy link
Collaborator

@lucaspin lucaspin commented Sep 27, 2022

This PR updates the scaler lambda to use the new /metrics endpoint. The endpoint exposes the same numbers as the /occupancy endpoint + the number of agents per state:

{
  "jobs": {
    "queued": 2,
    "running": 8
  },
  "agents": {
    "idle": 12,
    "occupied": 4
  }
}

A new AgentCount metric is pushed to CloudWatch, alongside the current JobCount one:

Screen Shot 2022-09-27 at 16 21 13

The /occupancy endpoint is now deprecated and will be removed in the future.

@lucaspin lucaspin requested a review from shiroyasha September 27, 2022 19:36
@lucaspin lucaspin merged commit 61780ff into master Sep 28, 2022
@lucaspin lucaspin deleted the consume-new-endpoint branch September 28, 2022 16:32
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.

1 participant