metrics

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortierisMetrics

type PortierisMetrics struct {
	AllowDecisionCount prometheus.Counter
	DenyDecisionCount  prometheus.Counter
	// contains filtered or unexported fields
}

PortierisMetrics implements the metrics for Portieris

func NewMetrics

func NewMetrics() *PortierisMetrics

NewMetrics instantiates PortierisMetrics

func (*PortierisMetrics) GetMetricsHandler

func (p *PortierisMetrics) GetMetricsHandler() http.Handler

GetMetricsHandler is used by the unit tests to retrieve the http.Handler that Prometheus provides for retrieving metrics

func (*PortierisMetrics) UnregisterAll

func (p *PortierisMetrics) UnregisterAll()

UnregisterAll is used by the unit tests to clean up all metrics, registered with Prometheus, at the end of a test run.

Jump to

Keyboard shortcuts

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