policycollector

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyCollector

type PolicyCollector struct {
	// contains filtered or unexported fields
}

func (*PolicyCollector) Collect

func (c *PolicyCollector) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector interface

func (*PolicyCollector) Describe

func (c *PolicyCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements prometheus.Collector interface

func (*PolicyCollector) HasPolicySpecificMetrics

func (c *PolicyCollector) HasPolicySpecificMetrics() bool

HasPolicySpecificMetrics judges whether the policy defines the policy-specific metrics

func (*PolicyCollector) RegisterPolicyMetricsCollector

func (c *PolicyCollector) RegisterPolicyMetricsCollector() error

RegisterPolicyMetricsCollector registers policy-specific collector

func (*PolicyCollector) SetPolicy

func (c *PolicyCollector) SetPolicy(policy policy.Policy)

Jump to

Keyboard shortcuts

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