Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) RecordAccountCCPAChannelEnabledWarning(account string)
- func (m *Metrics) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)
- func (m *Metrics) RecordAccountGDPRChannelEnabledWarning(account string)
- func (m *Metrics) RecordAccountGDPRPurposeWarning(account string, purposeName string)
- func (m *Metrics) RecordAccountUpgradeStatus(account string)
- func (m *Metrics) RecordAdapterBidReceived(labels metrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
- func (m *Metrics) RecordAdapterConnections(adapterName openrtb_ext.BidderName, connWasReused bool, ...)
- func (m *Metrics) RecordAdapterGDPRRequestBlocked(adapterName openrtb_ext.BidderName)
- func (m *Metrics) RecordAdapterPanic(labels metrics.AdapterLabels)
- func (m *Metrics) RecordAdapterPrice(labels metrics.AdapterLabels, cpm float64)
- func (m *Metrics) RecordAdapterRequest(labels metrics.AdapterLabels)
- func (m *Metrics) RecordAdapterTime(labels metrics.AdapterLabels, length time.Duration)
- func (m *Metrics) RecordAdsCertReq(success bool)
- func (m *Metrics) RecordAdsCertSignTime(adsCertSignTime time.Duration)
- func (m *Metrics) RecordBidValidationCreativeSizeError(adapter openrtb_ext.BidderName, account string)
- func (m *Metrics) RecordBidValidationCreativeSizeWarn(adapter openrtb_ext.BidderName, account string)
- func (m *Metrics) RecordBidValidationSecureMarkupError(adapter openrtb_ext.BidderName, account string)
- func (m *Metrics) RecordBidValidationSecureMarkupWarn(adapter openrtb_ext.BidderName, account string)
- func (m *Metrics) RecordConnectionAccept(success bool)
- func (m *Metrics) RecordConnectionClose(success bool)
- func (m *Metrics) RecordCookieSync(status metrics.CookieSyncStatus)
- func (m *Metrics) RecordDNSTime(dnsLookupTime time.Duration)
- func (m *Metrics) RecordDebugRequest(debugEnabled bool, pubID string)
- func (m *Metrics) RecordImps(labels metrics.ImpLabels)
- func (m *Metrics) RecordModuleCalled(labels metrics.ModuleLabels, duration time.Duration)
- func (m *Metrics) RecordModuleExecutionError(labels metrics.ModuleLabels)
- func (m *Metrics) RecordModuleFailed(labels metrics.ModuleLabels)
- func (m *Metrics) RecordModuleSuccessNooped(labels metrics.ModuleLabels)
- func (m *Metrics) RecordModuleSuccessRejected(labels metrics.ModuleLabels)
- func (m *Metrics) RecordModuleSuccessUpdated(labels metrics.ModuleLabels)
- func (m *Metrics) RecordModuleTimeout(labels metrics.ModuleLabels)
- func (m *Metrics) RecordPrebidCacheRequestTime(success bool, length time.Duration)
- func (m *Metrics) RecordRequest(labels metrics.Labels)
- func (m *Metrics) RecordRequestPrivacy(privacy metrics.PrivacyLabels)
- func (m *Metrics) RecordRequestQueueTime(success bool, requestType metrics.RequestType, length time.Duration)
- func (m *Metrics) RecordRequestTime(labels metrics.Labels, length time.Duration)
- func (m *Metrics) RecordSetUid(status metrics.SetUidStatus)
- func (m *Metrics) RecordStoredDataError(labels metrics.StoredDataLabels)
- func (m *Metrics) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)
- func (m *Metrics) RecordStoredImpCacheResult(cacheResult metrics.CacheResult, inc int)
- func (m *Metrics) RecordStoredReqCacheResult(cacheResult metrics.CacheResult, inc int)
- func (m *Metrics) RecordStoredResponse(pubId string)
- func (m *Metrics) RecordSyncerRequest(key string, status metrics.SyncerCookieSyncStatus)
- func (m *Metrics) RecordSyncerSet(key string, status metrics.SyncerSetUidStatus)
- func (m *Metrics) RecordTLSHandshakeTime(tlsHandshakeTime time.Duration)
- func (m *Metrics) RecordTimeoutNotice(success bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { Registerer prometheus.Registerer Gatherer *prometheus.Registry // contains filtered or unexported fields }
Metrics defines the Prometheus metrics backing the MetricsEngine implementation.
func NewMetrics ¶
func NewMetrics(cfg config.PrometheusMetrics, disabledMetrics config.DisabledMetrics, syncerKeys []string, moduleStageNames map[string][]string) *Metrics
NewMetrics initializes a new Prometheus metrics instance with preloaded label values.
func (*Metrics) RecordAccountCCPAChannelEnabledWarning ¶ added in v0.244.0
func (*Metrics) RecordAccountCacheResult ¶
func (m *Metrics) RecordAccountCacheResult(cacheResult metrics.CacheResult, inc int)
func (*Metrics) RecordAccountGDPRChannelEnabledWarning ¶ added in v0.244.0
func (*Metrics) RecordAccountGDPRPurposeWarning ¶ added in v0.244.0
func (*Metrics) RecordAccountUpgradeStatus ¶ added in v0.244.0
func (*Metrics) RecordAdapterBidReceived ¶
func (m *Metrics) RecordAdapterBidReceived(labels metrics.AdapterLabels, bidType openrtb_ext.BidType, hasAdm bool)
func (*Metrics) RecordAdapterConnections ¶
func (m *Metrics) RecordAdapterConnections(adapterName 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 (*Metrics) RecordAdapterGDPRRequestBlocked ¶
func (m *Metrics) RecordAdapterGDPRRequestBlocked(adapterName openrtb_ext.BidderName)
func (*Metrics) RecordAdapterPanic ¶
func (m *Metrics) RecordAdapterPanic(labels metrics.AdapterLabels)
func (*Metrics) RecordAdapterPrice ¶
func (m *Metrics) RecordAdapterPrice(labels metrics.AdapterLabels, cpm float64)
func (*Metrics) RecordAdapterRequest ¶
func (m *Metrics) RecordAdapterRequest(labels metrics.AdapterLabels)
func (*Metrics) RecordAdapterTime ¶
func (m *Metrics) RecordAdapterTime(labels metrics.AdapterLabels, length time.Duration)
func (*Metrics) RecordAdsCertReq ¶ added in v0.223.0
func (*Metrics) RecordAdsCertSignTime ¶ added in v0.223.0
func (*Metrics) RecordBidValidationCreativeSizeError ¶ added in v0.238.0
func (m *Metrics) RecordBidValidationCreativeSizeError(adapter openrtb_ext.BidderName, account string)
func (*Metrics) RecordBidValidationCreativeSizeWarn ¶ added in v0.238.0
func (m *Metrics) RecordBidValidationCreativeSizeWarn(adapter openrtb_ext.BidderName, account string)
func (*Metrics) RecordBidValidationSecureMarkupError ¶ added in v0.238.0
func (m *Metrics) RecordBidValidationSecureMarkupError(adapter openrtb_ext.BidderName, account string)
func (*Metrics) RecordBidValidationSecureMarkupWarn ¶ added in v0.238.0
func (m *Metrics) RecordBidValidationSecureMarkupWarn(adapter openrtb_ext.BidderName, account string)
func (*Metrics) RecordConnectionAccept ¶
func (*Metrics) RecordConnectionClose ¶
func (*Metrics) RecordCookieSync ¶
func (m *Metrics) RecordCookieSync(status metrics.CookieSyncStatus)
func (*Metrics) RecordDNSTime ¶
func (*Metrics) RecordDebugRequest ¶ added in v0.212.0
func (*Metrics) RecordImps ¶
func (*Metrics) RecordModuleCalled ¶ added in v0.236.0
func (m *Metrics) RecordModuleCalled(labels metrics.ModuleLabels, duration time.Duration)
func (*Metrics) RecordModuleExecutionError ¶ added in v0.236.0
func (m *Metrics) RecordModuleExecutionError(labels metrics.ModuleLabels)
func (*Metrics) RecordModuleFailed ¶ added in v0.236.0
func (m *Metrics) RecordModuleFailed(labels metrics.ModuleLabels)
func (*Metrics) RecordModuleSuccessNooped ¶ added in v0.236.0
func (m *Metrics) RecordModuleSuccessNooped(labels metrics.ModuleLabels)
func (*Metrics) RecordModuleSuccessRejected ¶ added in v0.236.0
func (m *Metrics) RecordModuleSuccessRejected(labels metrics.ModuleLabels)
func (*Metrics) RecordModuleSuccessUpdated ¶ added in v0.236.0
func (m *Metrics) RecordModuleSuccessUpdated(labels metrics.ModuleLabels)
func (*Metrics) RecordModuleTimeout ¶ added in v0.236.0
func (m *Metrics) RecordModuleTimeout(labels metrics.ModuleLabels)
func (*Metrics) RecordPrebidCacheRequestTime ¶
func (*Metrics) RecordRequest ¶
func (*Metrics) RecordRequestPrivacy ¶
func (m *Metrics) RecordRequestPrivacy(privacy metrics.PrivacyLabels)
func (*Metrics) RecordRequestQueueTime ¶
func (*Metrics) RecordRequestTime ¶
func (*Metrics) RecordSetUid ¶ added in v0.173.0
func (m *Metrics) RecordSetUid(status metrics.SetUidStatus)
func (*Metrics) RecordStoredDataError ¶
func (m *Metrics) RecordStoredDataError(labels metrics.StoredDataLabels)
func (*Metrics) RecordStoredDataFetchTime ¶
func (m *Metrics) RecordStoredDataFetchTime(labels metrics.StoredDataLabels, length time.Duration)
func (*Metrics) RecordStoredImpCacheResult ¶
func (m *Metrics) RecordStoredImpCacheResult(cacheResult metrics.CacheResult, inc int)
func (*Metrics) RecordStoredReqCacheResult ¶
func (m *Metrics) RecordStoredReqCacheResult(cacheResult metrics.CacheResult, inc int)
func (*Metrics) RecordStoredResponse ¶ added in v0.219.0
func (*Metrics) RecordSyncerRequest ¶ added in v0.173.0
func (m *Metrics) RecordSyncerRequest(key string, status metrics.SyncerCookieSyncStatus)
func (*Metrics) RecordSyncerSet ¶ added in v0.173.0
func (m *Metrics) RecordSyncerSet(key string, status metrics.SyncerSetUidStatus)
func (*Metrics) RecordTLSHandshakeTime ¶
func (*Metrics) RecordTimeoutNotice ¶
Click to show internal directories.
Click to hide internal directories.