@cryptotaxi247 / netdata-1 / commits / 8e1cb764b

add metrics.csv to some c collectors (#14974)

Ilya Mashchenko committed Apr 26, 2023 at 19:24 UTC 8e1cb764b37b5571753308fe2a60cbd902b548dd
8 files changed +42 -4
collectors/cups.plugin/cups_plugin.c
+4 -4
@@ -159,12 +159,12 @@ struct job_metrics *get_job_metrics(char *dest) {
159 reset_job_metrics(NULL, &new_job_metrics, NULL);
160 jm = dictionary_set(dict_dest_job_metrics, dest, &new_job_metrics, sizeof(struct job_metrics));
161
162 - printf("CHART cups.job_num_%s '' 'Active jobs of %s' jobs '%s' cups.job_num stacked %i %i\n", dest, dest, dest, netdata_priority++, netdata_update_every);
162 + printf("CHART cups.job_num_%s '' 'Active jobs of %s' jobs '%s' cups.destination_job_num stacked %i %i\n", dest, dest, dest, netdata_priority++, netdata_update_every);
163 printf("DIMENSION pending '' absolute 1 1\n");
164 printf("DIMENSION held '' absolute 1 1\n");
165 printf("DIMENSION processing '' absolute 1 1\n");
166
167 - printf("CHART cups.job_size_%s '' 'Active jobs size of %s' KB '%s' cups.job_size stacked %i %i\n", dest, dest, dest, netdata_priority++, netdata_update_every);
167 + printf("CHART cups.job_size_%s '' 'Active jobs size of %s' KB '%s' cups.destination_job_size stacked %i %i\n", dest, dest, dest, netdata_priority++, netdata_update_every);
168 printf("DIMENSION pending '' absolute 1 1\n");
169 printf("DIMENSION held '' absolute 1 1\n");
170 printf("DIMENSION processing '' absolute 1 1\n");
@@ -193,12 +193,12 @@ int collect_job_metrics(const DICTIONARY_ITEM *item, void *entry, void *data __m
193 "END\n",
194 name, jm->size_pending, jm->size_held, jm->size_processing);
195 } else {
196 - printf("CHART cups.job_num_%s '' 'Active jobs of %s' jobs '%s' cups.job_num stacked 1 %i 'obsolete'\n", name, name, name, netdata_update_every);
196 + printf("CHART cups.job_num_%s '' 'Active jobs of %s' jobs '%s' cups.destination_job_num stacked 1 %i 'obsolete'\n", name, name, name, netdata_update_every);
197 printf("DIMENSION pending '' absolute 1 1\n");
198 printf("DIMENSION held '' absolute 1 1\n");
199 printf("DIMENSION processing '' absolute 1 1\n");
200
201 - printf("CHART cups.job_size_%s '' 'Active jobs size of %s' KB '%s' cups.job_size stacked 1 %i 'obsolete'\n", name, name, name, netdata_update_every);
201 + printf("CHART cups.job_size_%s '' 'Active jobs size of %s' KB '%s' cups.destination_job_size stacked 1 %i 'obsolete'\n", name, name, name, netdata_update_every);
202 printf("DIMENSION pending '' absolute 1 1\n");
203 printf("DIMENSION held '' absolute 1 1\n");
204 printf("DIMENSION processing '' absolute 1 1\n");
collectors/cups.plugin/metrics.csv new
+7
@@ -0,0 +1,7 @@
1 +metric,scope,dimensions,unit,description,chart_type,labels,plugin,module
2 +cups.dests_state,,"idle, printing, stopped",dests,"Destinations by state",stacked,,cups.plugin,
3 +cups.dests_option,,"total, acceptingjobs, shared",dests,"Destinations by option",line,,cups.plugin,
4 +cups.job_num,,"pending, held, processing",jobs,"Active jobs",stacked,,cups.plugin,
5 +cups.job_size,,"pending, held, processing",KB,"Active jobs size",stacked,,cups.plugin,
6 +cups.destination_job_num,destination,"pending, held, processing",jobs,"Active jobs of {destination}",stacked,,cups.plugin,
7 +cups.destination_job_size,destination,"pending, held, processing",KB,"Active jobs size of {destination}",stacked,,cups.plugin,
\ No newline at end of file
collectors/diskspace.plugin/metrics.csv new
+3
@@ -0,0 +1,3 @@
1 +metric,scope,dimensions,unit,description,chart_type,labels,plugin,module
2 +disk.space,mount point,"avail, used, reserved_for_root",GiB,"Disk Space Usage",stacked,"mount_point, filesystem, mount_root",diskspace.plugin,
3 +disk.inodes,mount point,"avail, used, reserved_for_root",inodes,"Disk Files (inodes) Usage",stacked,"mount_point, filesystem, mount_root",diskspace.plugin,
\ No newline at end of file
collectors/freeipmi.plugin/metrics.csv new
+10
@@ -0,0 +1,10 @@
1 +metric,scope,dimensions,unit,description,chart_type,labels,plugin,module
2 +ipmi.sel,,events,events,"IPMI Events",area,,freeipmi.plugin,
3 +ipmi.sensors_states,,"nominal, critical, warning",sensors,"IPMI Sensors State",line,,freeipmi.plugin,
4 +ipmi.temperatures_c,,a dimension per sensor,Celsius,"System Celsius Temperatures read by IPMI",line,,freeipmi.plugin,
5 +ipmi.temperatures_f,,a dimension per sensor,Fahrenheit,"System Celsius Temperatures read by IPMI",line,,freeipmi.plugin,
6 +ipmi.voltages,,a dimension per sensor,Volts,"System Voltages read by IPMI",line,,freeipmi.plugin,
7 +ipmi.amps,,a dimension per sensor,Amps,"System Current read by IPMI",line,,freeipmi.plugin,
8 +ipmi.rpm,,a dimension per sensor,RPM,"System Fans read by IPMI",line,,freeipmi.plugin,
9 +ipmi.watts,,a dimension per sensor,Watts,"System Power read by IPMI",line,,freeipmi.plugin,
10 +ipmi.percent,,a dimension per sensor,%,"System Metrics read by IPMI",line,,freeipmi.plugin,
\ No newline at end of file
collectors/idlejitter.plugin/metrics.csv new
+2
@@ -0,0 +1,2 @@
1 +metric,scope,dimensions,unit,description,chart_type,labels,plugin,module
2 +system.idlejitter,,"min, max, average","microseconds lost/s","CPU Idle Jitter",line,,idlejitter.plugin,
\ No newline at end of file
collectors/ioping.plugin/metrics.csv new
+2
@@ -0,0 +1,2 @@
1 +metric,scope,dimensions,unit,description,chart_type,labels,plugin,module
2 +ioping.latency,disk,latency,microseconds,"Read Latency",line,,ioping.plugin,
\ No newline at end of file
collectors/nfacct.plugin/metrics.csv new
+8
@@ -0,0 +1,8 @@
1 +metric,scope,dimensions,unit,description,chart_type,labels,plugin,module
2 +netfilter.netlink_new,,"new, ignore, invalid",connections/s,"Connection Tracker New Connections",line,,nfacct.plugin,
3 +netfilter.netlink_changes,,"insert, delete, delete_list",changes/s,"Connection Tracker Changes",line,,nfacct.plugin,
4 +netfilter.netlink_search,,"searched, search_restart, found",searches/s,"Connection Tracker Searches",line,,nfacct.plugin,
5 +netfilter.netlink_errors,,"icmp_error, insert_failed, drop, early_drop",events/s,"Connection Tracker Errors",line,,nfacct.plugin,
6 +netfilter.netlink_expect,,"created, deleted, new",expectations/s,"Connection Tracker Expectations",line,,nfacct.plugin,
7 +netfilter.nfacct_packets,,a dimension per nfacct object,packets/s,"Netfilter Accounting Packets",line,,nfacct.plugin,
8 +netfilter.nfacct_bytes,,a dimension per nfacct object,kilobytes/s,"Netfilter Accounting Bandwidth",line,,nfacct.plugin,
\ No newline at end of file
collectors/tc.plugin/metrics.csv new
+6
@@ -0,0 +1,6 @@
1 +metric,scope,dimensions,unit,description,chart_type,labels,plugin,module
2 +tc.qos,"network device, direction",a dimension per class,kilobits/s,"Class Usage",stacked,"device, name, family",tc.plugin,
3 +tc.qos_packets,"network device, direction",a dimension per class,packets/s,"Class Packets",stacked,"device, name, family",tc.plugin,
4 +tc.qos_dropped,"network device, direction",a dimension per class,packets/s,"Class Dropped Packets",stacked,"device, name, family",tc.plugin,
5 +tc.qos_tokens,"network device, direction",a dimension per class,tokens,"Class Tokens",line,"device, name, family",tc.plugin,
6 +tc.qos_ctokens,"network device, direction",a dimension per class,ctokens,"Class cTokens",line,"device, name, family",tc.plugin,
\ No newline at end of file