Documentation ¶
Index ¶
- Constants
- func InitMetricsExporter(metricsBackend string) (*prometheus.Registry, error)
- func RegisterMetrics(reg *prometheus.Registry, mux *http.ServeMux)
- func ServeMetrics(port int, mux *http.ServeMux)
- type IngressCollector
- func (ic *IngressCollector) AddBackendCreationTime(f float64)
- func (ic *IngressCollector) AddIngressBackendSyncTime(f float64)
- func (ic *IngressCollector) AddIngressListenerSyncTime(f float64)
- func (ic *IngressCollector) AddIngressSyncTime(f float64)
- func (ic *IngressCollector) AddStateBuildTime(f float64)
- func (ic IngressCollector) Collect(ch chan<- prometheus.Metric)
- func (ic IngressCollector) Describe(ch chan<- *prometheus.Desc)
- func (ic *IngressCollector) IncrementIngressAddOperation()
- func (ic *IngressCollector) IncrementIngressDeleteOperation()
- func (ic *IngressCollector) IncrementIngressUpdateOperation()
- func (ic *IngressCollector) IncrementSyncCount()
Constants ¶
View Source
const EndpointPath = "/metric"
Variables ¶
This section is empty.
Functions ¶
func InitMetricsExporter ¶
func InitMetricsExporter(metricsBackend string) (*prometheus.Registry, error)
func RegisterMetrics ¶
func RegisterMetrics(reg *prometheus.Registry, mux *http.ServeMux)
func ServeMetrics ¶
Types ¶
type IngressCollector ¶
type IngressCollector struct { prometheus.Collector // contains filtered or unexported fields }
func NewIngressCollector ¶
func NewIngressCollector(controllerClass string, reg *prometheus.Registry) *IngressCollector
func (*IngressCollector) AddBackendCreationTime ¶
func (ic *IngressCollector) AddBackendCreationTime(f float64)
func (*IngressCollector) AddIngressBackendSyncTime ¶
func (ic *IngressCollector) AddIngressBackendSyncTime(f float64)
func (*IngressCollector) AddIngressListenerSyncTime ¶
func (ic *IngressCollector) AddIngressListenerSyncTime(f float64)
func (*IngressCollector) AddIngressSyncTime ¶
func (ic *IngressCollector) AddIngressSyncTime(f float64)
func (*IngressCollector) AddStateBuildTime ¶
func (ic *IngressCollector) AddStateBuildTime(f float64)
func (IngressCollector) Collect ¶
func (ic IngressCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (IngressCollector) Describe ¶
func (ic IngressCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector
func (*IngressCollector) IncrementIngressAddOperation ¶
func (ic *IngressCollector) IncrementIngressAddOperation()
func (*IngressCollector) IncrementIngressDeleteOperation ¶
func (ic *IngressCollector) IncrementIngressDeleteOperation()
func (*IngressCollector) IncrementIngressUpdateOperation ¶
func (ic *IngressCollector) IncrementIngressUpdateOperation()
func (*IngressCollector) IncrementSyncCount ¶
func (ic *IngressCollector) IncrementSyncCount()
Click to show internal directories.
Click to hide internal directories.