Skip to content

Commit

Permalink
feat(api.stack): enable arc scale set controller metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Aug 27, 2023
1 parent 3660308 commit db71bfc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/stacks/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,15 @@ const pipeline = Pipeline.builder({
<blueprints.ControlPlaneLogType>'scheduler',
)
.addOns(
new ARCScaleSetController(),
new ARCScaleSetController({
values: {
metrics: {
controllerManagerAddr: ':8080',
listenerAddr: ':8080',
listenerEndpoint: '/metrics',
},
},
}),
new ARCScaleSet({
minRunners: builderConfig.apiStack!.arc.minRunners ?? undefined,
maxRunners: builderConfig.apiStack!.arc.maxRunners ?? undefined,
Expand Down

0 comments on commit db71bfc

Please sign in to comment.