summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/nginxvts/charts.go
blob: 6fc859ed559129ad4dca07eb8b61cddd713a2cb7 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// SPDX-License-Identifier: GPL-3.0-or-later

package nginxvts

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

var mainCharts = module.Charts{
	{
		ID:    "requests",
		Title: "Total requests",
		Units: "requests/s",
		Fam:   "requests",
		Ctx:   "nginxvts.requests_total",
		Dims: module.Dims{
			{ID: "connections_requests", Name: "requests", Algo: module.Incremental},
		},
	},
	{
		ID:    "active_connections",
		Title: "Active connections",
		Units: "connections",
		Fam:   "connections",
		Ctx:   "nginxvts.active_connections",
		Dims: module.Dims{
			{ID: "connections_active", Name: "active"},
		},
	},
	{
		ID:    "connections",
		Title: "Total connections",
		Units: "connections/s",
		Fam:   "connections",
		Ctx:   "nginxvts.connections_total",
		Dims: module.Dims{
			{ID: "connections_reading", Name: "reading", Algo: module.Incremental},
			{ID: "connections_writing", Name: "writing", Algo: module.Incremental},
			{ID: "connections_waiting", Name: "waiting", Algo: module.Incremental},
			{ID: "connections_accepted", Name: "accepted", Algo: module.Incremental},
			{ID: "connections_handled", Name: "handled", Algo: module.Incremental},
		},
	},
	{
		ID:    "uptime",
		Title: "Uptime",
		Units: "seconds",
		Fam:   "uptime",
		Ctx:   "nginxvts.uptime",
		Dims: module.Dims{
			{ID: "uptime", Name: "uptime"},
		},
	},
}
var sharedZonesCharts = module.Charts{
	{
		ID:    "shared_memory_size",
		Title: "Shared memory size",
		Units: "bytes",
		Fam:   "shared memory",
		Ctx:   "nginxvts.shm_usage",
		Dims: module.Dims{
			{ID: "sharedzones_maxsize", Name: "max"},
			{ID: "sharedzones_usedsize", Name: "used"},
		},
	},
	{
		ID:    "shared_memory_used_node",
		Title: "Number of node using shared memory",
		Units: "nodes",
		Fam:   "shared memory",
		Ctx:   "nginxvts.shm_used_node",
		Dims: module.Dims{
			{ID: "sharedzones_usednode", Name: "used"},
		},
	},
}

var serverZonesCharts = module.Charts{
	{
		ID:    "server_requests_total",
		Title: "Total number of client requests",
		Units: "requests/s",
		Fam:   "serverzones",
		Ctx:   "nginxvts.server_requests_total",
		Dims: module.Dims{
			{ID: "total_requestcounter", Name: "requests", Algo: module.Incremental},
		},
	},
	{
		ID:    "server_responses_total",
		Title: "Total number of responses by code class",
		Units: "responses/s",
		Fam:   "serverzones",
		Ctx:   "nginxvts.server_responses_total",
		Dims: module.Dims{
			{ID: "total_responses_1xx", Name: "1xx", Algo: module.Incremental},
			{ID: "total_responses_2xx", Name: "2xx", Algo: module.Incremental},
			{ID: "total_responses_3xx", Name: "3xx", Algo: module.Incremental},
			{ID: "total_responses_4xx", Name: "4xx", Algo: module.Incremental},
			{ID: "total_responses_5xx", Name: "5xx", Algo: module.Incremental},
		},
	},
	{
		ID:    "server_traffic_total",
		Title: "Total amount of data transferred to and from the server",
		Units: "bytes/s",
		Fam:   "serverzones",
		Ctx:   "nginxvts.server_traffic_total",
		Dims: module.Dims{
			{ID: "total_inbytes", Name: "in", Algo: module.Incremental},
			{ID: "total_outbytes", Name: "out", Algo: module.Incremental},
		},
	},
	{
		ID:    "server_cache_total",
		Title: "Total server cache",
		Units: "events/s",
		Fam:   "serverzones",
		Ctx:   "nginxvts.server_cache_total",
		Dims: module.Dims{
			{ID: "total_cache_miss", Name: "miss", Algo: module.Incremental},
			{ID: "total_cache_bypass", Name: "bypass", Algo: module.Incremental},
			{ID: "total_cache_expired", Name: "expired", Algo: module.Incremental},
			{ID: "total_cache_stale", Name: "stale", Algo: module.Incremental},
			{ID: "total_cache_updating", Name: "updating", Algo: module.Incremental},
			{ID: "total_cache_revalidated", Name: "revalidated", Algo: module.Incremental},
			{ID: "total_cache_hit", Name: "hit", Algo: module.Incremental},
			{ID: "total_cache_scarce", Name: "scarce", Algo: module.Incremental},
		},
	},
}