Documentation ¶
Index ¶
- type PolicyCollector
- func (c *PolicyCollector) Collect(ch chan<- prometheus.Metric)
- func (c *PolicyCollector) Describe(ch chan<- *prometheus.Desc)
- func (c *PolicyCollector) HasPolicySpecificMetrics() bool
- func (c *PolicyCollector) RegisterPolicyMetricsCollector() error
- func (c *PolicyCollector) SetPolicy(policy policy.Policy)
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)
Click to show internal directories.
Click to hide internal directories.