Documentation ¶
Index ¶
- func MustRegisterAddonCollector(registry prometheus.Registerer, client ctrlruntimeclient.Reader)
- func MustRegisterClusterCollector(registry prometheus.Registerer, client ctrlruntimeclient.Reader)
- func MustRegisterExternalClusterCollector(registry prometheus.Registerer, client ctrlruntimeclient.Reader)
- func MustRegisterS3Collector(minioClient *minio.Client, client ctrlruntimeclient.Reader, bucket string, ...)
- type AddonCollector
- type ClusterCollector
- type ExternalClusterCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRegisterAddonCollector ¶
func MustRegisterAddonCollector(registry prometheus.Registerer, client ctrlruntimeclient.Reader)
MustRegisterAddonCollector registers the addon collector at the given prometheus registry.
func MustRegisterClusterCollector ¶
func MustRegisterClusterCollector(registry prometheus.Registerer, client ctrlruntimeclient.Reader)
MustRegisterClusterCollector registers the cluster collector at the given prometheus registry.
func MustRegisterExternalClusterCollector ¶
func MustRegisterExternalClusterCollector(registry prometheus.Registerer, client ctrlruntimeclient.Reader)
MustRegisterExternalClusterCollector registers the cluster collector at the given prometheus registry.
func MustRegisterS3Collector ¶
func MustRegisterS3Collector(minioClient *minio.Client, client ctrlruntimeclient.Reader, bucket string, logger *zap.SugaredLogger)
MustRegisterS3Collector registers the S3 collector.
Types ¶
type AddonCollector ¶
type AddonCollector struct {
// contains filtered or unexported fields
}
AddonCollector exports metrics for addon resources.
func (AddonCollector) Collect ¶
func (cc AddonCollector) Collect(ch chan<- prometheus.Metric)
Collect gets called by prometheus to collect the metrics.
func (AddonCollector) Describe ¶
func (cc AddonCollector) Describe(ch chan<- *prometheus.Desc)
Describe returns the metrics descriptors.
type ClusterCollector ¶
type ClusterCollector struct {
// contains filtered or unexported fields
}
ClusterCollector exports metrics for cluster resources.
func (ClusterCollector) Collect ¶
func (cc ClusterCollector) Collect(ch chan<- prometheus.Metric)
Collect gets called by prometheus to collect the metrics.
func (ClusterCollector) Describe ¶
func (cc ClusterCollector) Describe(ch chan<- *prometheus.Desc)
Describe returns the metrics descriptors.
type ExternalClusterCollector ¶
type ExternalClusterCollector struct {
// contains filtered or unexported fields
}
ExternalClusterCollector exports metrics for external cluster resources.
func (ExternalClusterCollector) Collect ¶
func (cc ExternalClusterCollector) Collect(ch chan<- prometheus.Metric)
Collect gets called by prometheus to collect the metrics.
func (ExternalClusterCollector) Describe ¶
func (cc ExternalClusterCollector) Describe(ch chan<- *prometheus.Desc)
Describe returns the metrics descriptors.