From b802d34c42b672fbd9ae9b46803db6fce613ae5c Mon Sep 17 00:00:00 2001 From: Mark Hansen Date: Sat, 27 Jun 2020 12:04:32 +1000 Subject: [PATCH] Move #define USE_PROMETHEUS to my_user_config.h This is where all the other #defines live. This should make it easier to find the #define for enabling prometheus. --- tasmota/my_user_config.h | 3 +++ tasmota/xsns_91_prometheus.ino | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 45345c771..e1e75e4b1 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -741,6 +741,9 @@ #define THERMOSTAT_TEMP_BAND_NO_PEAK_DET 1 // Default temperature band in thenths of degrees celsius within no peak will be detected #define THERMOSTAT_TIME_STD_DEV_PEAK_DET_OK 10 // Default standard deviation in minutes of the oscillation periods within the peak detection is successful +// -- Prometheus exporter --------------------------- +//#define USE_PROMETHEUS // Add support for https://prometheus.io/ metrics exporting over HTTP /metrics endpoint + // -- End of general directives ------------------- /*********************************************************************************************\ diff --git a/tasmota/xsns_91_prometheus.ino b/tasmota/xsns_91_prometheus.ino index 9e29afe75..aa4d02ad4 100644 --- a/tasmota/xsns_91_prometheus.ino +++ b/tasmota/xsns_91_prometheus.ino @@ -17,8 +17,6 @@ along with this program. If not, see . */ -//#define USE_PROMETHEUS // Enable retrieval of metrics - #ifdef USE_PROMETHEUS /*********************************************************************************************\ * Prometheus support