Documentation
¶
Index ¶
Constants ¶
View Source
const ( APINameLoadBalancer = "loadbalancer" APINameIaaS = "iaas" )
Variables ¶
View Source
var ( HTTPRequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: cloudProviderMetricPrefix, Name: "http_requests_total", Help: "The number of requests to external APIs", ConstLabels: nil, }, []string{apiLabel, methodLabel, operationLabel, codeLabel}) HTTPErrorCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: cloudProviderMetricPrefix, Name: "http_errors_total", Help: "Number of HTTP errors returned by external APIs", ConstLabels: nil, }, []string{apiLabel, methodLabel, operationLabel, codeLabel}) HTTPRequestDurationHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: cloudProviderMetricPrefix, Name: "http_request_duration_seconds", Help: "The response times of external API requests", ConstLabels: nil, Buckets: nil, }, []string{apiLabel, methodLabel, operationLabel, codeLabel}) )
Functions ¶
Types ¶
type Exporter ¶
type Exporter struct {
}
func NewExporter ¶
func NewExporter() *Exporter
func (*Exporter) Collect ¶
func (e *Exporter) Collect(metrics chan<- prometheus.Metric)
func (*Exporter) Describe ¶
func (e *Exporter) Describe(descs chan<- *prometheus.Desc)
type InstrumentedRoundTripper ¶
type InstrumentedRoundTripper struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.