instrumentation

package
v0.0.0-...-7613b02 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameSpace                                      = "content_sources"
	PulpConnectivity                               = "pulp_connectivity"
	HttpStatusHistogram                            = "http_status_histogram"
	RepositoriesTotal                              = "repositories_total"
	RepositoryConfigsTotal                         = "repository_configs_total"
	PublicRepositories36HourIntrospectionTotal     = "public_repositories_36_hour_introspection_total"
	PublicRepositoriesWithFailedIntrospectionTotal = "public_repositories_with_failed_introspection_total"
	CustomRepositories36HourIntrospectionTotal     = "custom_repositories_36_hour_introspection_total"
	MessageLatency                                 = "message_latency"
	MessageResultTotal                             = "message_result_total"
	OrgTotal                                       = "org_total"
	RHCertExpiryDays                               = "rh_cert_expiry_days"
	TaskStats                                      = "task_stats"
	TaskStatsLabelPendingCount                     = "task_stats_pending_count"
	TaskStatsLabelOldestWait                       = "task_stats_oldest_wait"
	TaskStatsLabelAverageWait                      = "task_stats_average_wait"
	RHReposSnapshotNotCompletedInLast36HoursCount  = "rh_repos_snapshot_not_completed_in_last_36_hour_count"
	TaskPendingTimeAverageByType                   = "task_pending_time_average_by_type"
	TemplatesCount                                 = "templates_count"
	TemplatesUseLatestCount                        = "templates_use_latest_count"
	TemplatesUseDateCount                          = "templates_use_date_count"
	TemplatesUpdatedInLast24HoursCount             = "templates_updated_in_last_24_hour_count"
	TemplatesAgeAverage                            = "templates_age_average"
)

TODO Update metric names according to: https://prometheus.io/docs/instrumenting/writing_exporters/#naming

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	HttpStatusHistogram prometheus.HistogramVec

	// Custom metrics
	PulpConnectivity                               prometheus.Gauge
	RepositoriesTotal                              prometheus.Gauge
	RepositoryConfigsTotal                         prometheus.Gauge
	PublicRepositories36HourIntrospectionTotal     prometheus.GaugeVec
	PublicRepositoriesWithFailedIntrospectionTotal prometheus.Gauge
	CustomRepositories36HourIntrospectionTotal     prometheus.GaugeVec
	MessageResultTotal                             prometheus.CounterVec
	MessageLatency                                 prometheus.Histogram
	TaskStats                                      prometheus.GaugeVec
	OrgTotal                                       prometheus.Gauge
	RHCertExpiryDays                               prometheus.Gauge
	RHReposSnapshotNotCompletedInLast36HoursCount  prometheus.Gauge
	TaskPendingTimeAverageByType                   prometheus.GaugeVec
	TemplatesCount                                 prometheus.Gauge
	TemplatesUseLatestCount                        prometheus.Gauge
	TemplatesUseDateCount                          prometheus.Gauge
	TemplatesUpdatedInLast24HoursCount             prometheus.Gauge
	TemplatesAgeAverage                            prometheus.Gauge
	// contains filtered or unexported fields
}

func (*Metrics) RecordMessageLatency

func (m *Metrics) RecordMessageLatency(msgTime time.Time)

func (*Metrics) RecordMessageResult

func (m *Metrics) RecordMessageResult(success bool)

func (Metrics) Registry

func (m Metrics) Registry() *prometheus.Registry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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