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
}
Click to show internal directories.
Click to hide internal directories.