mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
[chore] - update buffered file writer metric (#2740)
* missed one * add comment
This commit is contained in:
parent
8ceeb5d5a1
commit
8d3404804e
1 changed files with 2 additions and 1 deletions
|
@ -29,11 +29,12 @@ var (
|
|||
Help: "Total number of times data was written to disk by the BufferedFileWriter.",
|
||||
})
|
||||
|
||||
// The first bucket is greater than the default threshold to avoid a bucket with a zero value.
|
||||
fileSizeHistogram = promauto.NewHistogram(prometheus.HistogramOpts{
|
||||
Namespace: common.MetricsNamespace,
|
||||
Subsystem: common.MetricsSubsystem,
|
||||
Name: "file_size_bytes",
|
||||
Help: "Sizes of files created by the BufferedFileWriter.",
|
||||
Buckets: prometheus.ExponentialBuckets(defaultThreshold, 2, 4),
|
||||
Buckets: prometheus.ExponentialBuckets(defaultThreshold*2, 4, 5),
|
||||
})
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue