amqp

package
v0.0.0-...-0b4f249 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client allows sending batches of Prometheus samples to AMQP.

func NewClient

func NewClient(logger log.Logger, address string, queue string, user string, password string, timeout time.Duration) (*Client, error)

NewClient creates a new Client.

func (Client) Name

func (c Client) Name() string

Name identifies the client as a amqp client.

func (*Client) Write

func (c *Client) Write(samples model.Samples) error

Write sends a batch of samples to AMQP.

func (*Client) WriteLog

func (c *Client) WriteLog(samples model.Samples) error

LogWrite only logs the samples without sending them to anywhere

type Metric

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

Jump to

Keyboard shortcuts

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