Documentation ¶
Index ¶
- Constants
- type Config
- type PromExporter
- func (e *PromExporter) Category() api.Category
- func (e *PromExporter) Commit(events []api.Event)
- func (e *PromExporter) Config() interface{}
- func (e *PromExporter) Init(context api.Context) error
- func (e *PromExporter) ProductLoop(productFunc api.ProductFunc)
- func (e *PromExporter) Start() error
- func (e *PromExporter) Stop()
- func (e *PromExporter) String() string
- func (e *PromExporter) Type() api.Type
Constants ¶
View Source
const Type = "prometheusExporter"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Endpoints []string `yaml:"endpoints,omitempty" validate:"required"` Interval time.Duration `yaml:"interval,omitempty" default:"30s"` Timeout time.Duration `yaml:"timeout,omitempty" default:"5s"` ToJson bool `yaml:"toJson,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` }
type PromExporter ¶
type PromExporter struct {
// contains filtered or unexported fields
}
func (*PromExporter) Category ¶
func (e *PromExporter) Category() api.Category
func (*PromExporter) Commit ¶
func (e *PromExporter) Commit(events []api.Event)
func (*PromExporter) Config ¶
func (e *PromExporter) Config() interface{}
func (*PromExporter) ProductLoop ¶
func (e *PromExporter) ProductLoop(productFunc api.ProductFunc)
func (*PromExporter) Start ¶
func (e *PromExporter) Start() error
func (*PromExporter) Stop ¶
func (e *PromExporter) Stop()
func (*PromExporter) String ¶
func (e *PromExporter) String() string
func (*PromExporter) Type ¶
func (e *PromExporter) Type() api.Type
Click to show internal directories.
Click to hide internal directories.