Documentation
¶
Overview ¶
Package collector offers a service to retrieve metrics about credentials.
Index ¶
Constants ¶
View Source
const ( PrometheusNamespace = "credentiald" PrometheusNameLabel = "name" PrometheusOrganizationLabel = "organization" KubernetesOrganizationLabel = "giantswarm.io/organization" KubernetesCredentialNamespace = "giantswarm" KubernetesLabelSelector = "app=credentiald" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect collects metrics for prometheus
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Describe collects metadata for a prometheus metric.
type Config ¶
type Config struct {
K8sClient kubernetes.Interface
Logger micrologger.Logger
}
Click to show internal directories.
Click to hide internal directories.