Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusStats ¶
type PrometheusStats struct {
// contains filtered or unexported fields
}
func NewPrometheusStats ¶
func NewPrometheusStats( gaugeVec *prometheus.GaugeVec, counterVec *prometheus.CounterVec, errorsCounter *prometheus.CounterVec, histogramVec *prometheus.HistogramVec, ) *PrometheusStats
func (*PrometheusStats) CountCall ¶
func (p *PrometheusStats) CountCall(env, node, path, method string, status int)
func (*PrometheusStats) CountError ¶
func (p *PrometheusStats) CountError(env, node, path string, status int)
counts various errors
func (*PrometheusStats) GetLabeledResponseTimePeersHistogramTimer ¶
func (p *PrometheusStats) GetLabeledResponseTimePeersHistogramTimer(env, node, path, method string) *prometheus.Timer
Click to show internal directories.
Click to hide internal directories.