metrics

package
v2.0.0-...-947fdf0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricZone = "zone"

	ZoneType        = "type"
	ZoneTypePrivate = "private"
	ZoneTypePublic  = "public"
)

Variables

View Source
var (
	ZoneInfo = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: metricNamespace,
			Subsystem: MetricZone,
			Name:      "info",
			Help:      "Info about cluster DNS zone",
			ConstLabels: prometheus.Labels{
				metricControllerLabel: metricControllerValue,
			},
		}, []string{
			MetricZone,
			ZoneType,
			"resource_group",
			"tenant_id",
			"subscription_id",
		})

	ClusterZoneRecords = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: metricNamespace,
			Subsystem: MetricZone,
			Name:      "records_sum",
			Help:      "Info about cluster",
			ConstLabels: prometheus.Labels{
				metricControllerLabel: metricControllerValue,
			},
		}, []string{
			MetricZone,
			ZoneType,
		})

	RecordInfo = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: metricNamespace,
			Subsystem: metricRecordSet,
			Name:      "info",
			Help:      "Info about existing record set",
			ConstLabels: prometheus.Labels{
				metricControllerLabel: metricControllerValue,
			},
		},
		[]string{
			MetricZone,
			ZoneType,
			"fqdn",
			"ip",
			"ttl",
		})

	AzureRequestError = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: metricNamespace,
			Subsystem: metricAzure,
			Name:      "errors_total",
			Help:      "Total number of errors for an Azure API call",
		}, []string{"method"})
	AzureRequest = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: metricNamespace,
			Subsystem: metricAzure,
			Name:      "total",
			Help:      "Total number of Azure API calls",
			ConstLabels: prometheus.Labels{
				metricControllerLabel: metricControllerValue,
			},
		}, []string{"method"})
)

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