Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶ added in v1.20.0
type Metrics struct {
APIDuration metric.Vec[metric.Observer]
RateLimit metric.Vec[metric.Observer]
}
Metrics holds the Prometheus metrics for external cloud API usage.
func New ¶ added in v1.20.0
New returns a new Metrics for the given cloud API subsystem (e.g. "ec2", "azure").
func (*Metrics) ObserveAPICall ¶ added in v1.20.0
ObserveAPICall records the duration of an API call with the given operation name and response code.
Click to show internal directories.
Click to hide internal directories.