exporter

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

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PrometheusNamespace is the static namespace added to all our metrics.
	PrometheusNamespace string = "gpe"

	// The job name which deploys pages
	// https://docs.gitlab.com/ee/user/project/pages/#how-it-works
	PagesJobName string = "pages"
)

Variables

This section is empty.

Functions

func NewGitlabPagesExporter

func NewGitlabPagesExporter(
	apiUrl string,
	adminToken string,
	setMetricsForProjectsWithoutPages bool,
) *gitlabPagesExporter

NewGitlabPagesExporter creates a new instance of the exporter. Checks can be started with .Run().

Types

type CheckState

type CheckState string

CheckState defines the current state of the exporter.

const (
	Failed    CheckState = "failed"
	Succeeded CheckState = "succeeded"
)

Jump to

Keyboard shortcuts

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