summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/powerdns/charts.go
blob: 119ca4a2e1d83cdb18ed4722c6907ebe85d9f6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SPDX-License-Identifier: GPL-3.0-or-later

package powerdns

import "github.com/netdata/netdata/go/go.d.plugin/agent/module"

var charts = module.Charts{
	{
		ID:    "questions_in",
		Title: "Incoming questions",
		Units: "questions/s",
		Fam:   "questions",
		Ctx:   "powerdns.questions_in",
		Dims: module.Dims{
			{ID: "udp-queries", Name: "udp", Algo: module.Incremental},
			{ID: "tcp-queries", Name: "tcp", Algo: module.Incremental},
		},
	},
	{
		ID:    "questions_out",
		Title: "Outgoing questions",
		Units: "questions/s",
		Fam:   "questions",
		Ctx:   "powerdns.questions_out",
		Dims: module.Dims{
			{ID: "udp-answers", Name: "udp", Algo: module.Incremental},
			{ID: "tcp-answers", Name: "tcp", Algo: module.Incremental},
		},
	},
	{
		ID:    "cache_usage",
		Title: "Cache Usage",
		Units: "events/s",
		Fam:   "cache",
		Ctx:   "powerdns.cache_usage",
		Dims: module.Dims{
			{ID: "query-cache-hit", Algo: module.Incremental},
			{ID: "query-cache-miss", Algo: module.Incremental},
			{ID: "packetcache-hit", Name: "packet-cache-hit", Algo: module.Incremental},
			{ID: "packetcache-miss", Name: "packet-cache-miss", Algo: module.Incremental},
		},
	},
	{
		ID:    "cache_size",
		Title: "Cache Size",
		Units: "entries",
		Fam:   "cache",
		Ctx:   "powerdns.cache_size",
		Dims: module.Dims{
			{ID: "query-cache-size", Name: "query-cache"},
			{ID: "packetcache-size", Name: "packet-cache"},
			{ID: "key-cache-size", Name: "key-cache"},
			{ID: "meta-cache-size", Name: "meta-cache"},
		},
	},
	{
		ID:    "latency",
		Title: "Answer latency",
		Units: "microseconds",
		Fam:   "latency",
		Ctx:   "powerdns.latency",
		Dims: module.Dims{
			{ID: "latency"},
		},
	},
}