metrics

package
v1.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricFetchFailedTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "promfetch_metric_fetch_failed_total",
			Help: "Number of non fetched metrics without be an normal error.",
		},
		[]string{"organization_id", "space_id", "app_id", "organization_name", "space_name", "app_name", "index", "instance_id"},
	)
	MetricFetchSuccessTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "promfetch_metric_fetch_success_total",
			Help: "Number of fetched metrics succeeded for an app (app instance call are added).",
		},
		[]string{"organization_id", "space_id", "app_id", "organization_name", "space_name", "app_name"},
	)
	LatestScrapeRoute = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "promfetch_latest_time_scrape_route",
			Help: "Last time that route has been scraped in seconds.",
		},
		[]string{},
	)
	ScrapeRouteFailedTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "promfetch_scrape_route_failed_total",
			Help: "Number of non fetched metrics without be an normal error.",
		},
		[]string{},
	)
)

Functions

func RouteToLabel

func RouteToLabel(route *models.Route) prometheus.Labels

func RouteToLabelNoInstance

func RouteToLabelNoInstance(route *models.Route) prometheus.Labels

Types

This section is empty.

Jump to

Keyboard shortcuts

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