telemetry

package
v0.0.0-...-cba18c7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

package telemetry

This package defines Autodiscovery's telemetry metrics.

Documentation

Overview

Package telemetry defines the Autodiscovery telemetry metrics.

Index

Constants

View Source
const (

	// ResourceKubeService represents kubernetes service entities
	ResourceKubeService = "k8s_service"
	// ResourceKubeEndpoint represents kubernetes endpoint entities
	ResourceKubeEndpoint = "k8s_endpoint"
)

Variables

View Source
var (
	// ScheduledConfigs tracks how many configs are scheduled.
	ScheduledConfigs = telemetry.NewGaugeWithOpts(
		subsystem,
		"scheduled_configs",
		[]string{"provider", "type"},
		"Number of configs scheduled in Autodiscovery by provider and type.",
		commonOpts,
	)

	// WatchedResources tracks how many resources are watched by AD listeners.
	WatchedResources = telemetry.NewGaugeWithOpts(
		subsystem,
		"watched_resources",
		[]string{"listener", "kind"},
		"Number of resources watched in Autodiscovery by listener and kind.",
		commonOpts,
	)

	// Errors tracks the current number of AD configs with errors by AD providers.
	Errors = telemetry.NewGaugeWithOpts(
		subsystem,
		"errors",
		[]string{"provider"},
		"Current number of Autodiscovery configs with errors by provider.",
		commonOpts,
	)

	// PollDuration tracks the configs poll duration by AD providers.
	PollDuration = telemetry.NewHistogramWithOpts(
		subsystem,
		"poll_duration",
		[]string{"provider"},
		"Poll duration distribution by config provider (in seconds).",

		prometheus.DefBuckets,
		telemetry.Options{NoDoubleUnderscoreSep: true},
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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