| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Telemetry.Catalogue
Description
The ecluse.* instrument catalogue: which metrics this build emits, and their wire names.
The catalogue is closed and its Universe instance enumerates it, so the runtime creates one
instrument per name and a new metric cannot reach a meter unregistered. What may label an
instrument is in Ecluse.Core.Telemetry.Metrics. docs/architecture/observability.md holds
the catalogue as prose.
Synopsis
- data MetricName
- = HttpServerRequestDuration
- | ServeDecision
- | RuleDenials
- | RuleEvalDuration
- | RuleEffectfulFailures
- | RuleBreakerState
- | ServeAdmissionInFlight
- | ServeAdmissionQueued
- | MemoryAdmissionBudgetBytes
- | MemoryAdmissionChargedBytes
- | MemoryAdmissionBrakeLevel
- | MemoryAdmissionWaiting
- | MemoryAdmissionPausedNow
- | MemoryAdmissionQueued
- | MemoryAdmissionShed
- | MemoryAdmissionPauses
- | MemoryAdmissionOverdraws
- | PublishBodyInFlightBytes
- | PublishBodyShed
- | MergeDivergence
- | UpstreamFetchDuration
- | UpstreamFetchErrors
- | MetadataCacheRequests
- | SingleVersionCacheRequests
- | AssembledCacheRequests
- | MetadataCacheRefused
- | MetadataCacheEntries
- | MetadataCacheResidentBytes
- | SingleVersionCacheResidentBytes
- | AssembledCacheResidentBytes
- | ServePerimeterFaults
- | ServeRelayAnomalies
- | MirrorEnqueued
- | MirrorEnqueueFailures
- | MirrorJobsProcessed
- | MirrorPublishDuration
- | DredgerVersions
- | CredentialRefresh
- | CredentialTokenTtlSeconds
- | AdvisorySyncAttempts
- | AdvisorySyncDuration
- | AdvisoryDatabaseAgeSeconds
- | AdvisorySourceAgeSeconds
- | AdvisoryCompileAccepted
- | AdvisoryCompileDropped
- | AdvisoryCompileRuns
- metricName :: MetricName -> Text
Documentation
data MetricName Source #
The catalogue of metric instruments Écluse emits. Queue backlog and DLQ depth are absent on purpose: those are cloud-native metrics, not signals Écluse re-emits.
Constructors
| HttpServerRequestDuration |
|
| ServeDecision |
|
| RuleDenials |
|
| RuleEvalDuration |
|
| RuleEffectfulFailures |
|
| RuleBreakerState |
|
| ServeAdmissionInFlight |
|
| ServeAdmissionQueued |
|
| MemoryAdmissionBudgetBytes |
|
| MemoryAdmissionChargedBytes |
|
| MemoryAdmissionBrakeLevel |
|
| MemoryAdmissionWaiting |
|
| MemoryAdmissionPausedNow |
|
| MemoryAdmissionQueued |
|
| MemoryAdmissionShed |
|
| MemoryAdmissionPauses |
|
| MemoryAdmissionOverdraws |
|
| PublishBodyInFlightBytes |
|
| PublishBodyShed |
|
| MergeDivergence |
|
| UpstreamFetchDuration |
|
| UpstreamFetchErrors |
|
| MetadataCacheRequests |
|
| SingleVersionCacheRequests |
|
| AssembledCacheRequests |
|
| MetadataCacheRefused |
|
| MetadataCacheEntries |
|
| MetadataCacheResidentBytes |
|
| SingleVersionCacheResidentBytes |
|
| AssembledCacheResidentBytes |
|
| ServePerimeterFaults |
|
| ServeRelayAnomalies |
|
| MirrorEnqueued |
|
| MirrorEnqueueFailures |
|
| MirrorJobsProcessed |
|
| MirrorPublishDuration |
|
| DredgerVersions |
|
| CredentialRefresh |
|
| CredentialTokenTtlSeconds |
|
| AdvisorySyncAttempts |
|
| AdvisorySyncDuration |
|
| AdvisoryDatabaseAgeSeconds |
|
| AdvisorySourceAgeSeconds |
|
| AdvisoryCompileAccepted |
|
| AdvisoryCompileDropped |
|
| AdvisoryCompileRuns |
|
Instances
| Generic MetricName Source # | |||||
Defined in Ecluse.Core.Telemetry.Catalogue Associated Types
| |||||
| Show MetricName Source # | |||||
Defined in Ecluse.Core.Telemetry.Catalogue Methods showsPrec :: Int -> MetricName -> ShowS # show :: MetricName -> String # showList :: [MetricName] -> ShowS # | |||||
| Eq MetricName Source # | |||||
Defined in Ecluse.Core.Telemetry.Catalogue | |||||
| Ord MetricName Source # | |||||
Defined in Ecluse.Core.Telemetry.Catalogue Methods compare :: MetricName -> MetricName -> Ordering # (<) :: MetricName -> MetricName -> Bool # (<=) :: MetricName -> MetricName -> Bool # (>) :: MetricName -> MetricName -> Bool # (>=) :: MetricName -> MetricName -> Bool # max :: MetricName -> MetricName -> MetricName # min :: MetricName -> MetricName -> MetricName # | |||||
| Universe MetricName Source # | |||||
Defined in Ecluse.Core.Telemetry.Catalogue Methods universe :: [MetricName] # | |||||
| type Rep MetricName Source # | |||||
Defined in Ecluse.Core.Telemetry.Catalogue type Rep MetricName = D1 ('MetaData "MetricName" "Ecluse.Core.Telemetry.Catalogue" "ecluse-0.4.0-inplace-ecluse-core" 'False) (((((C1 ('MetaCons "HttpServerRequestDuration" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ServeDecision" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "RuleDenials" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RuleEvalDuration" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RuleEffectfulFailures" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "RuleBreakerState" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ServeAdmissionInFlight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ServeAdmissionQueued" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "MemoryAdmissionBudgetBytes" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MemoryAdmissionChargedBytes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MemoryAdmissionBrakeLevel" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "MemoryAdmissionWaiting" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MemoryAdmissionPausedNow" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MemoryAdmissionQueued" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "MemoryAdmissionShed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MemoryAdmissionPauses" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MemoryAdmissionOverdraws" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PublishBodyInFlightBytes" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PublishBodyShed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MergeDivergence" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "UpstreamFetchDuration" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UpstreamFetchErrors" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MetadataCacheRequests" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "SingleVersionCacheRequests" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AssembledCacheRequests" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MetadataCacheRefused" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MetadataCacheEntries" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MetadataCacheResidentBytes" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "SingleVersionCacheResidentBytes" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AssembledCacheResidentBytes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ServePerimeterFaults" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ServeRelayAnomalies" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MirrorEnqueued" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MirrorEnqueueFailures" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "MirrorJobsProcessed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MirrorPublishDuration" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DredgerVersions" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "CredentialRefresh" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CredentialTokenTtlSeconds" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AdvisorySyncAttempts" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "AdvisorySyncDuration" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AdvisoryDatabaseAgeSeconds" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AdvisorySourceAgeSeconds" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "AdvisoryCompileAccepted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AdvisoryCompileDropped" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AdvisoryCompileRuns" 'PrefixI 'False) (U1 :: Type -> Type))))))) | |||||
metricName :: MetricName -> Text Source #
The wire name of a MetricName.