Documentation
¶
Index ¶
Constants ¶
const (
// SDKMetricsStream is the name of the stream read replica proxy's write metrics to
SDKMetricsStream = "stream:sdk_metrics"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a type for interacting with the Feature Flag Metric Service
func NewClient ¶
func NewClient(l log.Logger, addr string, token func() string, reg *prometheus.Registry) (Client, error)
NewClient creates a MetricStore
func (Client) PostMetrics ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is an in memory queue storing metrics requests. It flushes its contents whenever the max queue size in MB has been reached or the ticker expires, whichever occurs first. It exposes a channel via the Listen() method where it writes metrics to before flushing. This allows other processes to receive the metrics once the queue is full.
func (Queue) StoreMetrics ¶
StoreMetrics adds a metrics request to the queue
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream is a type for publishing metrics to a stream and implements the MetricStore interface
func (Stream) StoreMetrics ¶
StoreMetrics pushes metrics onto a stream
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is a type that is used by the Primary Proxy to consume metrics from ReadReplicas and forward them on to Harness Saas.