promfm

package
v1.10.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 6 Imported by: 0

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

func SetUint32

func SetUint32(gauge prometheus.Gauge, arg uint32)

SetUint32 sets a uint32 metric

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL