...

Source file src/github.com/letsencrypt/boulder/metrics/scope.go

Documentation: github.com/letsencrypt/boulder/metrics

     1  package metrics
     2  
     3  import "github.com/prometheus/client_golang/prometheus"
     4  
     5  // InternetFacingBuckets are the histogram buckets that should be used when
     6  // measuring latencies that involve traversing the public internet.
     7  var InternetFacingBuckets = []float64{.1, .5, 1, 5, 10, 30, 45}
     8  
     9  // noopRegisterer mocks prometheus.Registerer. It is used when we need to
    10  // register prometheus metrics in tests where multiple registrations would
    11  // cause a panic.
    12  type noopRegisterer struct{}
    13  
    14  func (np *noopRegisterer) MustRegister(_ ...prometheus.Collector) {}
    15  
    16  func (np *noopRegisterer) Register(_ prometheus.Collector) error  { return nil }
    17  func (np *noopRegisterer) Unregister(_ prometheus.Collector) bool { return true }
    18  
    19  var NoopRegisterer = &noopRegisterer{}
    20  

View as plain text