config

package
v0.0.0-...-f16c7e7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailedMetricsEngine

type DetailedMetricsEngine struct {
	pbsmetrics.MetricsEngine
	GoMetrics         *pbsmetrics.Metrics
	PrometheusMetrics *prometheusmetrics.Metrics
}

DetailedMetricsEngine is a MultiMetricsEngine that preserves links to unerlying metrics engines.

func NewMetricsEngine

func NewMetricsEngine(cfg *config.Configuration, adapterList []openrtb_ext.BidderName) *DetailedMetricsEngine

NewMetricsEngine reads the configuration and returns the appropriate metrics engine for this instance.

type DummyMetricsEngine

type DummyMetricsEngine struct{}

DummyMetricsEngine is a Noop metrics engine in case no metrics are configured. (may also be useful for tests)

func (*DummyMetricsEngine) RecordAdapterBidReceived

func (me *DummyMetricsEngine) RecordAdapterBidReceived(labels pbsmetrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)

RecordAdapterBidReceived as a noop

func (*DummyMetricsEngine) RecordAdapterPrice

func (me *DummyMetricsEngine) RecordAdapterPrice(labels pbsmetrics.AdapterLabels, cpm float64)

RecordAdapterPrice as a noop

func (*DummyMetricsEngine) RecordAdapterRequest

func (me *DummyMetricsEngine) RecordAdapterRequest(labels pbsmetrics.AdapterLabels)

RecordAdapterRequest as a noop

func (*DummyMetricsEngine) RecordAdapterTime

func (me *DummyMetricsEngine) RecordAdapterTime(labels pbsmetrics.AdapterLabels, length time.Duration)

RecordAdapterTime as a noop

func (*DummyMetricsEngine) RecordConnectionAccept

func (me *DummyMetricsEngine) RecordConnectionAccept(success bool)

RecordConnectionAccept as a noop

func (*DummyMetricsEngine) RecordConnectionClose

func (me *DummyMetricsEngine) RecordConnectionClose(success bool)

RecordConnectionClose as a noop

func (*DummyMetricsEngine) RecordCookieSync

func (me *DummyMetricsEngine) RecordCookieSync(labels pbsmetrics.Labels)

RecordCookieSync as a noop

func (*DummyMetricsEngine) RecordImps

func (me *DummyMetricsEngine) RecordImps(labels pbsmetrics.Labels, numImps int)

RecordImps as a noop

func (*DummyMetricsEngine) RecordRequest

func (me *DummyMetricsEngine) RecordRequest(labels pbsmetrics.Labels)

RecordRequest as a noop

func (*DummyMetricsEngine) RecordRequestTime

func (me *DummyMetricsEngine) RecordRequestTime(labels pbsmetrics.Labels, length time.Duration)

RecordRequestTime as a noop

func (*DummyMetricsEngine) RecordUserIDSet

func (me *DummyMetricsEngine) RecordUserIDSet(userLabels pbsmetrics.UserLabels)

RecordUserIDSet as a noop

type MultiMetricsEngine

type MultiMetricsEngine []pbsmetrics.MetricsEngine

MultiMetricsEngine logs metrics to multiple metrics databases The can be useful in transitioning an instance from one engine to another, you can run both in parallel to verify stats match up.

func (*MultiMetricsEngine) RecordAdapterBidReceived

func (me *MultiMetricsEngine) RecordAdapterBidReceived(labels pbsmetrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)

RecordAdapterBidReceived across all engines

func (*MultiMetricsEngine) RecordAdapterPrice

func (me *MultiMetricsEngine) RecordAdapterPrice(labels pbsmetrics.AdapterLabels, cpm float64)

RecordAdapterPrice across all engines

func (*MultiMetricsEngine) RecordAdapterRequest

func (me *MultiMetricsEngine) RecordAdapterRequest(labels pbsmetrics.AdapterLabels)

RecordAdapterRequest across all engines

func (*MultiMetricsEngine) RecordAdapterTime

func (me *MultiMetricsEngine) RecordAdapterTime(labels pbsmetrics.AdapterLabels, length time.Duration)

RecordAdapterTime across all engines

func (*MultiMetricsEngine) RecordConnectionAccept

func (me *MultiMetricsEngine) RecordConnectionAccept(success bool)

func (*MultiMetricsEngine) RecordConnectionClose

func (me *MultiMetricsEngine) RecordConnectionClose(success bool)

func (*MultiMetricsEngine) RecordCookieSync

func (me *MultiMetricsEngine) RecordCookieSync(labels pbsmetrics.Labels)

RecordCookieSync across all engines

func (*MultiMetricsEngine) RecordImps

func (me *MultiMetricsEngine) RecordImps(labels pbsmetrics.Labels, numImps int)

RecordImps across all engines

func (*MultiMetricsEngine) RecordRequest

func (me *MultiMetricsEngine) RecordRequest(labels pbsmetrics.Labels)

RecordRequest across all engines

func (*MultiMetricsEngine) RecordRequestTime

func (me *MultiMetricsEngine) RecordRequestTime(labels pbsmetrics.Labels, length time.Duration)

RecordRequestTime across all engines

func (*MultiMetricsEngine) RecordUserIDSet

func (me *MultiMetricsEngine) RecordUserIDSet(userLabels pbsmetrics.UserLabels)

RecordUserIDSet across all engines

Jump to

Keyboard shortcuts

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