Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics(reg prometheus.Registerer) *Metrics
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
func NewTarget ¶
func NewTarget(metrics *Metrics, logger log.Logger, handler api.EntryHandler, jobName string, config *scrapeconfig.HerokuDrainTargetConfig, relabel []*relabel.Config) (*Target, error)
NewTarget creates a brand new Heroku Drain target, capable of receiving logs from a Heroku application through an HTTP drain.
func (*Target) DiscoveredLabels ¶
func (*Target) Type ¶
func (h *Target) Type() target.TargetType
type TargetManager ¶
type TargetManager struct {
// contains filtered or unexported fields
}
func NewHerokuDrainTargetManager ¶
func NewHerokuDrainTargetManager( metrics *Metrics, reg prometheus.Registerer, logger log.Logger, client api.EntryHandler, scrapeConfigs []scrapeconfig.Config) (*TargetManager, error)
func (*TargetManager) ActiveTargets ¶
func (hm *TargetManager) ActiveTargets() map[string][]target.Target
func (*TargetManager) AllTargets ¶
func (hm *TargetManager) AllTargets() map[string][]target.Target
func (*TargetManager) Ready ¶
func (hm *TargetManager) Ready() bool
func (*TargetManager) Stop ¶
func (hm *TargetManager) Stop()
Click to show internal directories.
Click to hide internal directories.