metrics

package
v0.2.4-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package metrics is a prometheus exporter for kubeteach

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	ExerciseSetPointsTotal        *prometheus.Desc
	ExerciseSetPointsAchieved     *prometheus.Desc
	ExerciseSetTasksWithoutPoints *prometheus.Desc
	ExerciseSetTasks              *prometheus.Desc
	ExerciseSetActiveTasks        *prometheus.Desc
	ExerciseSetPendingTasks       *prometheus.Desc
	ExerciseSetSuccessfulTasks    *prometheus.Desc
	ExerciseSetUnknownTasks       *prometheus.Desc
	TaskState                     *prometheus.Desc
	// contains filtered or unexported fields
}

Exporter represents a prometheus exporter for kubeteach

func New

func New(k8sClient client.Client, log logr.Logger) *Exporter

New generate a new Exporter object

func (*Exporter) Collect

func (e *Exporter) Collect(metrics chan<- prometheus.Metric)

Collect collects metrics for kubeteach

func (*Exporter) Describe

func (e *Exporter) Describe(descs chan<- *prometheus.Desc)

Describe describes metrics for kubeteach

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL