Skip to content

Commit

Permalink
metrics: reset OcpSandbox gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
fridim committed Jun 19, 2024
1 parent e0e7eda commit 8dba136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/sandbox-metrics/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func createMetrics(dbPool *pgxpool.Pool) {
).Set(float64(event.Count))
}

gaugeOcpSandboxStats.Reset()
ocpStats, err := GetOcpSandboxStats(dbPool)
if err != nil {
log.Err.Println(err)
Expand Down
1 change: 1 addition & 0 deletions internal/models/ocp_sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ func (a *OcpSandboxProvider) Request(serviceUuid string, cloud_selector map[stri
log.Logger.Info("Node not included in calculation",
"node",
node.Name,
"unschedulable", node.Spec.Unschedulable,
"conditions",
node.Status.Conditions,
)
Expand Down

0 comments on commit 8dba136

Please sign in to comment.