prometheus

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPrometheusAddr      = ":26661"
	DefaultPrometheusNamespace = "lightchain"
)

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(enabled bool, addr string, namespace string, ethDialUrl string) Config

type HttpConfig

type HttpConfig struct {
	Addr         string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type Node

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

func NewNode

func NewNode(cfg Config) *Node

func (*Node) Registry

func (n *Node) Registry() *prometheus.Registry

func (*Node) Start

func (n *Node) Start() error

func (*Node) Stop

func (n *Node) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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