Skip to content

Commit

Permalink
Update internal/collector/scrape.go
Browse files Browse the repository at this point in the history
scrape now makes an explicit choice about how to fill backendQuota.

Co-authored-by: Stefan Majewsky <[email protected]>
  • Loading branch information
VoigtS and majewsky authored Dec 5, 2024
1 parent df05bc7 commit 3d2b1dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/collector/scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,7 @@ func (c *Collector) writeResourceScrapeResult(dbDomain db.Domain, dbProject db.P
resInfo := c.Cluster.InfoForResource(srv.Type, res.Name)
if resInfo.Topology == liquid.AZSeparatedResourceTopology && resInfo.HasQuota {
azRes.BackendQuota = data.Quota
}
// reset backendQuota entries for topology changes
if resInfo.Topology != liquid.AZSeparatedResourceTopology {
} else {
azRes.BackendQuota = nil
}

Expand Down

0 comments on commit 3d2b1dd

Please sign in to comment.