prometheus

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrometheusRouteCacheStatusCounter *prometheus.CounterVec
	PrometheusActiveConnGauge         *prometheus.GaugeVec
	PrometheusProcessDurationSummary  *prometheus.SummaryVec
	PrometheusConnDurationSummary     *prometheus.SummaryVec
)

Functions

This section is empty.

Types

type PrometheusAuthBasic

type PrometheusAuthBasic struct {
	Username string
	Password string
}

type PrometheusConfigInput

type PrometheusConfigInput struct {
	Config *ttutils.ConfigRoot
	Logger *logrus.Entry
}

type PrometheusMetric

type PrometheusMetric struct {
	Metric interface{}
	Labels []string
	Action string
	Values interface{}
}

type PrometheusServer

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

func NewPrometheus

func NewPrometheus(prometheusConfig *PrometheusConfigInput) *PrometheusServer

func (*PrometheusServer) Fire

func (p *PrometheusServer) Fire(metric *PrometheusMetric) error

func (*PrometheusServer) Initialize

func (p *PrometheusServer) Initialize()

func (*PrometheusServer) IsInitialized

func (p *PrometheusServer) IsInitialized() bool

func (*PrometheusServer) Reset

func (p *PrometheusServer) Reset(newConfig *ttutils.ConfigRoot) (*PrometheusServer, error)

func (*PrometheusServer) Shutdown

func (p *PrometheusServer) Shutdown() error

func (*PrometheusServer) Start

func (p *PrometheusServer) Start() error

Jump to

Keyboard shortcuts

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