config

package
v0.0.0-...-ea31b78 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 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 underlying 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) RecordAdapterCookieSync

func (me *DummyMetricsEngine) RecordAdapterCookieSync(adapter openrtb_ext.BidderName, gdprBlocked bool)

RecordAdapterCookieSync as a noop

func (*DummyMetricsEngine) RecordAdapterPanic

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

RecordAdapterPanic 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(implabels pbsmetrics.ImpLabels)

RecordImps as a noop

func (*DummyMetricsEngine) RecordLegacyImps

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

RecordLegacyImps 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) RecordStoredImpCacheResult

func (me *DummyMetricsEngine) RecordStoredImpCacheResult(cacheResult pbsmetrics.CacheResult, inc int)

RecordStoredImpCacheResult as a noop

func (*DummyMetricsEngine) RecordStoredReqCacheResult

func (me *DummyMetricsEngine) RecordStoredReqCacheResult(cacheResult pbsmetrics.CacheResult, inc int)

RecordStoredReqCacheResult 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) RecordAdapterCookieSync

func (me *MultiMetricsEngine) RecordAdapterCookieSync(adapter openrtb_ext.BidderName, gdprBlocked bool)

RecordAdapterCookieSync across all engines

func (*MultiMetricsEngine) RecordAdapterPanic

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

RecordAdapterPanic 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(implabels pbsmetrics.ImpLabels)

RecordsImps records imps with imp types across all metric engines

func (*MultiMetricsEngine) RecordLegacyImps

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

RecordImps for the legacy endpoint

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

func (me *MultiMetricsEngine) RecordStoredImpCacheResult(cacheResult pbsmetrics.CacheResult, inc int)

RecordStoredImpCacheResult across all engines

func (*MultiMetricsEngine) RecordStoredReqCacheResult

func (me *MultiMetricsEngine) RecordStoredReqCacheResult(cacheResult pbsmetrics.CacheResult, inc int)

RecordStoredReqCacheResult 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