summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/chrony/charts.go
blob: 6b8f42897d9cf9f6ed53a5f8525e7c24bf6d108a (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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// SPDX-License-Identifier: GPL-3.0-or-later

package chrony

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

var charts = module.Charts{
	{
		ID:    "stratum",
		Title: "Distance to the reference clock",
		Units: "level",
		Fam:   "stratum",
		Ctx:   "chrony.stratum",
		Dims: module.Dims{
			{ID: "stratum", Name: "stratum"},
		},
	},
	{
		ID:    "current_correction",
		Title: "Current correction",
		Units: "seconds",
		Fam:   "correction",
		Ctx:   "chrony.current_correction",
		Dims: module.Dims{
			{ID: "current_correction", Div: scaleFactor},
		},
	},
	{
		ID:    "root_delay",
		Title: "Network path delay to stratum-1",
		Units: "seconds",
		Fam:   "root",
		Ctx:   "chrony.root_delay",
		Dims: module.Dims{
			{ID: "root_delay", Div: scaleFactor},
		},
	},
	{
		ID:    "root_dispersion",
		Title: "Dispersion accumulated back to stratum-1",
		Units: "seconds",
		Fam:   "root",
		Ctx:   "chrony.root_dispersion",
		Dims: module.Dims{
			{ID: "root_dispersion", Div: scaleFactor},
		},
	},
	{
		ID:    "last_offset",
		Title: "Offset on the last clock update",
		Units: "seconds",
		Fam:   "offset",
		Ctx:   "chrony.last_offset",
		Dims: module.Dims{
			{ID: "last_offset", Name: "offset", Div: scaleFactor},
		},
	},
	{
		ID:    "rms_offset",
		Title: "Long-term average of the offset value",
		Units: "seconds",
		Fam:   "offset",
		Ctx:   "chrony.rms_offset",
		Dims: module.Dims{
			{ID: "rms_offset", Name: "offset", Div: scaleFactor},
		},
	},
	{
		ID:    "frequency",
		Title: "Frequency",
		Units: "ppm",
		Fam:   "frequency",
		Ctx:   "chrony.frequency",
		Dims: module.Dims{
			{ID: "frequency", Div: scaleFactor},
		},
	},
	{
		ID:    "residual_frequency",
		Title: "Residual frequency",
		Units: "ppm",
		Fam:   "frequency",
		Ctx:   "chrony.residual_frequency",
		Dims: module.Dims{
			{ID: "residual_frequency", Div: scaleFactor},
		},
	},
	{
		ID:    "skew",
		Title: "Skew",
		Units: "ppm",
		Fam:   "frequency",
		Ctx:   "chrony.skew",
		Dims: module.Dims{
			{ID: "skew", Div: scaleFactor},
		},
	},
	{
		ID:    "update_interval",
		Title: "Interval between the last two clock updates",
		Units: "seconds",
		Fam:   "updates",
		Ctx:   "chrony.update_interval",
		Dims: module.Dims{
			{ID: "update_interval", Div: scaleFactor},
		},
	},
	{
		ID:    "ref_measurement_time",
		Title: "Time since the last measurement",
		Units: "seconds",
		Fam:   "updates",
		Ctx:   "chrony.ref_measurement_time",
		Dims: module.Dims{
			{ID: "ref_measurement_time"},
		},
	},
	{
		ID:    "leap_status",
		Title: "Leap status",
		Units: "status",
		Fam:   "leap status",
		Ctx:   "chrony.leap_status",
		Dims: module.Dims{
			{ID: "leap_status_normal", Name: "normal"},
			{ID: "leap_status_insert_second", Name: "insert_second"},
			{ID: "leap_status_delete_second", Name: "delete_second"},
			{ID: "leap_status_unsynchronised", Name: "unsynchronised"},
		},
	},
	{
		ID:    "activity",
		Title: "Peers activity",
		Units: "sources",
		Fam:   "activity",
		Ctx:   "chrony.activity",
		Type:  module.Stacked,
		Dims: module.Dims{
			{ID: "online_sources", Name: "online"},
			{ID: "offline_sources", Name: "offline"},
			{ID: "burst_online_sources", Name: "burst_online"},
			{ID: "burst_offline_sources", Name: "burst_offline"},
			{ID: "unresolved_sources", Name: "unresolved"},
		},
	},
}