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
}
func NewWriteClient ¶
func NewWriteClient(endpoint, instance, job string, reg *prometheus.Registry) (*Client, error)
func (*Client) Registry ¶
func (c *Client) Registry() *prometheus.Registry
func (*Client) Run ¶
Collect metrics and send them to remote server in interval. Does not block main thread execution
func (*Client) SetBasicAuth ¶
Set credentials needed for basic auth, return error if not provided
type ErrInvalidMetricDesc ¶
type ErrInvalidMetricDesc struct {
Desc string
}
func (*ErrInvalidMetricDesc) Error ¶
func (e *ErrInvalidMetricDesc) Error() string
type ErrMissingAuthCredentials ¶
type ErrMissingAuthCredentials struct{}
func (ErrMissingAuthCredentials) Error ¶
func (e ErrMissingAuthCredentials) Error() string
type ErrMissingEndpoint ¶
type ErrMissingEndpoint struct{}
func (ErrMissingEndpoint) Error ¶
func (e ErrMissingEndpoint) Error() string
type ErrMissingInstance ¶
type ErrMissingInstance struct{}
func (ErrMissingInstance) Error ¶
func (e ErrMissingInstance) Error() string
type ErrMissingJob ¶
type ErrMissingJob struct{}
func (ErrMissingJob) Error ¶
func (e ErrMissingJob) Error() string
type ErrMissingRegistry ¶
type ErrMissingRegistry struct{}
func (ErrMissingRegistry) Error ¶
func (e ErrMissingRegistry) Error() string
type ErrRemoteWriteFailed ¶
func NewErrRemoteWriteFailed ¶
func NewErrRemoteWriteFailed(status int, resBody io.ReadCloser) *ErrRemoteWriteFailed
func (*ErrRemoteWriteFailed) Error ¶
func (e *ErrRemoteWriteFailed) Error() string
Click to show internal directories.
Click to hide internal directories.