From 5818cd79661223e467751b8f4594b47d4492a2c8 Mon Sep 17 00:00:00 2001 From: Priyanka Date: Mon, 17 Jun 2024 21:15:04 +0530 Subject: [PATCH] config update for poc v2 --- contrib/end2end/poc/controller/config/config.yaml | 2 +- contrib/end2end/poc/manager/config/config.yaml | 5 +++-- manager/configurator/tests/demo_2rules.yaml | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/contrib/end2end/poc/controller/config/config.yaml b/contrib/end2end/poc/controller/config/config.yaml index 48bd56e..7734076 100644 --- a/contrib/end2end/poc/controller/config/config.yaml +++ b/contrib/end2end/poc/controller/config/config.yaml @@ -40,7 +40,7 @@ parameters: input_data: [extracted_signals, signals_to_keep, signals_to_reduce] output_data: [r_value] config: - signal_filter_template: "app_A_network_utilization_metric_0|cluster_network_metric_0" + signal_filter_template: "app_A_network_utilization_metric_0|cluster_network_metric_0|k8s_pod_network_bytes|nwdaf_5G_network_utilization" signal_name_template: "$original_name" signal_condition_template: "cluster=$cluster and instance=$instance" processor_id_template: "$processor" diff --git a/contrib/end2end/poc/manager/config/config.yaml b/contrib/end2end/poc/manager/config/config.yaml index e44d7a0..d13da26 100644 --- a/contrib/end2end/poc/manager/config/config.yaml +++ b/contrib/end2end/poc/manager/config/config.yaml @@ -4,6 +4,7 @@ APP_URL_PREFIX: "/api/v1" LOG_FILE: "./app/logs/manager.log" PROCESSORS_FOLDER: "./app/processors" RULES_FOLDER: "./app/rules" -PROCESSOR_1_URL: "http://pmf_processor1:8100/morphchain" -PROCESSOR_2_URL: "http://pmf_processor2:8101/morphchain" +PROCESSOR_east_URL: "http://pmf_processor1:8100/morphchain" +PROCESSOR_west_URL: "http://pmf_processor2:8101/morphchain" ALERTMANAGER_URL: "http://ruler_config:8090" +CONTROLLER_URL: "http://controller:5000/api/v1/rerun" diff --git a/manager/configurator/tests/demo_2rules.yaml b/manager/configurator/tests/demo_2rules.yaml index 632af9a..076fc03 100644 --- a/manager/configurator/tests/demo_2rules.yaml +++ b/manager/configurator/tests/demo_2rules.yaml @@ -1,6 +1,6 @@ rules: - rule_id: rule_1 - processors: ['1'] + processors: ['east'] expr: (app_A_network_metric_0{IP="192.168.1.3"}) > 200 duration: 1s description: rule to filter metrics @@ -19,7 +19,7 @@ rules: resolved_action: action_type: delete_dag - rule_id: rule_2 - processors: ['2'] + processors: ['west'] expr: (cluster_hardware_metric_0{node="0"}) > 200 duration: 1s description: rule to change frequency for cluster metric to 5sec