Documentation ¶
Index ¶
- type DetailedMetricsEngine
- type DummyMetricsEngine
- func (me *DummyMetricsEngine) RecordAdapterBidReceived(labels pbsmetrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
- func (me *DummyMetricsEngine) RecordAdapterCookieSync(adapter openrtb_ext.BidderName, gdprBlocked bool)
- func (me *DummyMetricsEngine) RecordAdapterPanic(labels pbsmetrics.AdapterLabels)
- func (me *DummyMetricsEngine) RecordAdapterPrice(labels pbsmetrics.AdapterLabels, cpm float64)
- func (me *DummyMetricsEngine) RecordAdapterRequest(labels pbsmetrics.AdapterLabels)
- func (me *DummyMetricsEngine) RecordAdapterTime(labels pbsmetrics.AdapterLabels, length time.Duration)
- func (me *DummyMetricsEngine) RecordConnectionAccept(success bool)
- func (me *DummyMetricsEngine) RecordConnectionClose(success bool)
- func (me *DummyMetricsEngine) RecordCookieSync(labels pbsmetrics.Labels)
- func (me *DummyMetricsEngine) RecordImps(implabels pbsmetrics.ImpLabels)
- func (me *DummyMetricsEngine) RecordLegacyImps(labels pbsmetrics.Labels, numImps int)
- func (me *DummyMetricsEngine) RecordRequest(labels pbsmetrics.Labels)
- func (me *DummyMetricsEngine) RecordRequestTime(labels pbsmetrics.Labels, length time.Duration)
- func (me *DummyMetricsEngine) RecordStoredImpCacheResult(cacheResult pbsmetrics.CacheResult, inc int)
- func (me *DummyMetricsEngine) RecordStoredReqCacheResult(cacheResult pbsmetrics.CacheResult, inc int)
- func (me *DummyMetricsEngine) RecordUserIDSet(userLabels pbsmetrics.UserLabels)
- type MultiMetricsEngine
- func (me *MultiMetricsEngine) RecordAdapterBidReceived(labels pbsmetrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
- func (me *MultiMetricsEngine) RecordAdapterCookieSync(adapter openrtb_ext.BidderName, gdprBlocked bool)
- func (me *MultiMetricsEngine) RecordAdapterPanic(labels pbsmetrics.AdapterLabels)
- func (me *MultiMetricsEngine) RecordAdapterPrice(labels pbsmetrics.AdapterLabels, cpm float64)
- func (me *MultiMetricsEngine) RecordAdapterRequest(labels pbsmetrics.AdapterLabels)
- func (me *MultiMetricsEngine) RecordAdapterTime(labels pbsmetrics.AdapterLabels, length time.Duration)
- func (me *MultiMetricsEngine) RecordConnectionAccept(success bool)
- func (me *MultiMetricsEngine) RecordConnectionClose(success bool)
- func (me *MultiMetricsEngine) RecordCookieSync(labels pbsmetrics.Labels)
- func (me *MultiMetricsEngine) RecordImps(implabels pbsmetrics.ImpLabels)
- func (me *MultiMetricsEngine) RecordLegacyImps(labels pbsmetrics.Labels, numImps int)
- func (me *MultiMetricsEngine) RecordRequest(labels pbsmetrics.Labels)
- func (me *MultiMetricsEngine) RecordRequestTime(labels pbsmetrics.Labels, length time.Duration)
- func (me *MultiMetricsEngine) RecordStoredImpCacheResult(cacheResult pbsmetrics.CacheResult, inc int)
- func (me *MultiMetricsEngine) RecordStoredReqCacheResult(cacheResult pbsmetrics.CacheResult, inc int)
- func (me *MultiMetricsEngine) RecordUserIDSet(userLabels pbsmetrics.UserLabels)
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