.type = "gauge",
.topic = "burrow/temp/garage-rh"
},
+ {
+ .metric = "temp_catarium_clock",
+ .help = "Temperature on Catarium clock [degC]",
+ .type = "gauge",
+ .topic = "burrow/temp/clock"
+ },
+ {
+ .metric = "press_catarium_clock",
+ .help = "Pressure on Catarium clock [Pa]",
+ .type = "gauge",
+ .topic = "burrow/pressure/clock"
+ },
};
static char *attr_values[ARRAY_SIZE(attr_table)];
if (a->type)
bprintf(fb, "# TYPE %s %s\n", a->metric, a->type);
bprintf(fb, "%s %s", a->metric, val);
+#if 0
+ // Prometheus does not like our timestamps -- why?
if (fields >= 2)
bprintf(fb, " %s", w[1]);
+#endif
bputc(fb, '\n');
}
}