Skip to content

Commit

Permalink
reportingThreshold fix
Browse files Browse the repository at this point in the history
  • Loading branch information
riking committed Nov 17, 2019
1 parent 8df6939 commit d38092e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go-prometheus-topk/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ type topkRoot struct {
countDesc *prometheus.Desc
errDesc *prometheus.Desc

variableLabels []string
variableLabels []string
reportThreshold float64
}

Expand Down Expand Up @@ -147,7 +147,8 @@ func NewTopK(opts TopKOpts, labelNames []string) TopK {
errDesc: prometheus.NewDesc(
fmt.Sprintf("%s_error", fqName), opts.Help, varLabels, opts.ConstLabels),

variableLabels: varLabels,
variableLabels: varLabels,
reportThreshold: opts.ReportingThreshold,
}
return &topkCurry{root: root, curry: nil}
}
Expand Down

0 comments on commit d38092e

Please sign in to comment.