@cryptotaxi247 / netdata-1 / commits / 2c255bc7f

Fix spelling of Prometheus (#7673) (#7674)

Craig Andrews committed Jan 7, 2020 at 04:50 UTC 2c255bc7f063e8dc1c2a8f5ed5b8fae0f09a5cd1
4 files changed +5 -5
backends/backends.c
+2 -2
@@ -439,7 +439,7 @@ BACKEND_TYPE backend_select_type(const char *type) {
439 return BACKEND_TYPE_JSON;
440 }
441 else if (!strcmp(type, "prometheus_remote_write")) {
442 - return BACKEND_TYPE_PROMETEUS;
442 + return BACKEND_TYPE_PROMETHEUS;
443 }
444 else if (!strcmp(type, "kinesis") || !strcmp(type, "kinesis:plaintext")) {
445 return BACKEND_TYPE_KINESIS;
@@ -557,7 +557,7 @@ void *backends_main(void *ptr) {
557 backend_set_opentsdb_http_variables(&default_port,&backend_response_checker,&backend_request_formatter);
558 break;
559 }
560 - case BACKEND_TYPE_PROMETEUS: {
560 + case BACKEND_TYPE_PROMETHEUS: {
561 #if ENABLE_PROMETHEUS_REMOTE_WRITE
562 do_prometheus_remote_write = 1;
563
backends/backends.h
+1 -1
@@ -21,7 +21,7 @@ typedef enum backend_types {
21 BACKEND_TYPE_OPENTSDB_USING_TELNET, // Send data to OpenTSDB using telnet API
22 BACKEND_TYPE_OPENTSDB_USING_HTTP, // Send data to OpenTSDB using HTTP API
23 BACKEND_TYPE_JSON, // Stores the data using JSON.
24 - BACKEND_TYPE_PROMETEUS, // The user selected to use Prometheus backend
24 + BACKEND_TYPE_PROMETHEUS, // The user selected to use Prometheus backend
25 BACKEND_TYPE_KINESIS, // Send message to AWS Kinesis
26 BACKEND_TYPE_MONGODB, // Send data to MongoDB collection
27 BACKEND_TYPE_NUM // Number of backend types
configure.ac
+1 -1
@@ -999,7 +999,7 @@ test "${enable_backend_prometheus_remote_write}" = "yes" -a "${have_CXX_compiler
999 AC_MSG_ERROR([C++ compiler required but not found. try installing g++])
1000
1001 AC_MSG_CHECKING([if prometheus remote write backend should be enabled])
1002 -if test "${enable_backend_prometeus_remote_write}" != "no" -a "${have_libprotobuf}" = "yes" -a "${have_libsnappy}" = "yes" \
1002 +if test "${enable_backend_prometheus_remote_write}" != "no" -a "${have_libprotobuf}" = "yes" -a "${have_libsnappy}" = "yes" \
1003 -a "${have_protoc}" = "yes" -a "${have_CXX_compiler}" = "yes"; then
1004 enable_backend_prometheus_remote_write="yes"
1005 AC_DEFINE([ENABLE_PROMETHEUS_REMOTE_WRITE], [1], [Prometheus remote write API usability])
exporting/read_config.c
+1 -1
@@ -150,7 +150,7 @@ BACKEND_TYPE exporting_select_type(const char *type)
150 } else if (!strcmp(type, "json") || !strcmp(type, "json:plaintext")) {
151 return BACKEND_TYPE_JSON;
152 } else if (!strcmp(type, "prometheus_remote_write")) {
153 - return BACKEND_TYPE_PROMETEUS;
153 + return BACKEND_TYPE_PROMETHEUS;
154 } else if (!strcmp(type, "kinesis") || !strcmp(type, "kinesis:plaintext")) {
155 return BACKEND_TYPE_KINESIS;
156 } else if (!strcmp(type, "mongodb") || !strcmp(type, "mongodb:plaintext"))