Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // APICounterOpts define the counter opts for server APIs APICounterOpts = metrics.CounterOpts{ Namespace: "api_request", Subsystem: "", Name: "count", Help: "Number of requests made to an API", LabelNames: []string{"ca_name", "api_name", "status_code"}, StatsdFormat: "%{#fqname}.%{ca_name}.%{api_name}.%{status_code}", } // APIDurationOpts define the duration opts for server APIs APIDurationOpts = metrics.HistogramOpts{ Namespace: "api_request", Subsystem: "", Name: "duration", Help: "Time taken in seconds for the request to an API to be completed", LabelNames: []string{"ca_name", "api_name", "status_code"}, StatsdFormat: "%{#fqname}.%{ca_name}.%{api_name}.%{status_code}", } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.