Documentation
¶
Index ¶
- Constants
- type Metrics
- func (m *Metrics) AddImage(namespace, pod, container, containerType, imageURL string, isLatest bool, ...)
- func (m *Metrics) PodExists(ctx context.Context, ns, name string) bool
- func (m *Metrics) RegisterImageDuration(namespace, pod, container, image string, startTime time.Time)
- func (m *Metrics) RemoveImage(namespace, pod, container, containerType string)
- func (m *Metrics) RemovePod(namespace, pod string)
- func (m *Metrics) ReportError(namespace, pod, container, imageURL string)
- func (m *Metrics) RoundTripper(baseTransport http.RoundTripper) http.RoundTripper
- type RoundTripper
Constants ¶
View Source
const MetricNamespace = "version_checker"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is used to expose container image version checks as prometheus metrics.
func New ¶
func New(log *logrus.Entry, reg ctrmetrics.RegistererGatherer, cache k8sclient.Reader) *Metrics
func New(log *logrus.Entry, reg ctrmetrics.RegistererGatherer, kubeClient k8sclient.Client) *Metrics {
func (*Metrics) RegisterImageDuration ¶ added in v0.9.0
func (*Metrics) RemoveImage ¶
func (*Metrics) ReportError ¶ added in v0.9.0
func (*Metrics) RoundTripper ¶ added in v0.9.0
func (m *Metrics) RoundTripper(baseTransport http.RoundTripper) http.RoundTripper
RoundTripper provides Prometheus instrumentation for an HTTP client, including domain labels.
type RoundTripper ¶ added in v0.9.0
type RoundTripper struct {
// contains filtered or unexported fields
}
func NewRoundTripper ¶ added in v0.9.0
func NewRoundTripper(reg prometheus.Registerer) *RoundTripper
Click to show internal directories.
Click to hide internal directories.