Documentation
¶
Index ¶
Constants ¶
View Source
const UnknownOperation = "UnknownOperation"
Variables ¶
View Source
var ( HTTPRequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: metricPrefix, Name: "http_requests_total", Help: "The number of requests to external APIs", }, []string{componentLabel, hostLabel, methodLabel, operationLabel, codeLabel}) HTTPErrorCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: metricPrefix, Name: "http_errors_total", Help: "Number of HTTP errors returned by external APIs", }, []string{componentLabel, hostLabel, methodLabel, operationLabel, codeLabel}) HTTPRequestDurationHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: metricPrefix, Name: "http_request_duration_seconds", Help: "The response times of external API requests", }, []string{componentLabel, hostLabel, methodLabel, operationLabel, codeLabel}) )
Functions ¶
func NewHTTPClient ¶ added in v1.34.11
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.