summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/powerdns_recursor/metrics.go
blob: a7fbd63c19ff98d44a4012d53b7010de7e63d19e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-3.0-or-later

package powerdns_recursor

// https://doc.powerdns.com/recursor/metrics.html
// https://docs.powerdns.com/recursor/performance.html#recursor-caches

// PowerDNS Recursor documentation has no section about statistics objects,
// fortunately authoritative has.
// https://doc.powerdns.com/authoritative/http-api/statistics.html#objects
type (
	statisticMetrics []statisticMetric
	statisticMetric  struct {
		Name  string
		Type  string
		Value interface{}
	}
)