metrics

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TasksDispatched measures the count of tasks dispatched to retrieve assets.
	TasksDispatched *prometheus.CounterVec

	// TasksCompleted measures the count of workers that returned after being spawned.
	TasksCompleted *prometheus.CounterVec

	// ServerServiceAssetsRetrieved measures the count of assets retrieved from server service to collect inventory for.
	ServerServiceAssetsRetrieved *prometheus.CounterVec

	// AssetsSent measures the count of assets sent over the asset channel to the collector.
	AssetsSent *prometheus.CounterVec

	// AssetsReceived measures the count of assets received from the asset/collector channels.
	AssetsReceived *prometheus.CounterVec

	// TaskQueueSize measures the number of tasks waiting for a getter worker .
	TaskQueueSize *prometheus.GaugeVec

	// ServerServiceQueryErrorCount counts the number of query errors - when querying the asset store.
	ServerServiceQueryErrorCount *prometheus.CounterVec

	// OOBCollectScheduleTimestamp includes the timestamp of the next OOB collection scheduled run.
	OOBCollectScheduleTimestamp *prometheus.GaugeVec

	// CollectTotalTimeSummary measures how the total time spent collecting inventory in each alloy run.
	CollectTotalTimeSummary *prometheus.SummaryVec

	// OOBCollectionActive indicates when inventory collection is active.
	OOBCollectionActive prometheus.Gauge
)

Functions

func AddLabels

func AddLabels(current, add prometheus.Labels) prometheus.Labels

AddLabels returns a new map of labels with the current and add labels included.

func ListenAndServe

func ListenAndServe()

ListenAndServeMetrics exposes prometheus metrics as /metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

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