Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPMeasurement ¶
type HTTPMeasurement struct { Host string Up bool Code int Latency time.Duration IsTLS bool TLSExpiry time.Duration }
func (HTTPMeasurement) LogValue ¶
func (m HTTPMeasurement) LogValue() slog.Value
type HTTPMetrics ¶
type HTTPMetrics struct {
// contains filtered or unexported fields
}
func NewHTTPMetrics ¶
func NewHTTPMetrics() *HTTPMetrics
func (HTTPMetrics) Collect ¶
func (m HTTPMetrics) Collect(ch chan<- prometheus.Metric)
func (HTTPMetrics) Describe ¶
func (m HTTPMetrics) Describe(ch chan<- *prometheus.Desc)
func (HTTPMetrics) Observe ¶
func (m HTTPMetrics) Observe(measurement HTTPMeasurement)
type HTTPObserver ¶
type HTTPObserver interface {
Observe(httpMetrics HTTPMeasurement)
}
Click to show internal directories.
Click to hide internal directories.