Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReportedValue = promauto.NewGaugeVec( prometheus.GaugeOpts{ Name: "flux_monitor_reported_value", Help: "Flux monitor's last reported price", }, []string{"job_spec_id"}, ) IndividualReportedValue = promauto.NewGaugeVec( prometheus.GaugeOpts{ Name: "flux_monitor_individual_reported_value", Help: "Flux monitor's last reported price for each individual endpoint", }, []string{"url"}, ) SeenValue = promauto.NewGaugeVec( prometheus.GaugeOpts{ Name: "flux_monitor_seen_value", Help: "Flux monitor's last observed value from target", }, []string{"job_spec_id"}, ) ReportedRound = promauto.NewGaugeVec( prometheus.GaugeOpts{ Name: "flux_monitor_reported_round", Help: "Flux monitor's last reported round", }, []string{"job_spec_id"}, ) SeenRound = promauto.NewGaugeVec( prometheus.GaugeOpts{ Name: "flux_monitor_seen_round", Help: "Last seen round by other node operators", }, []string{"job_spec_id"}, ) ResponseTime = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "flux_monitor_request_duration_seconds", Help: "Flux monitor's histogram of request latencies", Buckets: prometheus.DefBuckets, }, []string{}, ) ResponseSize = promauto.NewHistogram( prometheus.HistogramOpts{ Name: "flux_monitor_response_size_bytes", Help: "Flux monitor's last response body size", Buckets: prometheus.DefBuckets, }, ) )
Functions ¶
func InstrumentRoundTripperReponseSize ¶
func InstrumentRoundTripperReponseSize( obs prometheus.Observer, next http.RoundTripper, ) promhttp.RoundTripperFunc
func SetBigInt ¶
func SetBigInt(gauge prometheus.Gauge, arg *big.Int)
SetBigInt sets a big.Int metric
func SetDecimal ¶
func SetDecimal(gauge prometheus.Gauge, arg decimal.Decimal)
SetDecimal sets a decimal metric
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.