Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeWriteRequest ¶
func DecodeWriteRequest(r io.Reader) (*prompb.WriteRequest, error)
DecodeWriteRequest from an io.Reader into a prompb.WriteRequest, handling snappy decompression.
func ProcessMetrics ¶
func ProcessMetrics(r io.Reader) (*pb.MetricsBatch, error)
Types ¶
type MetricsHandler ¶
type MetricsHandler struct { Options Options Store MetricsStore }
func NewMetricsHandler ¶
func NewMetricsHandler(options Options, store []byte) *MetricsHandler
func (*MetricsHandler) RemoteWriteHandler ¶
func (mh *MetricsHandler) RemoteWriteHandler(w http.ResponseWriter, r *http.Request)
type MetricsStatus ¶
type MetricsStore ¶
type MetricsStore []byte
Click to show internal directories.
Click to hide internal directories.