dns

package
Version: v0.0.0-...-ffd7706 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2017 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsMetricExporter

type DnsMetricExporter struct {
	ProbeId   int
	DstAddr   string
	Rtt       float64
	Asn       int
	Success   int
	IpVersion int
}

DnsMetricExporter exports metrics for DNS measurement results

func FromResult

func FromResult(r *measurement.Result) *DnsMetricExporter

FromResult creates metric exporter for DNS measurement result

func (*DnsMetricExporter) Describe

func (m *DnsMetricExporter) Describe(ch chan<- *prometheus.Desc)

Describe exports metric descriptions for Prometheus

func (*DnsMetricExporter) Export

func (m *DnsMetricExporter) Export(ch chan<- prometheus.Metric, pk string)

Export exports metrics for Prometheus

func (*DnsMetricExporter) IsValid

func (m *DnsMetricExporter) IsValid() bool

IsValid returns whether an result is valid or not (e.g. IPv6 measurement and Probe does not support IPv6)

func (*DnsMetricExporter) SetAsn

func (m *DnsMetricExporter) SetAsn(asn int)

SetAsn sets AS number for measurement result

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL