qan

package
v2.17.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package qan contains business logic of working with QAN.

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 represents qan-api client for data collection.

func NewClient

func NewClient(cc *grpc.ClientConn, db *reform.DB) *Client

NewClient returns new client for given gRPC connection.

func (*Client) Collect

func (c *Client) Collect(ctx context.Context, metricsBuckets []*agentpb.MetricsBucket) error

Collect adds labels to the data from pmm-agent and sends it to qan-api.

Jump to

Keyboard shortcuts

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