From a7de3e719f4786a75010d0fdc02502048cf6a918 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 12 Aug 2018 12:05:12 +0200 Subject: [PATCH] Prometheus: More attributes --- prometheus/burrow-prometheus.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/prometheus/burrow-prometheus.c b/prometheus/burrow-prometheus.c index 272deae..9cab56e 100644 --- a/prometheus/burrow-prometheus.c +++ b/prometheus/burrow-prometheus.c @@ -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)]; -- 2.39.5