Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportRequest ¶
ReportRequest reports a request to Prometheus. This function automatically registers a metric (if one does not already exist) with the default register. The calling function's package name is used as the subsystem name and the function name is used for the operation label. This function also labels the request as successful or not, and records the time spent in a separate metric.
func ReportRequestWithThroughput ¶
ReportRequestWithThroughput functions the same as ReportRequest, but also reports the throughput in a separate metric.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.