prometheus

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncCommitStatusUpdateCounter

func IncCommitStatusUpdateCounter(repoSlug string, status string)

func InstrumentGhCall

func InstrumentGhCall(resp *github.Response) prometheus.Labels

This function instrument API calls to GitHub API

func InstrumentProxyUpstreamRequest

func InstrumentProxyUpstreamRequest(resp *http.Response) prometheus.Labels

This function instrument upstream webhooks for the WH forwarding/multiplexing feature

func InstrumentWebhookHit

func InstrumentWebhookHit(parsing_status string)

This function instrument Webhook hits and parsing of their content

func PublishPrMetrics

func PublishPrMetrics(pc PrCounters, repoSlug string)

Types

type PrCounters

type PrCounters struct {
	OpenPrs           int
	OpenPromotionPrs  int
	PrWithStaleChecks int
}

Jump to

Keyboard shortcuts

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