middleware

package
v0.0.0-...-51001cb Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveGitRepoCount = promauto.NewGaugeVec(prometheus.GaugeOpts{
	Name:        "active_git_repo_count",
	Help:        "no of active git repository ",
	ConstLabels: constLabels,
}, []string{})
View Source
var CommitStatParsingErrorCounter = promauto.NewCounterVec(
	prometheus.CounterOpts{
		Name:        "commit_stats_parsing_errors_counter",
		Help:        "total number of parsing errors encountered while processing git commit stats.",
		ConstLabels: constLabels,
	},
	[]string{})
View Source
var GitMaterialPollCounter = promauto.NewCounterVec(
	prometheus.CounterOpts{
		Name:        "git_pull",
		Help:        "no of update received in given repo and branch",
		ConstLabels: constLabels,
	},
	[]string{})
View Source
var GitMaterialUpdateCounter = promauto.NewCounterVec(
	prometheus.CounterOpts{
		Name:        "total_material_update",
		Help:        "no of update received in given repo and branch",
		ConstLabels: constLabels,
	},
	[]string{})
View Source
var GitOperationDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{
	Name: "git_operation_duration_seconds",
	Help: "Duration of git operation request",
}, []string{"method", "status"})
View Source
var GitPullDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{
	Name:        "git_pull_duration_seconds",
	Help:        "Duration of git pull request ",
	ConstLabels: constLabels,
}, []string{"status", "updated"})
View Source
var PanicCounter = promauto.NewCounterVec(
	prometheus.CounterOpts{
		Name:        "panic",
		Help:        "panic in the app",
		ConstLabels: constLabels,
	},
	[]string{})

Functions

func PrometheusMiddleware

func PrometheusMiddleware(next http.Handler) http.Handler

prometheusMiddleware implements mux.MiddlewareFunc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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