// Methods
.heartbeat = sensors_power_heartbeat,
};
+
+/*
+ Energy
+*/
+static int sensors_energy_heartbeat(td_ctx* ctx, td_source* source) {
+ sensors_value values[] = {
+ { "input", SENSORS_SUBFEATURE_ENERGY_INPUT },
+ { NULL },
+ };
+
+ return read_sensors(ctx, source, SENSORS_FEATURE_ENERGY, values);
+}
+
+const td_source_impl sensors_energy_source = {
+ .name = "sensors-energy",
+
+ // RRD Data Sources
+ .rrd_dss = {
+ { "input", "GAUGE", 0, -1, },
+ { NULL },
+ },
+
+ // Methods
+ .heartbeat = sensors_energy_heartbeat,
+};
extern const td_source_impl sensors_fan_source;
extern const td_source_impl sensors_temp_source;
extern const td_source_impl sensors_power_source;
+extern const td_source_impl sensors_energy_source;
#endif /* TELEMETRY_SOURCE_SENSORS_H */