mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-15 09:27:30 +00:00
18 lines
479 B
Go
18 lines
479 B
Go
|
package sources
|
||
|
|
||
|
import (
|
||
|
"github.com/prometheus/client_golang/prometheus"
|
||
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||
|
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
hooksExecTime = promauto.NewHistogramVec(prometheus.HistogramOpts{
|
||
|
Namespace: common.MetricsNamespace,
|
||
|
Subsystem: common.MetricsSubsystem,
|
||
|
Name: "hooks_exec_time_ms",
|
||
|
Help: "Time spent executing hooks (ms)",
|
||
|
Buckets: []float64{5, 50, 500, 1000},
|
||
|
}, nil)
|
||
|
)
|