metrics

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package metrics contains structs and helpers for interacting with Prometheus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counters

type Counters struct {
	PackagingErrorCounter    *prometheus.CounterVec
	PackagingProcessDuration *prometheus.CounterVec
}

CustomMetrics holds names and types of all custom prometheus metrics used in this application.

func (Counters) AddPackagingErrors

func (c Counters) AddPackagingErrors(labels prometheus.Labels, count float64)

func (Counters) AddPackagingProcessDuration

func (c Counters) AddPackagingProcessDuration(labels prometheus.Labels, count float64)

Jump to

Keyboard shortcuts

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