From f9bc3d28a903d917dca6cf179e629ec08dda10ab Mon Sep 17 00:00:00 2001 From: atsag Date: Thu, 11 Jul 2024 14:28:51 +0300 Subject: [PATCH] Miscellaneous improvements Added required dependencies in the setup script Improved logging during dataset creation Added README.md file Change-Id: I67e98938f3660656d2ced916f258dfe5d475ecd3 --- .gitignore | 0 .gitreview | 5 --- .hadolint.yaml | 2 - .yamllint | 0 LICENSE | 0 .../.helmignore | 0 .../Chart.yaml | 0 .../templates/NOTES.txt | 0 .../templates/_helpers.tpl | 0 .../templates/deployment.yaml | 0 .../templates/hpa.yaml | 0 .../templates/ingress.yaml | 0 .../templates/service.yaml | 0 .../templates/serviceaccount.yaml | 0 .../values.yaml | 0 exponential-smoothing-predictor/Dockerfile | 0 exponential-smoothing-predictor/README.md | 37 +++++++++++++++++++ .../src/exn/__init__.py | 0 .../src/exn/connector.py | 0 .../src/exn/core/__init__.py | 0 .../src/exn/core/consumer.py | 0 .../src/exn/core/context.py | 0 .../src/exn/core/handler.py | 0 .../src/exn/core/link.py | 0 .../src/exn/core/manager.py | 0 .../src/exn/core/publisher.py | 0 .../src/exn/core/schedule_publisher.py | 0 .../src/exn/core/state_publisher.py | 0 .../src/exn/handler/__init__.py | 0 .../src/exn/handler/connector_handler.py | 0 .../src/exn/settings/__init__.py | 0 .../src/exn/settings/base.py | 0 .../src/prepare_python_dependencies.sh | 0 .../src/r_predictors/__init__.py | 0 .../src/r_predictors/default_application.csv | 0 .../r_predictors/forecasting_real_workload.R | 0 ...rediction_configuration-windows.properties | 0 .../prediction_configuration.properties | 2 +- .../src/r_predictors/r_commands.R | 0 .../src/requirements.txt | 0 .../src/runtime/Predictor.py | 17 ++++++--- .../src/runtime/__init__.py | 0 .../operational_status/ApplicationState.py | 20 ++++------ .../operational_status/EsPredictorState.py | 0 .../runtime/operational_status/__init__.py | 0 .../src/runtime/predictions/Prediction.py | 0 .../src/runtime/predictions/__init__.py | 0 .../predictions/prediction_requirements.txt | 0 .../runtime/utilities/InfluxDBConnector.py | 0 .../runtime/utilities/PredictionPublisher.py | 0 .../src/runtime/utilities/Utilities.py | 0 .../src/runtime/utilities/__init__.py | 0 exponential-smoothing-predictor/src/setup.py | 8 +++- java-spring-boot-demo/.gitignore | 0 java-spring-boot-demo/Dockerfile | 0 java-spring-boot-demo/pom.xml | 0 .../com/example/demo/DemoApplication.java | 0 .../java/com/example/demo/DemoController.java | 0 .../src/main/resources/application.properties | 0 .../example/demo/DemoApplicationTests.java | 0 noxfile.py | 0 zuul.d/jobs.yaml | 0 zuul.d/project.yaml | 0 63 files changed, 64 insertions(+), 27 deletions(-) mode change 100644 => 100755 .gitignore delete mode 100644 .gitreview delete mode 100644 .hadolint.yaml mode change 100644 => 100755 .yamllint mode change 100644 => 100755 LICENSE mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/.helmignore mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/Chart.yaml mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/templates/NOTES.txt mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/templates/_helpers.tpl mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/templates/deployment.yaml mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/templates/hpa.yaml mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/templates/ingress.yaml mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/templates/service.yaml mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/templates/serviceaccount.yaml mode change 100644 => 100755 charts/nebulous-exponential-smoothing-predictor/values.yaml mode change 100644 => 100755 exponential-smoothing-predictor/Dockerfile create mode 100755 exponential-smoothing-predictor/README.md mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/connector.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/consumer.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/context.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/handler.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/link.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/manager.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/publisher.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/schedule_publisher.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/core/state_publisher.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/handler/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/handler/connector_handler.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/settings/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/exn/settings/base.py mode change 100644 => 100755 exponential-smoothing-predictor/src/prepare_python_dependencies.sh mode change 100644 => 100755 exponential-smoothing-predictor/src/r_predictors/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/r_predictors/default_application.csv mode change 100644 => 100755 exponential-smoothing-predictor/src/r_predictors/forecasting_real_workload.R mode change 100644 => 100755 exponential-smoothing-predictor/src/r_predictors/prediction_configuration-windows.properties mode change 100644 => 100755 exponential-smoothing-predictor/src/r_predictors/prediction_configuration.properties mode change 100644 => 100755 exponential-smoothing-predictor/src/r_predictors/r_commands.R mode change 100644 => 100755 exponential-smoothing-predictor/src/requirements.txt mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/Predictor.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/operational_status/ApplicationState.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/operational_status/EsPredictorState.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/operational_status/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/predictions/Prediction.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/predictions/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/predictions/prediction_requirements.txt mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/utilities/InfluxDBConnector.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/utilities/PredictionPublisher.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/utilities/Utilities.py mode change 100644 => 100755 exponential-smoothing-predictor/src/runtime/utilities/__init__.py mode change 100644 => 100755 exponential-smoothing-predictor/src/setup.py mode change 100644 => 100755 java-spring-boot-demo/.gitignore mode change 100644 => 100755 java-spring-boot-demo/Dockerfile mode change 100644 => 100755 java-spring-boot-demo/pom.xml mode change 100644 => 100755 java-spring-boot-demo/src/main/java/com/example/demo/DemoApplication.java mode change 100644 => 100755 java-spring-boot-demo/src/main/java/com/example/demo/DemoController.java mode change 100644 => 100755 java-spring-boot-demo/src/main/resources/application.properties mode change 100644 => 100755 java-spring-boot-demo/src/test/java/com/example/demo/DemoApplicationTests.java mode change 100644 => 100755 noxfile.py mode change 100644 => 100755 zuul.d/jobs.yaml mode change 100644 => 100755 zuul.d/project.yaml diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.gitreview b/.gitreview deleted file mode 100644 index 21767f4..0000000 --- a/.gitreview +++ /dev/null @@ -1,5 +0,0 @@ -[gerrit] -host=review.opendev.org -port=29418 -project=nebulous/exponential-smoothing-predictor.git -defaultbranch=master diff --git a/.hadolint.yaml b/.hadolint.yaml deleted file mode 100644 index 0aa5f7c..0000000 --- a/.hadolint.yaml +++ /dev/null @@ -1,2 +0,0 @@ -ignored: - - DL3008 \ No newline at end of file diff --git a/.yamllint b/.yamllint old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/.helmignore b/charts/nebulous-exponential-smoothing-predictor/.helmignore old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/Chart.yaml b/charts/nebulous-exponential-smoothing-predictor/Chart.yaml old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/templates/NOTES.txt b/charts/nebulous-exponential-smoothing-predictor/templates/NOTES.txt old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/templates/_helpers.tpl b/charts/nebulous-exponential-smoothing-predictor/templates/_helpers.tpl old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/templates/deployment.yaml b/charts/nebulous-exponential-smoothing-predictor/templates/deployment.yaml old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/templates/hpa.yaml b/charts/nebulous-exponential-smoothing-predictor/templates/hpa.yaml old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/templates/ingress.yaml b/charts/nebulous-exponential-smoothing-predictor/templates/ingress.yaml old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/templates/service.yaml b/charts/nebulous-exponential-smoothing-predictor/templates/service.yaml old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/templates/serviceaccount.yaml b/charts/nebulous-exponential-smoothing-predictor/templates/serviceaccount.yaml old mode 100644 new mode 100755 diff --git a/charts/nebulous-exponential-smoothing-predictor/values.yaml b/charts/nebulous-exponential-smoothing-predictor/values.yaml old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/Dockerfile b/exponential-smoothing-predictor/Dockerfile old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/README.md b/exponential-smoothing-predictor/README.md new file mode 100755 index 0000000..9d59045 --- /dev/null +++ b/exponential-smoothing-predictor/README.md @@ -0,0 +1,37 @@ +# Exponential Smoothing predictor + +## Introduction + +The exponential smoothing predictor is one of the predictors that will be available to the NebulOuS platform for forecasting. Along with other prediction methods, it provides its input to the Prediction Orchestrator which then aggregates it and forwards finalized predictions. + +To be used, it follows the process which is outlined in the NebulOuS wiki page related to the generation of predictions: + +https://github.com/eu-nebulous/nebulous/wiki/5.3-Predictions-Generation-Process + +The exponential smoothing forecaster is based on the use of the Holt-Winters R library to generate predictions. It uses data stored by the monitoring data persistor module (https://github.com/eu-nebulous/monitoring-data-persistor). Data is resampled in order not to create too much load on the forecasting component. Based on the input events, it generates a number of forward predictions, which can be exploited by the Prediction Orchestrator + +## Component outline and use + +Before starting the component, please ensure that there is at least one recent prediction (where recent is at most as old as the expected difference between the time of the first prediction and the current time), and at least one data point as old as three times the difference between the first prediction and the current time. +To illustrate, assume that the current time is 1705046000, and the first prediction will happen at 1705046500. Then, one recent datapoint is needed (not older than 1705045500) and at least one older datapoint is needed (not more recent than 1705044500). +Usually, a couple of minutes of recent data should be enough for predictions a few seconds ahead (please scale accordingly, depending on your scenario) + +The component initially waits for a `start_forecasting` sent to the `eu.nebulouscloud.forecasting.start_forecasting.exponentialsmoothing` topic. +An example payload for this event follows: + +```json +{ + "name": "_Application1", + "metrics": ["cpu_usage"], + "timestamp": 1705046535, + "epoch_start": 1705046500, + "number_of_forward_predictions": 5, + "prediction_horizon": 10 +} +``` + +Once this event is sent, it subscribes to the appropriate metric topics and publishes values as required (in the scenario above, 5 predictions every 10 seconds for the cpu_usage metric). + +Optionally, and preferably before the start_forecasting event, the component can receive a metric_list event (Event type 3 in the SLO Severity-based Violation Detector interface). Using the information related to the metrics which is contained there, it will be able to constrain predictions to an admissible range for each metric it provides predictions for. + +https://github.com/eu-nebulous/nebulous/wiki/5.2-The-SLO-Severity%E2%80%90based-Violation-Detector-Interface diff --git a/exponential-smoothing-predictor/src/exn/__init__.py b/exponential-smoothing-predictor/src/exn/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/connector.py b/exponential-smoothing-predictor/src/exn/connector.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/__init__.py b/exponential-smoothing-predictor/src/exn/core/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/consumer.py b/exponential-smoothing-predictor/src/exn/core/consumer.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/context.py b/exponential-smoothing-predictor/src/exn/core/context.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/handler.py b/exponential-smoothing-predictor/src/exn/core/handler.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/link.py b/exponential-smoothing-predictor/src/exn/core/link.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/manager.py b/exponential-smoothing-predictor/src/exn/core/manager.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/publisher.py b/exponential-smoothing-predictor/src/exn/core/publisher.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/schedule_publisher.py b/exponential-smoothing-predictor/src/exn/core/schedule_publisher.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/core/state_publisher.py b/exponential-smoothing-predictor/src/exn/core/state_publisher.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/handler/__init__.py b/exponential-smoothing-predictor/src/exn/handler/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/handler/connector_handler.py b/exponential-smoothing-predictor/src/exn/handler/connector_handler.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/settings/__init__.py b/exponential-smoothing-predictor/src/exn/settings/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/exn/settings/base.py b/exponential-smoothing-predictor/src/exn/settings/base.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/prepare_python_dependencies.sh b/exponential-smoothing-predictor/src/prepare_python_dependencies.sh old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/r_predictors/__init__.py b/exponential-smoothing-predictor/src/r_predictors/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/r_predictors/default_application.csv b/exponential-smoothing-predictor/src/r_predictors/default_application.csv old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/r_predictors/forecasting_real_workload.R b/exponential-smoothing-predictor/src/r_predictors/forecasting_real_workload.R old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/r_predictors/prediction_configuration-windows.properties b/exponential-smoothing-predictor/src/r_predictors/prediction_configuration-windows.properties old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/r_predictors/prediction_configuration.properties b/exponential-smoothing-predictor/src/r_predictors/prediction_configuration.properties old mode 100644 new mode 100755 index d24ac5c..0e38281 --- a/exponential-smoothing-predictor/src/r_predictors/prediction_configuration.properties +++ b/exponential-smoothing-predictor/src/r_predictors/prediction_configuration.properties @@ -1,4 +1,4 @@ -#Thu May 16 12:31:21 UTC 2024 +#Thu Jul 11 09:34:44 UTC 2024 APP_NAME=default_application METHOD=exponential_smoothing INFLUXDB_HOSTNAME=nebulous-influxdb diff --git a/exponential-smoothing-predictor/src/r_predictors/r_commands.R b/exponential-smoothing-predictor/src/r_predictors/r_commands.R old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/requirements.txt b/exponential-smoothing-predictor/src/requirements.txt old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/Predictor.py b/exponential-smoothing-predictor/src/runtime/Predictor.py old mode 100644 new mode 100755 index f2c18e3..cd11653 --- a/exponential-smoothing-predictor/src/runtime/Predictor.py +++ b/exponential-smoothing-predictor/src/runtime/Predictor.py @@ -109,7 +109,7 @@ def predict_attribute(application_state, attribute, configuration_file_location, process_output = run(command, shell=True, stdout=PIPE, stderr=PIPE, universal_newlines=True) if (process_output.stdout==""): - print_with_time("Empty output from R predictions - the error output is the following:") + logging.info("Empty output from R predictions - the error output is the following:") print(process_output.stderr) #There was an error during the calculation of the predicted value process_output_string_list = process_output.stdout.replace("[1] ", "").replace("\"", "").split() @@ -139,8 +139,14 @@ def predict_attribute(application_state, attribute, configuration_file_location, prediction_valid = True print_with_time("The prediction for attribute " + attribute + " is " + str(prediction_value)+ " and the confidence interval is "+prediction_confidence_interval) else: - print_with_time("There was an error during the calculation of the predicted value for "+str(attribute)+", the error log follows") - print_with_time(process_output.stdout) + logging.info("There was an error during the calculation of the predicted value for "+str(attribute)+", the error log follows") + logging.info(process_output.stdout) + logging.info("\n") + logging.info("----------------------") + logging.info("Printing stderr") + logging.info("----------------------") + logging.info("\n") + logging.info(process_output.stderr) output_prediction = Prediction(prediction_value, prediction_confidence_interval,prediction_valid,prediction_mae,prediction_mse,prediction_mape,prediction_smape) return output_prediction @@ -454,8 +460,9 @@ def main(): #Change to the appropriate directory in order i) To invoke the forecasting script appropriately and ii) To store the monitoring data necessary for predictions from sys import platform - if platform == "win32": - os.chdir("exponential-smoothing-predictor/src/r_predictors") + if platform == "win32" or bool(os.environ["TEST_RUN"]): + print(os.listdir(".")) + os.chdir("../r_predictors") # linux elif platform == "linux" or platform == "linux2": os.chdir("/home/r_predictions") diff --git a/exponential-smoothing-predictor/src/runtime/__init__.py b/exponential-smoothing-predictor/src/runtime/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/operational_status/ApplicationState.py b/exponential-smoothing-predictor/src/runtime/operational_status/ApplicationState.py old mode 100644 new mode 100755 index cf7f80d..b86d922 --- a/exponential-smoothing-predictor/src/runtime/operational_status/ApplicationState.py +++ b/exponential-smoothing-predictor/src/runtime/operational_status/ApplicationState.py @@ -77,20 +77,10 @@ def update_monitoring_data(self): Utilities.print_with_time("Starting dataset creation process...") try: - """ - Deprecated functionality to retrieve dataset creation details. Relevant functionality moved inside the load configuration method - influxdb_hostname = os.environ.get("INFLUXDB_HOSTNAME","localhost") - influxdb_port = int(os.environ.get("INFLUXDB_PORT","8086")) - influxdb_username = os.environ.get("INFLUXDB_USERNAME","morphemic") - influxdb_password = os.environ.get("INFLUXDB_PASSWORD","password") - influxdb_dbname = os.environ.get("INFLUXDB_DBNAME","morphemic") - influxdb_org = os.environ.get("INFLUXDB_ORG","morphemic") - application_name = "default_application" - """ for metric_name in self.metrics_to_predict: time_interval_to_get_data_for = str(EsPredictorState.number_of_days_to_use_data_from) + "d" print_data_from_db = True - query_string = 'from(bucket: "'+self.influxdb_bucket+'") |> range(start:-'+time_interval_to_get_data_for+') |> filter(fn: (r) => r["_measurement"] == "'+metric_name+'")' + query_string = 'from (bucket: "'+self.influxdb_bucket+'") |> range(start:-'+time_interval_to_get_data_for+') |> filter(fn: (r) => r["_measurement"] == "'+metric_name+'")' influx_connector = InfluxDBConnector() logging.info("performing query for application with bucket "+str(self.influxdb_bucket)) logging.info("The body of the query is "+query_string) @@ -98,9 +88,13 @@ def update_monitoring_data(self): current_time = time.time() result = influx_connector.client.query_api().query(query_string, EsPredictorState.influxdb_organization) elapsed_time = time.time()-current_time - logging.info("performed query, it took "+str(elapsed_time) + " seconds") + prediction_dataset_filename = self.get_prediction_data_filename(EsPredictorState.configuration_file_location, metric_name) + if len(result)>0: + logging.info(f"Performed query to the database, it took "+str(elapsed_time) + f" seconds to receive {len(result[0].records)} entries (from the first and possibly only table returned). Now logging to {prediction_dataset_filename}") + else: + logging.info("No records returned from database") #print(result.to_values()) - with open(self.get_prediction_data_filename(EsPredictorState.configuration_file_location, metric_name), 'w') as file: + with open(prediction_dataset_filename, 'w') as file: for table in result: #print header row file.write("Timestamp,ems_time,"+metric_name+"\r\n") diff --git a/exponential-smoothing-predictor/src/runtime/operational_status/EsPredictorState.py b/exponential-smoothing-predictor/src/runtime/operational_status/EsPredictorState.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/operational_status/__init__.py b/exponential-smoothing-predictor/src/runtime/operational_status/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/predictions/Prediction.py b/exponential-smoothing-predictor/src/runtime/predictions/Prediction.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/predictions/__init__.py b/exponential-smoothing-predictor/src/runtime/predictions/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/predictions/prediction_requirements.txt b/exponential-smoothing-predictor/src/runtime/predictions/prediction_requirements.txt old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/utilities/InfluxDBConnector.py b/exponential-smoothing-predictor/src/runtime/utilities/InfluxDBConnector.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/utilities/PredictionPublisher.py b/exponential-smoothing-predictor/src/runtime/utilities/PredictionPublisher.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/utilities/Utilities.py b/exponential-smoothing-predictor/src/runtime/utilities/Utilities.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/runtime/utilities/__init__.py b/exponential-smoothing-predictor/src/runtime/utilities/__init__.py old mode 100644 new mode 100755 diff --git a/exponential-smoothing-predictor/src/setup.py b/exponential-smoothing-predictor/src/setup.py old mode 100644 new mode 100755 index 1ac1643..045ccde --- a/exponential-smoothing-predictor/src/setup.py +++ b/exponential-smoothing-predictor/src/setup.py @@ -35,7 +35,13 @@ # Dependent packages (distributions) install_requires=[ "python-slugify", - "jproperties" + "jproperties", + "requests", + "numpy", + "python-qpid-proton", + "influxdb-client", + "python-dotenv", + "python-dateutil" ], #package_dir={'': '.'}, entry_points={ diff --git a/java-spring-boot-demo/.gitignore b/java-spring-boot-demo/.gitignore old mode 100644 new mode 100755 diff --git a/java-spring-boot-demo/Dockerfile b/java-spring-boot-demo/Dockerfile old mode 100644 new mode 100755 diff --git a/java-spring-boot-demo/pom.xml b/java-spring-boot-demo/pom.xml old mode 100644 new mode 100755 diff --git a/java-spring-boot-demo/src/main/java/com/example/demo/DemoApplication.java b/java-spring-boot-demo/src/main/java/com/example/demo/DemoApplication.java old mode 100644 new mode 100755 diff --git a/java-spring-boot-demo/src/main/java/com/example/demo/DemoController.java b/java-spring-boot-demo/src/main/java/com/example/demo/DemoController.java old mode 100644 new mode 100755 diff --git a/java-spring-boot-demo/src/main/resources/application.properties b/java-spring-boot-demo/src/main/resources/application.properties old mode 100644 new mode 100755 diff --git a/java-spring-boot-demo/src/test/java/com/example/demo/DemoApplicationTests.java b/java-spring-boot-demo/src/test/java/com/example/demo/DemoApplicationTests.java old mode 100644 new mode 100755 diff --git a/noxfile.py b/noxfile.py old mode 100644 new mode 100755 diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml old mode 100644 new mode 100755 diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml old mode 100644 new mode 100755