Documentation ¶
Index ¶
- type DetailedMetricsEngine
- type DummyMetricsEngine
- func (me *DummyMetricsEngine) RecordAdapterBidReceived(labels pbsmetrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
- 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(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) RecordUserIDSet(userLabels pbsmetrics.UserLabels)
- type MultiMetricsEngine
- func (me *MultiMetricsEngine) RecordAdapterBidReceived(labels pbsmetrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
- 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(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) 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 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