remote

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricToLabelProtos

func MetricToLabelProtos(metric model.Metric) []*prompb.Label

MetricToLabelProtos builds a []*prompb.Label from a model.Metric

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

MODIFIED Client allows reading and writing from/to a remote HTTP endpoint.

func NewClient

func NewClient(index int, conf *ClientConfig) (*Client, error)

MODIFIED NewClient creates a new Client.

func (*Client) Store

func (c *Client) Store(ctx context.Context, req *prompb.WriteRequest) error

Store sends a batch of samples to the HTTP endpoint.

type ClientConfig

type ClientConfig struct {
	//URL     *config_util.URL
	URL *url.URL
	//Timeout model.Duration
	Timeout time.Duration
}

MODIFIED ClientConfig configures a Client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL