summaryrefslogtreecommitdiffstats
path: root/src/collectors/proc.plugin/proc_pressure.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:18 +0000
commit5da14042f70711ea5cf66e034699730335462f66 (patch)
tree0f6354ccac934ed87a2d555f45be4c831cf92f4a /src/collectors/proc.plugin/proc_pressure.h
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz
netdata-5da14042f70711ea5cf66e034699730335462f66.zip
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/collectors/proc.plugin/proc_pressure.h')
-rw-r--r--src/collectors/proc.plugin/proc_pressure.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/collectors/proc.plugin/proc_pressure.h b/src/collectors/proc.plugin/proc_pressure.h
new file mode 100644
index 000000000..2e5cab2cc
--- /dev/null
+++ b/src/collectors/proc.plugin/proc_pressure.h
@@ -0,0 +1,44 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef NETDATA_PROC_PRESSURE_H
+#define NETDATA_PROC_PRESSURE_H
+
+#define PRESSURE_NUM_RESOURCES 4
+
+struct pressure {
+ int updated;
+ char *filename;
+
+ struct pressure_charts {
+ bool available;
+ int enabled;
+
+ struct pressure_share_time_chart {
+ const char *id;
+ const char *title;
+
+ double value10;
+ double value60;
+ double value300;
+
+ RRDSET *st;
+ RRDDIM *rd10;
+ RRDDIM *rd60;
+ RRDDIM *rd300;
+ } share_time;
+
+ struct pressure_total_time_chart {
+ const char *id;
+ const char *title;
+
+ unsigned long long value_total;
+
+ RRDSET *st;
+ RRDDIM *rdtotal;
+ } total_time;
+ } some, full;
+};
+
+void update_pressure_charts(struct pressure_charts *charts);
+
+#endif //NETDATA_PROC_PRESSURE_H