metrics

package
v0.0.0-...-563c282 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartMetricsServer

func StartMetricsServer(opts ...MetricsServerOption) chan error

StartMetricsServer starts the metrics server in a separate go routine and returns an error channel.

Types

type ApplicationClientMetrics

type ApplicationClientMetrics struct {
	AppsCreated *prometheus.CounterVec
	AppsUpdated *prometheus.CounterVec
	AppsDeleted *prometheus.CounterVec
	Errors      prometheus.Counter
}

func NewApplicationClientMetrics

func NewApplicationClientMetrics() *ApplicationClientMetrics

type ApplicationWatcherMetrics

type ApplicationWatcherMetrics struct {
	AppsWatched prometheus.Gauge
	AppsAdded   prometheus.Counter
	AppsUpdated prometheus.Counter
	AppsRemoved prometheus.Counter
	Errors      prometheus.Counter
}

ApplicationWatcherMetrics holds metrics about Applications watched by the agent

func NewApplicationWatcherMetrics

func NewApplicationWatcherMetrics() *ApplicationWatcherMetrics

NewApplicationWatcherMetrics returns a new instance of ApplicationMetrics

type MetricsServerOption

type MetricsServerOption func(*MetricsServerOptions)

func WithListener

func WithListener(hostname string, port int) MetricsServerOption

type MetricsServerOptions

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

Jump to

Keyboard shortcuts

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