# Functions
Module is a fx module that provides Prometheus registry and invokes registering metrics handler.
ProvidePrometheusRegistry creates a new Prometheus Registry and provides it via Fx.
RegisterMetricsHandler registers the metrics handler on the promhttp server.
# Constants
AcceptedTokensMetricName - total work measured in tokens of all accepted requests.
AgentGroupLabel - label for agent group.
CacheLookupHitsTotalMetricName - metric for cumulative number of cache lookup hits.
CacheLookupMissesTotalMetricName - metric for cumulative number of cache lookup misses.
CacheOperationResultsTotalMetricName - metric for cumulative number of cache operation results.
CacheOperationStatusError - cache operation error.
CacheOperationStatusLabel - label for cache operation status.
CacheOperationStatusSuccess - cache operation success.
CacheOperationTypeDelete - cache delete operation.
CacheOperationTypeLabel - label for type of cache operation.
CacheOperationTypeLookup - cache lookup operation.
CacheOperationTypeUpsert - cache upsert operation.
CacheTypeLabel - label for cache type.
ClassifierCounterTotalMetricName - name of the counter describing times classifier was triggered.
ClassifierIndexLabel - prometheus label specifying clasiffier index.
ComponentIDLabel - index of component in circuit label.
ConcurrencyLimiterCounterTotalMetricName - name of the counter describing times concurrency limiter was triggered.
ControlPointLabel - label for control point.
DecisionTypeAccepted - decision type accepted.
DecisionTypeLabel - label for decision type rejected or accepted.
DecisionTypeRejected - decision type rejected.
DefaultAgentGroup - default agent group.
DefaultWorkloadIndex - when workload is not specified this value is used.
DistCacheBackupPartitionsCountMetricsName - metric for the current number of non-empty backups owned by given node.
DistCacheBackupPartitionsLength - metric for current length of backup partitions on given node.
DistCacheDeleteHitsMetricName - metric for number of deletion requests resulting in an item being removed.
DistCacheDeleteMissesMetricName - metric for number of deletion requests for missing keys.
DistCacheEntriesTotalMetricName - metric for the total number of entries (including replicas) stored during the life of this instance.
DistCacheEvictedTotalMetricName - metric for number of entries removed from cache to free memory for new entries.
DistCacheFragmentMigrationEventsTotalMetricsName - metric for cumulative number of fragment migration (outgoing) events.
DistCacheFragmentReceivedEventsTotalMetricsName - metric for cumulative number of fragment received (incoming) events.
DistCacheGetHitsMetricName - metric for number of entries that have been requested and found present.
DistCacheGetMissesMetricName - metric for number of entries that have been requested and not found.
DistCacheMemberIDLabel - label specifying unique identifier of the node in the olric cluster.
DistCacheMemberNameLabel - label specifying name of the node in the olric cluster.
DistCachePartitionsCountMetricsName - metric for the current number of non-empty partitions owned by given node.
DistCachePartitionsLength - metric for current length of partitions on given node.
FairnessDelayedTokensMetricName - metric used for counting tokens delayed per request measured at fairness queues within the same workload.
FairnessOnTimeMetricName - metric used for counting requests that are on time, neither preempted nor delayed measured at fairness queues within the same workload.
FairnessPreemptedTokensMetricName - metric used for counting tokens preempted per request measured at fairness queues within the same workload.
FlowControlCheckDecisionTypeLabel - label for decision type dropped or accepted.
FlowControlCheckErrorReasonLabel - label for error reason on FCS Check request.
FlowControlCheckRejectReasonLabel - label for reject reason on FCS Check request.
FlowControlDecisionsMetricName - counter for Check requests per decision type.
FlowControlEndsMetricName - counter for flow ends.
FlowControlRejectReasonsMetricName - metric for reject reason on FCS Check requests.
FlowControlRequestsMetricName - counter for Check requests for flowcontrol.
FlowStatusError - flow status Error.
FlowStatusLabel - flow status.
FlowStatusOK - flow status OK.
FluxMeterMetricName name of fluxmeter metrics.
FluxMeterNameLabel - specifying flux meter's name.
HandlerName - name of the http handler.
HTTPErrorMetricName - metric from http server.
HTTPRequestLatencyMetricName - metric from http server.
HTTPRequestMetricName - metric from http server.
IncomingTokensMetricName - total work measured in tokens of all incoming requests.
InfiniteSignalReadingsTotalMetricName - counts infinite signal readings.
InfraMeterNameLabel - Label for name of infra meter in resources.
InstanceLabel used to identify the host name on which an Aperture process is running.
InvalidFluxMeterTotalMetricName - counts invalid flux meters.
InvalidSignalReadingsTotalMetricName - counts invalid signal readings.
LimiterDroppedLabel - label to indicate that the particular limiter has dropped the request.
MethodLabel - label from http method.
PersistentCacheGetHitsMetricName - metric for cumulative number of persistent cache hits.
PersistentCacheGetMissesMetricName - metric for cumulative number of persistent cache misses.
PersistentCacheOperationDelete - delete operation.
PersistentCacheOperationDurationMetricName - metric for duration of persistent cache operations.
PersistentCacheOperationGet - get operation.
PersistentCacheOperationLabel - label to define type of operation performed on persistent cache.
PersistentCacheOperationPut - put operation.
PersistentCacheTypeInMemory - in_memory layer of persistent cache.
PersistentCacheTypeLabel - denotes if hit or miss sources from in_memory of object_storage layer.
PersistentCacheTypeObjectStorage - object_storage layer of persistent cache.
PolicyHashLabel - policy hash label.
PolicyNameLabel - policy name label.
ProcessUUIDLabel used to uniquely identify an Aperture process.
RateLimiterCounterTotalMetricName - name of the counter describing times rate limiter was triggered.
RejectedTokensMetricName - total work measured in tokens of all rejected requests.
RequestInQueueDurationMetricName - metric used for grouping durations for requests in queue of Scheduler.
RollupMetricName - logs rollup histogram.
SamplerCounterTotalMetricName - name of the counter describing times sampler was triggered.
SamplerDroppedLabel - label to indicate that the particular sampler has dropped the request.
ScrapeInterval - Scrape interval for metrics.
ServiceLookupsMetricName - counter for IP to services lookups.
ServiceLookupsStatusError - service lookup status Error.
ServiceLookupsStatusLabel - status for ServiceLookupsMetricName.
ServiceLookupsStatusOK - service lookup status OK.
SignalNameLabel - label for saving circuit signal metrics.
SignalReadingMetricName - used in circuit metrics.
StatusCodeLabel - http status code.
SubCircuitIDLabel - label for saving circuit id in signal metrics.
TokenBucketAvailableMetricName - a gauge that tracks the number of tokens available in token bucket.
TokenBucketCapacityMetricName - a gauge that tracks the capacity of token bucket.
TokenBucketFillRateMetricName - a gauge that tracks the fill rate of token bucket.
TokenBucketLMMetricName - a gauge that tracks the load multiplier.
WorkloadCounterMetricName - metric used for counting workload requests.
WorkloadDelayedTokensMetricName - metric used for counting tokens delayed per request measured end-to-end in the scheduler across all workloads.
WorkloadIndexLabel - label for choosing correct workload.
WorkloadLatencyCountMetricName - metric from workload histogram.
WorkloadLatencyMetricName - metric used for grouping latencies per workload.
WorkloadLatencySumMetricName - metric from workload histogram.
WorkloadOnTimeMetricName - metric used for counting requests that are on time, neither preempted nor delayed measured end-to-end in the scheduler across all workloads.
WorkloadPreemptedTokensMetricName - metric used for counting tokens preempted per request measured end-to-end in the scheduler across all workloads.
# Structs
MetricsConfig holds configuration for service metrics.