Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
An Encoder writes Prometheus samples to the writer
func NewEncoder ¶
NewEncoder creates a new Prometheus encoder.
func (*Encoder) Append ¶
func (e *Encoder) Append(m Marshaller) error
Append marshals a Marshaller and appends it to the encoder's buffer.
type Marshaller ¶
type Marshaller interface {
PrometheusMetric() []Metric
}
A Marshaller can be marshalled into Prometheus samples
Click to show internal directories.
Click to hide internal directories.