summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/couchbase/charts.go
blob: 7927180956fa6976637e0e9042e6e100ab9d6c39 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// SPDX-License-Identifier: GPL-3.0-or-later

package couchbase

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

type (
	Charts = module.Charts
	Chart  = module.Chart
	Dim    = module.Dim
)

var bucketQuotaPercentUsedChart = Chart{
	ID:    "bucket_quota_percent_used",
	Title: "Quota Percent Used Per Bucket",
	Units: "%",
	Fam:   "buckets basic stats",
	Ctx:   "couchbase.bucket_quota_percent_used",
}

var bucketOpsPerSecChart = Chart{
	ID:    "bucket_ops_per_sec",
	Title: "Operations Per Second Per Bucket",
	Units: "ops/s",
	Fam:   "buckets basic stats",
	Ctx:   "couchbase.bucket_ops_per_sec",
	Type:  module.Stacked,
}

var bucketDiskFetchesChart = Chart{
	ID:    "bucket_disk_fetches",
	Title: "Disk Fetches Per Bucket",
	Units: "fetches",
	Fam:   "buckets basic stats",
	Ctx:   "couchbase.bucket_disk_fetches",
	Type:  module.Stacked,
}

var bucketItemCountChart = Chart{
	ID:    "bucket_item_count",
	Title: "Item Count Per Bucket",
	Units: "items",
	Fam:   "buckets basic stats",
	Ctx:   "couchbase.bucket_item_count",
	Type:  module.Stacked,
}

var bucketDiskUsedChart = Chart{
	ID:    "bucket_disk_used_stats",
	Title: "Disk Used Per Bucket",
	Units: "bytes",
	Fam:   "buckets basic stats",
	Ctx:   "couchbase.bucket_disk_used_stats",
	Type:  module.Stacked,
}

var bucketDataUsedChart = Chart{
	ID:    "bucket_data_used",
	Title: "Data Used Per Bucket",
	Units: "bytes",
	Fam:   "buckets basic stats",
	Ctx:   "couchbase.bucket_data_used",
	Type:  module.Stacked,
}

var bucketMemUsedChart = Chart{
	ID:    "bucket_mem_used",
	Title: "Memory Used Per Bucket",
	Units: "bytes",
	Fam:   "buckets basic stats",
	Ctx:   "couchbase.bucket_mem_used",
	Type:  module.Stacked,
}

var bucketVBActiveNumNonResidentChart = Chart{
	ID:    "bucket_vb_active_num_non_resident_stats",
	Title: "Number Of Non-Resident Items Per Bucket",
	Units: "items",
	Fam:   "buckets basic stats",
	Ctx:   "couchbase.bucket_vb_active_num_non_resident",
	Type:  module.Stacked,
}