Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriverAPIMetricRecorderFn ¶
DriverAPIMetricRecorderFn returns a function that can be used to record a prometheus metric for driver API calls. NOTE: a pointer to an error (which itself is a fat interface pointer) is necessary to enable the callers of this function to enclose this call into a `defer` statement.
func RecordDriverAPIMetric ¶
RecordDriverAPIMetric records a prometheus metric capturing the total duration of a successful execution for any driver method (e.g. CreateMachine, DeleteMachine etc.). In case an error is returned then a failed counter metric is recorded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.