]> mj.ucw.cz Git - home-hw.git/commitdiff
Prometheus: More attributes
authorMartin Mares <mj@ucw.cz>
Sun, 12 Aug 2018 10:05:12 +0000 (12:05 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 12 Aug 2018 10:09:12 +0000 (12:09 +0200)
prometheus/burrow-prometheus.c

index 272deae0b39324b86371d5c5afc7ccf9cd289a6b..9cab56eaa192e5f7058dbed85ed88c964d13d8c9 100644 (file)
@@ -33,12 +33,27 @@ struct attr {
 };
 
 static const struct attr attr_table[] = {
-       { "# HELP loft_temp Temperature in the loft [degC]", NULL },
-       { "# TYPE loft_temp gauge", NULL },
-       { "loft_temp", "burrow/loft/temperature" },
+       { "# HELP temp_loft Temperature in the loft [degC]", NULL },
+       { "# TYPE temp_loft gauge", NULL },
+       { "temp_loft", "burrow/loft/temperature" },
        { "# HELP loft_fan Fan speed in the loft", NULL },
        { "# TYPE loft_fan gauge", NULL },
        { "loft_fan", "burrow/loft/fan" },
+       { "# HELP temp_ursarium Temperature in the Ursarium [degC]", NULL },
+       { "# TYPE temp_ursarium gauge", NULL },
+       { "temp_ursarium", "burrow/arexxd/ursarium" },
+       { "# HELP temp_catarium Temperature in the Catarium [degC]", NULL },
+       { "# TYPE temp_catarium gauge", NULL },
+       { "temp_catarium", "burrow/arexxd/catarium" },
+       { "# HELP temp_machinarium Temperature in the Machinarium [degC]", NULL },
+       { "# TYPE temp_machinarium gauge", NULL },
+       { "temp_machinarium", "burrow/arexxd/machinarium" },
+       { "# HELP temp_garage Temperature in the garage [degC]", NULL },
+       { "# TYPE temp_garage gauge", NULL },
+       { "temp_garage", "burrow/arexxd/garage" },
+       { "# HELP rh_garage Relative humidity in the garage [%]", NULL },
+       { "# TYPE rh_garage gauge", NULL },
+       { "rh_garage", "burrow/arexxd/garage-rh" },
 };
 
 static char *attr_values[ARRAY_SIZE(attr_table)];