Skip to content

Commit 97f4500

Browse files
committed
fix: correct variable assignment and update Prometheus query for deployment status
1 parent f18dbe6 commit 97f4500

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## vX.X.X (YYYY-MM-DD)
44

5+
### Fixed
6+
- Variable redeclaration made sanitization of compose project name not work for non unique challenge names
7+
- Small tweaks to grafana dashboard
8+
59
## v0.5.0 (2026-02-18)
610

711
### Added

galvanize-instancer/internal/docker/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func BuildComposeProject(unique bool, challengeName, teamID string) string {
4141
composeProject = SanitizeProjectName(composeProject)
4242
} else {
4343
composeProject = "polypwn-" + challengeName + "-" + teamID
44-
composeProject := SanitizeProjectName(composeProject)
44+
composeProject = SanitizeProjectName(composeProject)
4545
sum := sha1.New().Sum([]byte(composeProject))
4646
hexSum := hex.EncodeToString(sum)
4747
composeProject = composeProject + "-" + hexSum[:6]

monitoring/grafana/dashboards/galvanize.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
},
105105
"targets": [
106106
{
107-
"expr": "sum(instancer_deployments{status=~\"running|starting|stopping|error\"}) or vector(0)",
107+
"expr": "sum(instancer_deployments{status=~\"running|starting|stopping\"}) or vector(0)",
108108
"instant": true,
109109
"datasource": {
110110
"type": "prometheus",
@@ -386,7 +386,8 @@
386386
"reduceOptions": {
387387
"calcs": [
388388
"lastNotNull"
389-
]
389+
],
390+
"fields": "/^instancer_queue_depth or vector\\(0\\)$/"
390391
},
391392
"colorMode": "background",
392393
"graphMode": "none"

0 commit comments

Comments
 (0)