diff options
author | Rasmus Luha <rasmus.luha@ut.ee> | 2025-04-29 00:25:22 +0300 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@ut.ee> | 2025-04-29 00:25:22 +0300 |
commit | b2e8ec86abe8089ed5fbd1655677889b6691397f (patch) | |
tree | 0982990ad217e4537e1005dbd20c63d758facc17 /modules/telegraf/core.py | |
parent | 6b3c096f6efea8855772c7faffa90f71861290bd (diff) |
add cml variables, and platform option to config
Diffstat (limited to 'modules/telegraf/core.py')
-rw-r--r-- | modules/telegraf/core.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/telegraf/core.py b/modules/telegraf/core.py index 3febf7b..ffef7d5 100644 --- a/modules/telegraf/core.py +++ b/modules/telegraf/core.py @@ -25,10 +25,12 @@ def introduction(): ########################### -def modify_template(new_pipeline_path, api_url): - #telegraf_utils.modify_output("templates/basic_ETL.toml", "urls", "testingIfWorks") +def modify_template(new_pipeline_path, api_url, schedulingPeriod): - ## Api Url editing + ## Pipeline intervall + telegraf_utils.modify_agent(new_pipeline_path,"interval", schedulingPeriod) + + ## API url telegraf_utils.modify_input(new_pipeline_path,"urls", [api_url]) @@ -69,7 +71,7 @@ def build_pipeline(): shutil.copy(f"modules/telegraf/templates/{template_name}", new_pipeline_path) - modify_template(new_pipeline_path, api_url) + modify_template(new_pipeline_path, api_url, schedulingPeriod) #telegraf.modify_output("templates/basic_ETL.toml", "urls", "testingIfWorks") |