Documentation
¶
Index ¶
- func NewInstrumentedClient(name string, client *http.Client) *http.Client
- type LocalCollector
- type ProbeCollector
- type RemoteClusterCollector
- func (c *RemoteClusterCollector) Collect(ch chan<- prometheus.Metric)
- func (c *RemoteClusterCollector) Describe(ch chan<- *prometheus.Desc)
- func (c *RemoteClusterCollector) IncRemoteRecordReconcile(cluster, namespace, name string)
- func (c *RemoteClusterCollector) RemoveRemoteRecordReconcile(cluster, namespace, name string)
- func (c *RemoteClusterCollector) SetRemoteRecordsCount(cluster string, count float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInstrumentedClient ¶ added in v0.7.0
NewInstrumentedClient creates an instrumented client by wrapping the given client with prometheus http middleware. The given name is added as a label to the metrics to distinguish between different client types (aws, google, azure etc..)
Types ¶
type LocalCollector ¶ added in v0.15.0
func (*LocalCollector) Collect ¶ added in v0.15.0
func (c *LocalCollector) Collect(ch chan<- prometheus.Metric)
func (*LocalCollector) Describe ¶ added in v0.15.0
func (c *LocalCollector) Describe(ch chan<- *prometheus.Desc)
type ProbeCollector ¶ added in v0.16.0
type ProbeCollector struct {
// contains filtered or unexported fields
}
func NewProbeCollector ¶ added in v0.16.0
func NewProbeCollector() *ProbeCollector
func (*ProbeCollector) Collect ¶ added in v0.16.0
func (c *ProbeCollector) Collect(ch chan<- prometheus.Metric)
func (*ProbeCollector) DecProbeCounter ¶ added in v0.16.0
func (c *ProbeCollector) DecProbeCounter(name, namespace, hostname string)
DecProbeCounter decrements the counter for a specific probe
func (*ProbeCollector) Describe ¶ added in v0.16.0
func (c *ProbeCollector) Describe(ch chan<- *prometheus.Desc)
func (*ProbeCollector) IncProbeCounter ¶ added in v0.16.0
func (c *ProbeCollector) IncProbeCounter(name, namespace, hostname string)
IncProbeCounter increments the counter for a specific probe
type RemoteClusterCollector ¶ added in v0.15.0
type RemoteClusterCollector struct {
Provider *kubeconfigprovider.Provider
// contains filtered or unexported fields
}
func NewRemoteClusterCollector ¶ added in v0.16.0
func NewRemoteClusterCollector(provider *kubeconfigprovider.Provider) *RemoteClusterCollector
func (*RemoteClusterCollector) Collect ¶ added in v0.15.0
func (c *RemoteClusterCollector) Collect(ch chan<- prometheus.Metric)
func (*RemoteClusterCollector) Describe ¶ added in v0.15.0
func (c *RemoteClusterCollector) Describe(ch chan<- *prometheus.Desc)
func (*RemoteClusterCollector) IncRemoteRecordReconcile ¶ added in v0.16.0
func (c *RemoteClusterCollector) IncRemoteRecordReconcile(cluster, namespace, name string)
IncRemoteRecordReconcile increments the counter for a specific cluster/namespace/name combination
func (*RemoteClusterCollector) RemoveRemoteRecordReconcile ¶ added in v0.16.0
func (c *RemoteClusterCollector) RemoveRemoteRecordReconcile(cluster, namespace, name string)
RemoveRemoteRecordReconcile removes the counter for a specific cluster/namespace/name combination
func (*RemoteClusterCollector) SetRemoteRecordsCount ¶ added in v0.16.0
func (c *RemoteClusterCollector) SetRemoteRecordsCount(cluster string, count float64)
SetRemoteRecordsCount sets the count of delegated remote records for a specific cluster
Click to show internal directories.
Click to hide internal directories.