Documentation ¶
Index ¶
- Constants
- type Authentication
- type AvroJSONSerializer
- type Client
- func (c *Client) Close() error
- func (c *Client) InitConsumer() error
- func (c *Client) InitProducer() error
- func (*Client) Name() string
- func (c *Client) Receiver(ctx context.Context, sampleCh chan ReceivedSample) (done chan struct{}, err error)
- func (c *Client) WithSerializer(s Serializer) *Client
- func (c *Client) Write(ctx context.Context, samples model.Samples) error
- type ClientOptions
- type Config
- type JSONCompatSerializer
- type JSONSerializer
- type ReceivedSample
- type Sample
- type Serializer
Constants ¶
View Source
const AvroJSONDefaultSchema = `` /* 532-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication pulsar.Authentication
func NewAuthenticationTLS ¶
func NewAuthenticationTLS(certificatePath string, privateKeyPath string) Authentication
type AvroJSONSerializer ¶
type AvroJSONSerializer struct {
// contains filtered or unexported fields
}
AvroJSONSerializer represents a metrics serializer that writes Avro-JSON
func NewAvroJSONSerializer ¶
func NewAvroJSONSerializer(r io.Reader) (*AvroJSONSerializer, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows sending batches of Prometheus samples to InfluxDB.
func (*Client) InitConsumer ¶
func (*Client) InitProducer ¶
func (*Client) Receiver ¶
func (c *Client) Receiver(ctx context.Context, sampleCh chan ReceivedSample) (done chan struct{}, err error)
Receiver watches the queue for relevant samples, unserializes them and sends via the sampleCh. A channel is returned itself, to wait for the work loop to finish
func (*Client) WithSerializer ¶
func (c *Client) WithSerializer(s Serializer) *Client
type ClientOptions ¶
type ClientOptions pulsar.ClientOptions
type JSONCompatSerializer ¶
type JSONCompatSerializer struct { }
JSONCompatSerializer represents the sample in the upstream model
func NewJSONCompatSerializer ¶
func NewJSONCompatSerializer() *JSONCompatSerializer
type JSONSerializer ¶
type JSONSerializer struct { }
JSONSerializer represents the sample in the upstream model
func NewJSONSerializer ¶
func NewJSONSerializer() *JSONSerializer
type ReceivedSample ¶
Click to show internal directories.
Click to hide internal directories.