metrics

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	AuthCount     prometheus.Counter
	AuthLatencyMs prometheus.Gauge
	AuthErr       prometheus.Counter

	DeviceMetaUpdateCount     prometheus.Counter
	DeviceMetaUpdateLatencyMs prometheus.Gauge
	DeviceMetaUpdateErr       prometheus.Counter

	DeviceRepoRequestCount     prometheus.Counter
	DeviceRepoRequestLatencyMs prometheus.Gauge
	DeviceRepoRequestErr       prometheus.Counter

	DeviceDataRequestCount     prometheus.Counter
	DeviceDataRequestLatencyMs prometheus.Gauge
	DeviceDataRequestErr       prometheus.Counter

	ConnectorLoginCount     prometheus.Counter
	ConnectorLoginLatencyMs prometheus.Gauge
	ConnectorLoginErr       prometheus.Counter

	ConnectorSubscribeCount     prometheus.Counter
	ConnectorSubscribeLatencyMs prometheus.Gauge
	ConnectorSubscribeErr       prometheus.Counter

	ConnectorPublishCount     prometheus.Counter
	ConnectorPublishLatencyMs prometheus.Gauge
	ConnectorPublishErr       prometheus.Counter

	NotificationPublishCount     prometheus.Counter
	NotificationPublishLatencyMs prometheus.Gauge
	NotificationPublishErr       prometheus.Counter

	NotificationReadCount     prometheus.Counter
	NotificationReadLatencyMs prometheus.Gauge
	NotificationReadErr       prometheus.Counter

	NotificationDeleteCount     prometheus.Counter
	NotificationDeleteLatencyMs prometheus.Gauge
	NotificationDeleteErr       prometheus.Counter

	UnexpectedDeviceOnlineStateErr  prometheus.Counter
	UnexpectedDeviceOfflineStateErr prometheus.Counter
	UnexpectedDeviceRepoMetadataErr prometheus.Counter
	UnexpectedDeviceDataErr         prometheus.Counter
	UnexpectedNotificationStateErr  prometheus.Counter
	UncategorizedErr                prometheus.Counter

	ProcessDeploymentErr                              prometheus.Counter
	ProcessStartErr                                   prometheus.Counter
	UnexpectedProcessInstanceStateErr                 prometheus.Counter
	ProcessUnexpectedCommandCountError                prometheus.Counter
	ProcessInstanceDurationMs                         prometheus.Gauge
	ProcessPreparedDeploymentErr                      prometheus.Counter
	ProcessUnexpectedPreparedDeploymentSelectablesErr prometheus.Counter

	EventProcessDeploymentErr                              prometheus.Counter
	UnexpectedEventProcessInstanceStateErr                 prometheus.Counter
	EventProcessInstanceDurationMs                         prometheus.Gauge
	EventProcessPreparedDeploymentErr                      prometheus.Counter
	EventProcessUnexpectedPreparedDeploymentSelectablesErr prometheus.Counter
}

func NewMetrics

func NewMetrics(reg prometheus.Registerer) *Metrics

Jump to

Keyboard shortcuts

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