# Functions
New returns an instance of Provider, along with its restful.WebService that opens endpoints to post new fake metrics.
# Constants
AnnotationPath is used for configuration which path is used for querying metrics.
AnnotationPort is used for configuration which port is used for querying metrics.
AnnotationProtocol is used for configuration which protocol is used for querying metrics.
DefaultPath used when querying for metrics.
DefaultPort used when querying for metrics.
DefaultProtocol used when querying for metrics.
MetricActiveProcesses provides the number of processes that are currently processing requests.
MetricIdleProcesses provides the number of processes that are currently idle (waiting for requests).
MetricListenQueue provides the number of requests (backlog) currently waiting for a free process.
MetricListenQueueLen provides the maximum allowed size of the listen queue.
MetricMaxActiveProcesses provides the maximum number of concurrently active processes.
MetricTotalProcesses provides the current total number of processes.
# Structs
CustomMetricResource wraps provider.CustomMetricInfo in a struct which stores the Name and Namespace of the resource So that we can accurately store and retrieve the metric as if this were an actual metrics server.
Provider is a sample implementation of provider.MetricsProvider which stores a map of fake metrics.