Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GitOperationDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Name: "git_rest_git_operation_duration_seconds", Help: "Duration of git operations.", Buckets: prometheus.DefBuckets, }, []string{"operation"})
GitOperationDuration records the duration of git operations.
View Source
var GitOperationErrors = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "git_rest_git_operation_errors_total", Help: "Total git operation errors by operation type.", }, []string{"operation"})
GitOperationErrors counts git operation errors by operation type.
View Source
var HTTPRequestsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "git_rest_http_requests_total", Help: "Total HTTP requests by method, path template, and status code.", }, []string{"method", "path", "status"})
HTTPRequestsTotal counts HTTP requests by method, path template, and status code.
Functions ¶
This section is empty.
Types ¶
type BuildInfoMetrics ¶ added in v0.5.2
BuildInfoMetrics records build information as a Prometheus gauge.
func NewBuildInfoMetrics ¶ added in v0.5.2
func NewBuildInfoMetrics(version, commit string) BuildInfoMetrics
NewBuildInfoMetrics returns a BuildInfoMetrics that registers a git_rest_build_info gauge.
Click to show internal directories.
Click to hide internal directories.