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" )
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 // contains filtered or unexported fields }
func NewMetrics ¶
func NewMetrics(reg *prometheus.Registry) *Metrics
See: https://consoledot.pages.redhat.com/docs/dev/platform-documentation/understanding-slo.html See: https://prometheus.io/docs/tutorials/understanding_metric_types/#types-of-metrics
func (*Metrics) RecordMessageLatency ¶
func (*Metrics) RecordMessageResult ¶
func (Metrics) Registry ¶
func (m Metrics) Registry() *prometheus.Registry
Click to show internal directories.
Click to hide internal directories.