Documentation
¶
Overview ¶
Package metrics is a small set of counters and gauges written in the Prometheus text exposition format: what the sidecar and the read gateway count, including the metering counters billing reads (docs/backend.md).
Index ¶
- type Set
- func (s *Set) Add(name string, v float64, kv ...string)
- func (s *Set) Counter(name, help string)
- func (s *Set) Gauge(name, help string)
- func (s *Set) Get(name string, kv ...string) float64
- func (s *Set) ServeHTTP(w http.ResponseWriter, _ *http.Request)
- func (s *Set) Set(name string, v float64, kv ...string)
- func (s *Set) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set holds metrics by name and label set.
func (*Set) ServeHTTP ¶
func (s *Set) ServeHTTP(w http.ResponseWriter, _ *http.Request)
ServeHTTP serves the set at /metrics.