metrics

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Registry *prometheus.Registry

	// metric descriptions for ns1 stats as prometheus metrics
	MetricBuildInfoDesc = prometheus.NewDesc(
		prometheus.BuildFQName(metricNamespace, "build", "info"),
		"NS1 exporter build information",
		[]string{"version", "build_date", "commit"}, nil,
	)
	MetricQPSDesc = prometheus.NewDesc(
		prometheus.BuildFQName(metricNamespace, "stats", "queries_per_second"),
		"DNS queries per second for the labeled NS1 resource. Note that NS1 QPS metrics are time delayed, not real-time.",
		[]string{"zone_name", "record_name", "record_type"}, nil,
	)

	// metrics for operations of the exporter itself
	MetricExporterNS1APIFailures = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: metricNamespace,
		Name:      "api_failures_total",
		Help:      "Total number of failed NS1 API calls.",
	})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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