Skip to content

Commit

Permalink
fix: handled review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardikl committed Aug 8, 2024
1 parent 6897c4f commit 0afd643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/collectors/rest/plugins/quota/quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (q *Quota) Init() error {
func (q *Quota) Run(dataMap map[string]*matrix.Matrix) ([]*matrix.Matrix, *util.Metadata, error) {
data := dataMap[q.Object]

// Adding threshold metric once as it's not available from quota template
// The threshold metric does not exist in REST quota template, we are adding it to maintain parity with exported ZAPI metrics
if data.GetMetric("threshold") == nil {
_, err := data.NewMetricFloat64("threshold", "threshold")
if err != nil {
Expand Down

0 comments on commit 0afd643

Please sign in to comment.