herokutarget

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ReservedLabelTenantID = "__tenant_id__"

Variables

This section is empty.

Functions

This section is empty.

Types

type HerokuDrainTargetConfig

type HerokuDrainTargetConfig struct {
	// Server is the weaveworks server config for listening connections
	Server server.Config

	// Labels optionally holds labels to associate with each record received on the push api.
	Labels model.LabelSet

	// UseIncomingTimestamp sets the timestamp to the incoming heroku log entry timestamp. If false,
	// promtail will assign the current timestamp to the log entry when it was processed.
	UseIncomingTimestamp bool
}

HerokuDrainTargetConfig describes a scrape config to listen and consume heroku logs, in the HTTPS drain manner.

type HerokuTarget

type HerokuTarget struct {
	// contains filtered or unexported fields
}

func NewHerokuTarget

func NewHerokuTarget(metrics *Metrics, logger log.Logger, handler loki.EntryHandler, relabel []*relabel.Config, config *HerokuDrainTargetConfig, reg prometheus.Registerer) (*HerokuTarget, error)

NewTarget creates a brand new Heroku Drain target, capable of receiving logs from a Heroku application through an HTTP drain.

func (*HerokuTarget) Details

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

func (*HerokuTarget) DrainEndpoint

func (h *HerokuTarget) DrainEndpoint() string

func (*HerokuTarget) HealthyEndpoint

func (h *HerokuTarget) HealthyEndpoint() string

func (*HerokuTarget) Labels

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

func (*HerokuTarget) ListenAddress

func (h *HerokuTarget) ListenAddress() string

func (*HerokuTarget) ListenPort

func (h *HerokuTarget) ListenPort() int

func (*HerokuTarget) Ready

func (h *HerokuTarget) Ready() bool

func (*HerokuTarget) Stop

func (h *HerokuTarget) Stop() error

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics(reg prometheus.Registerer) *Metrics

Jump to

Keyboard shortcuts

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