metrics

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Requests = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "external_dns_management_total_provider_requests",
			Help: "Total requests per provider type and credential set",
		},
		[]string{"providertype", "accounthash", "requesttype"},
	)

	ZoneRequests = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "external_dns_management_requests_per_zone",
			Help: "Requests per provider type, credential set, and zone",
		},
		[]string{"providertype", "accounthash", "requesttype", "zone"},
	)

	ZoneCacheDiscardings = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "external_dns_management_zone_cache_discardings",
			Help: "Discardings of zone cache per provider type and zone",
		},
		[]string{"providertype", "zone"},
	)

	Accounts = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "external_dns_management_account_providers",
			Help: "Total number of providers per account",
		},
		[]string{"providertype", "accounthash"},
	)

	Entries = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "external_dns_management_dns_entries",
			Help: "Total number of dns entries per hosted zone",
		},
		[]string{"providertype", "zone"},
	)

	StaleEntries = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "external_dns_management_dns_entries_stale",
			Help: "Total number of stale dns entries per hosted zone",
		},
		[]string{"providertype", "zone"},
	)

	Owners = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "external_dns_management_dns_owners",
			Help: "Total number of dns entries per owner",
		},
		[]string{"owner", "providertype", "provider"},
	)
)

Functions

func AddRequests

func AddRequests(ptype, account, requestType string, no int, zone *string)

func AddZoneCacheDiscarding added in v0.8.4

func AddZoneCacheDiscarding(ptype, zone string)

func DeleteAccount

func DeleteAccount(ptype, account string)

func DeleteZone

func DeleteZone(zone string)

func ReportAccountProviders

func ReportAccountProviders(ptype, account string, amount int)

func ReportZoneEntries

func ReportZoneEntries(ptype, zone string, amount int, stale int)

func UpdateOwnerStatistic added in v0.7.12

func UpdateOwnerStatistic(statistic *statistic.EntryStatistic, types utils.StringSet)

Types

type ZoneProviderTypes

type ZoneProviderTypes struct {
	// contains filtered or unexported fields
}

func (*ZoneProviderTypes) Add

func (this *ZoneProviderTypes) Add(ptype, zone string)

func (*ZoneProviderTypes) Remove

func (this *ZoneProviderTypes) Remove(zone string) string

Jump to

Keyboard shortcuts

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