metrics

package
v0.0.0-...-4aee4b6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogsSentFailure = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "logs_sent_errors_total",
			Help: "Number of non transmitted logs due to failures.",
		},
		[]string{"instance_id", "binding_id", "plan_name", "org", "space", "app"},
	)
	LogsSent = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "logs_sent_total",
			Help: "Number of transmitted logs.",
		},
		[]string{"instance_id", "binding_id", "plan_name", "org", "space", "app"},
	)
	LogsSentWithoutCache = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "logs_sent_without_cache_total",
			Help: "Number of transmitted logs without cache system.",
		},
		[]string{"instance_id", "binding_id", "plan_name", "org", "space", "app"},
	)
	LogsSentDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "logs_sent_duration",
			Help:    "Summary of logs sent duration.",
			Buckets: []float64{0.005, 0.01, 0.1, 0.25, 0.5, 1},
		},
		[]string{"instance_id", "binding_id", "plan_name", "org", "space", "app"},
	)
	DbStatsCnxMaxOpen = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "logs_db_cnx_max_open",
			Help: "Maximum number of open connections to the database",
		},
	)
	DbStatsCnxUsed = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "logs_db_cnx_used",
			Help: "The number of connections currently in use",
		},
	)
	DbStatsCnxIdle = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "logs_db_cnx_idle",
			Help: "The number of idle connections",
		},
	)
	DbStatsCnxWaitDuration = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "logs_db_cnx_wait_duration",
			Help: "The total time blocked waiting for a new connection in seconds",
		},
	)
	DbStatus = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "logs_db_status",
			Help: "Current status of database connectivity, 0 is error",
		},
	)
)

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