pachyderm: Index | Files

package metrics

import ""


Package Files


func ReportRequest Uses

func ReportRequest(f func() error, skip (retErr error)

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 Uses

func ReportRequestWithThroughput(f func() (int64, error)) error

ReportRequestWithThroughput functions the same as ReportRequest, but also reports the throughput in a separate metric.

Package metrics imports 7 packages (graph) and is imported by 1 packages. Updated 2020-08-12. Refresh now. Tools for package owners.