Documentation ¶
Index ¶
- type Gatherer
- func (input *Gatherer) Close() error
- func (input *Gatherer) Gather() ([]*types.Sample, error)
- func (input *Gatherer) GetInterval() time.Duration
- func (input *Gatherer) Histogram(metricName string, metric *dto.Metric, tags map[string]string) []*types.Sample
- func (input *Gatherer) Init() error
- func (input *Gatherer) Prefix() string
- func (input *Gatherer) Standard(metricName string, metric *dto.Metric, tags map[string]string) []*types.Sample
- func (input *Gatherer) String() string
- func (input *Gatherer) Summary(metricName string, metric *dto.Metric, tags map[string]string) []*types.Sample
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gatherer ¶
type Gatherer struct {
// contains filtered or unexported fields
}
func New ¶
func New(gatherer prometheus.Gatherer, opt ...Option) *Gatherer
New creates a new Gatherer
func (*Gatherer) GetInterval ¶
GetInterval returns the interval of the input.
func (*Gatherer) Histogram ¶
func (input *Gatherer) Histogram(metricName string, metric *dto.Metric, tags map[string]string) []*types.Sample
Histogram metric
func (*Gatherer) Standard ¶
func (input *Gatherer) Standard(metricName string, metric *dto.Metric, tags map[string]string) []*types.Sample
Standard metric
type Option ¶
type Option func(o *Options)
func WithIgnoreLabelKeys ¶
WithIgnoreLabelKeys sets the label keys of the gatherer
func WithIgnoreMetrics ¶
WithIgnoreMetrics sets the metrics of the gatherer
func WithInterval ¶
WithInterval sets the interval of the gatherer
Click to show internal directories.
Click to hide internal directories.