Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpMetricExporter ¶
type HttpMetricExporter struct { ProbeId int DstAddr string Uri string ReturnCode int HttpVersion float64 BodySize int HeaderSize int Method string Rtt float64 DnsError int Asn int IpVersion int }
HttpMetricExporter exports metrics for HTTP measurement results
func FromResult ¶
func FromResult(r *measurement.Result) *HttpMetricExporter
FromResult creates metric exporter for HTTP measurement result
func (*HttpMetricExporter) Describe ¶
func (m *HttpMetricExporter) Describe(ch chan<- *prometheus.Desc)
Describe exports metric descriptions for Prometheus
func (*HttpMetricExporter) Export ¶
func (m *HttpMetricExporter) Export(ch chan<- prometheus.Metric, pk string)
Export exports metrics for Prometheus
func (*HttpMetricExporter) IsValid ¶
func (m *HttpMetricExporter) IsValid() bool
IsValid returns whether an result is valid or not (e.g. IPv6 measurement and Probe does not support IPv6)
func (*HttpMetricExporter) SetAsn ¶
func (m *HttpMetricExporter) SetAsn(asn int)
SetAsn sets AS number for measurement result
Click to show internal directories.
Click to hide internal directories.