collector

package
v0.0.0-...-0044c33 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package collector is a simple collector for

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expvar

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

Expvar provides the ability to receive metrics from internal services using expvar.

func New

func New(host string) (*Expvar, error)

New creates Expvar for collection metrics.

func (*Expvar) Collect

func (exp *Expvar) Collect() (map[string]interface{}, error)

Collect captures metrics on the host configure to this endpoint.

Jump to

Keyboard shortcuts

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