heroku

package
v0.0.0-...-e951c9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 21 Imported by: 0

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) Details

func (h *Target) Details() interface{}

func (*Target) DiscoveredLabels

func (h *Target) DiscoveredLabels() model.LabelSet

func (*Target) Labels

func (h *Target) Labels() model.LabelSet

func (*Target) Ready

func (h *Target) Ready() bool

func (*Target) Stop

func (h *Target) Stop() error

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL