config

package
v0.187.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailedMetricsEngine

type DetailedMetricsEngine struct {
	metrics.MetricsEngine
	GoMetrics         *metrics.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, syncerKeys []string) *DetailedMetricsEngine

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

type MultiMetricsEngine

type MultiMetricsEngine []metrics.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) RecordAccountCacheResult

func (me *MultiMetricsEngine) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)

RecordAccountCacheResult across all engines

func (*MultiMetricsEngine) RecordAdapterBidReceived

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

RecordAdapterBidReceived across all engines

func (*MultiMetricsEngine) RecordAdapterConnections

func (me *MultiMetricsEngine) RecordAdapterConnections(bidderName openrtb_ext.BidderName, connWasReused bool, connWaitTime time.Duration)

Keeps track of created and reused connections to adapter bidders and the time from the connection request, to the connection creation, or reuse from the pool across all engines

func (*MultiMetricsEngine) RecordAdapterGDPRRequestBlocked

func (me *MultiMetricsEngine) RecordAdapterGDPRRequestBlocked(adapter openrtb_ext.BidderName)

RecordAdapterGDPRRequestBlocked across all engines

func (*MultiMetricsEngine) RecordAdapterPanic

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

RecordAdapterPanic across all engines

func (*MultiMetricsEngine) RecordAdapterPrice

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

RecordAdapterPrice across all engines

func (*MultiMetricsEngine) RecordAdapterRequest

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

RecordAdapterRequest across all engines

func (*MultiMetricsEngine) RecordAdapterTime

func (me *MultiMetricsEngine) RecordAdapterTime(labels metrics.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(status metrics.CookieSyncStatus)

RecordCookieSync across all engines

func (*MultiMetricsEngine) RecordDNSTime

func (me *MultiMetricsEngine) RecordDNSTime(dnsLookupTime time.Duration)

Times the DNS resolution process

func (*MultiMetricsEngine) RecordImps

func (me *MultiMetricsEngine) RecordImps(implabels metrics.ImpLabels)

RecordsImps records imps with imp types across all metric engines

func (*MultiMetricsEngine) RecordPrebidCacheRequestTime

func (me *MultiMetricsEngine) RecordPrebidCacheRequestTime(success bool, length time.Duration)

RecordPrebidCacheRequestTime across all engines

func (*MultiMetricsEngine) RecordRequest

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

RecordRequest across all engines

func (*MultiMetricsEngine) RecordRequestPrivacy

func (me *MultiMetricsEngine) RecordRequestPrivacy(privacy metrics.PrivacyLabels)

RecordRequestPrivacy across all engines

func (*MultiMetricsEngine) RecordRequestQueueTime

func (me *MultiMetricsEngine) RecordRequestQueueTime(success bool, requestType metrics.RequestType, length time.Duration)

RecordRequestQueueTime across all engines

func (*MultiMetricsEngine) RecordRequestTime

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

RecordRequestTime across all engines

func (*MultiMetricsEngine) RecordSetUid added in v0.173.0

func (me *MultiMetricsEngine) RecordSetUid(status metrics.SetUidStatus)

RecordSetUid across all engines

func (*MultiMetricsEngine) RecordStoredDataError

func (me *MultiMetricsEngine) RecordStoredDataError(labels metrics.StoredDataLabels)

RecordStoredDataError across all engines

func (*MultiMetricsEngine) RecordStoredDataFetchTime

func (me *MultiMetricsEngine) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)

RecordStoredDataFetchTime across all engines

func (*MultiMetricsEngine) RecordStoredImpCacheResult

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

RecordStoredImpCacheResult across all engines

func (*MultiMetricsEngine) RecordStoredReqCacheResult

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

RecordStoredReqCacheResult across all engines

func (*MultiMetricsEngine) RecordSyncerRequest added in v0.173.0

func (me *MultiMetricsEngine) RecordSyncerRequest(key string, status metrics.SyncerCookieSyncStatus)

RecordSyncerRequest across all engines

func (*MultiMetricsEngine) RecordSyncerSet added in v0.173.0

func (me *MultiMetricsEngine) RecordSyncerSet(key string, status metrics.SyncerSetUidStatus)

RecordSyncerSet across all engines

func (*MultiMetricsEngine) RecordTLSHandshakeTime

func (me *MultiMetricsEngine) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)

func (*MultiMetricsEngine) RecordTimeoutNotice

func (me *MultiMetricsEngine) RecordTimeoutNotice(success bool)

RecordTimeoutNotice across all engines

type NilMetricsEngine added in v0.179.0

type NilMetricsEngine struct{}

NilMetricsEngine implements the MetricsEngine interface where no metrics are actually captured. This is used if no metric backend is configured and also for tests.

func (*NilMetricsEngine) RecordAccountCacheResult added in v0.179.0

func (me *NilMetricsEngine) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)

RecordAccountCacheResult as a noop

func (*NilMetricsEngine) RecordAdapterBidReceived added in v0.179.0

func (me *NilMetricsEngine) RecordAdapterBidReceived(labels metrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)

RecordAdapterBidReceived as a noop

func (*NilMetricsEngine) RecordAdapterConnections added in v0.179.0

func (me *NilMetricsEngine) RecordAdapterConnections(bidderName openrtb_ext.BidderName, connWasReused bool, connWaitTime time.Duration)

RecordAdapterConnections as a noop

func (*NilMetricsEngine) RecordAdapterGDPRRequestBlocked added in v0.179.0

func (me *NilMetricsEngine) RecordAdapterGDPRRequestBlocked(adapter openrtb_ext.BidderName)

RecordAdapterGDPRRequestBlocked as a noop

func (*NilMetricsEngine) RecordAdapterPanic added in v0.179.0

func (me *NilMetricsEngine) RecordAdapterPanic(labels metrics.AdapterLabels)

RecordAdapterPanic as a noop

func (*NilMetricsEngine) RecordAdapterPrice added in v0.179.0

func (me *NilMetricsEngine) RecordAdapterPrice(labels metrics.AdapterLabels, cpm float64)

RecordAdapterPrice as a noop

func (*NilMetricsEngine) RecordAdapterRequest added in v0.179.0

func (me *NilMetricsEngine) RecordAdapterRequest(labels metrics.AdapterLabels)

RecordAdapterRequest as a noop

func (*NilMetricsEngine) RecordAdapterTime added in v0.179.0

func (me *NilMetricsEngine) RecordAdapterTime(labels metrics.AdapterLabels, length time.Duration)

RecordAdapterTime as a noop

func (*NilMetricsEngine) RecordConnectionAccept added in v0.179.0

func (me *NilMetricsEngine) RecordConnectionAccept(success bool)

RecordConnectionAccept as a noop

func (*NilMetricsEngine) RecordConnectionClose added in v0.179.0

func (me *NilMetricsEngine) RecordConnectionClose(success bool)

RecordConnectionClose as a noop

func (*NilMetricsEngine) RecordCookieSync added in v0.179.0

func (me *NilMetricsEngine) RecordCookieSync(status metrics.CookieSyncStatus)

RecordCookieSync as a noop

func (*NilMetricsEngine) RecordDNSTime added in v0.179.0

func (me *NilMetricsEngine) RecordDNSTime(dnsLookupTime time.Duration)

RecordDNSTime as a noop

func (*NilMetricsEngine) RecordImps added in v0.179.0

func (me *NilMetricsEngine) RecordImps(implabels metrics.ImpLabels)

RecordImps as a noop

func (*NilMetricsEngine) RecordPrebidCacheRequestTime added in v0.179.0

func (me *NilMetricsEngine) RecordPrebidCacheRequestTime(success bool, length time.Duration)

RecordPrebidCacheRequestTime as a noop

func (*NilMetricsEngine) RecordRequest added in v0.179.0

func (me *NilMetricsEngine) RecordRequest(labels metrics.Labels)

RecordRequest as a noop

func (*NilMetricsEngine) RecordRequestPrivacy added in v0.179.0

func (me *NilMetricsEngine) RecordRequestPrivacy(privacy metrics.PrivacyLabels)

RecordRequestPrivacy as a noop

func (*NilMetricsEngine) RecordRequestQueueTime added in v0.179.0

func (me *NilMetricsEngine) RecordRequestQueueTime(success bool, requestType metrics.RequestType, length time.Duration)

RecordRequestQueueTime as a noop

func (*NilMetricsEngine) RecordRequestTime added in v0.179.0

func (me *NilMetricsEngine) RecordRequestTime(labels metrics.Labels, length time.Duration)

RecordRequestTime as a noop

func (*NilMetricsEngine) RecordSetUid added in v0.179.0

func (me *NilMetricsEngine) RecordSetUid(status metrics.SetUidStatus)

RecordSetUid as a noop

func (*NilMetricsEngine) RecordStoredDataError added in v0.179.0

func (me *NilMetricsEngine) RecordStoredDataError(labels metrics.StoredDataLabels)

RecordStoredDataError as a noop

func (*NilMetricsEngine) RecordStoredDataFetchTime added in v0.179.0

func (me *NilMetricsEngine) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)

RecordStoredDataFetchTime as a noop

func (*NilMetricsEngine) RecordStoredImpCacheResult added in v0.179.0

func (me *NilMetricsEngine) RecordStoredImpCacheResult(cacheResult metrics.CacheResult, inc int)

RecordStoredImpCacheResult as a noop

func (*NilMetricsEngine) RecordStoredReqCacheResult added in v0.179.0

func (me *NilMetricsEngine) RecordStoredReqCacheResult(cacheResult metrics.CacheResult, inc int)

RecordStoredReqCacheResult as a noop

func (*NilMetricsEngine) RecordSyncerRequest added in v0.179.0

func (me *NilMetricsEngine) RecordSyncerRequest(key string, status metrics.SyncerCookieSyncStatus)

RecordSyncerRequest as a noop

func (*NilMetricsEngine) RecordSyncerSet added in v0.179.0

func (me *NilMetricsEngine) RecordSyncerSet(key string, status metrics.SyncerSetUidStatus)

RecordSyncerSet as a noop

func (*NilMetricsEngine) RecordTLSHandshakeTime added in v0.179.0

func (me *NilMetricsEngine) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)

RecordTLSHandshakeTime as a noop

func (*NilMetricsEngine) RecordTimeoutNotice added in v0.179.0

func (me *NilMetricsEngine) RecordTimeoutNotice(success bool)

RecordTimeoutNotice as a noop

Jump to

Keyboard shortcuts

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