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 (*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.
Click to show internal directories.
Click to hide internal directories.