metrics

package
Version: v0.0.0-...-0f20b9f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Up = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "up",
		Help:      "wether the service is up or not",
	})
	WebhooksReceived = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Subsystem: "webhooks",
		Name:      "received_total",
		Help:      "total number of received webhooks",
	})
	WebhooksBytesRead = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Subsystem: "webhooks",
		Name:      "bytes_read_total",
		Help:      "total number of incoming bytes",
	})
	WebhooksErrors = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Subsystem: "webhooks",
		Name:      "errors_total",
		Help:      "total number of webhooks errors",
	})
	WebhooksInvalid = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Subsystem: "webhooks",
		Name:      "invalid_total",
		Help:      "total number of invalid webhooks",
	}, []string{"reason"})
	WebhooksValid = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Subsystem: "webhooks",
		Name:      "valid_total",
		Help:      "total number of valid webhooks",
	}, []string{"project"})
	AnnouncementSuccesses = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Subsystem: "announcer",
		Name:      "success_total",
		Help:      "total number of announcement successes",
	}, []string{"project"})
	AnnouncementErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Subsystem: "announcer",
		Name:      "errors_total",
		Help:      "total number of announcement errors",
	}, []string{"status"})
	LastConfigReloadTime = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "last_config_reload_time_seconds",
		Help:      "unix timestamp of when the configuration was last reloaded",
	})
	LastConfigReloadSuccessfull = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "last_config_reload_successful",
		Help:      "wether or not the last configuration reload was successful",
	})
)

Metrics provided through prometheus

Functions

func Register

func Register(metricsPath string)

Register registers all the metrics and sets the http handler

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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