Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type Mount
- type Option
- type Registry
- func (r *Registry) Add(name string, delta int64)
- func (r *Registry) Counter(name string) *atomic.Int64
- func (r *Registry) Gauge(name string, v float64)
- func (r *Registry) Handler() http.Handler
- func (r *Registry) HandlerWithToken(token string) http.Handler
- func (r *Registry) Incr(name string)
- func (r *Registry) IncrAttrs(name string, attrs map[string]string)
- func (r *Registry) InstallGlobal()
- func (r *Registry) Observe(name string, v float64)
- func (r *Registry) ObserveAttrs(name string, v float64, attrs map[string]string)
- func (r *Registry) Snapshot() map[string]int64
Constants ¶
View Source
const ( MetricHTTPRequests = "ploykit_http_requests" MetricHTTPDurationSeconds = "ploykit_http_request_duration_seconds" )
Variables ¶
View Source
var DefaultDurationBuckets = []float64{0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10}
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) InstallGlobal ¶
func (r *Registry) InstallGlobal()
func (*Registry) ObserveAttrs ¶
Click to show internal directories.
Click to hide internal directories.