From 47c5efa2567c70f9634400891d867826341b4e62 Mon Sep 17 00:00:00 2001 From: Fotis Voutsas Date: Thu, 8 Feb 2024 11:22:51 +0200 Subject: =?UTF-8?q?necessary=20changes=20for=20integrations=20to=20work=20?= =?UTF-8?q?after=20moving=20collectors/=20i=E2=80=A6=20(#16966)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- integrations/gen_doc_collector_page.py | 2 +- integrations/gen_docs_integrations.py | 3 ++- integrations/gen_integrations.py | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/integrations/gen_doc_collector_page.py b/integrations/gen_doc_collector_page.py index 210d259ad5..c8a9f28698 100644 --- a/integrations/gen_doc_collector_page.py +++ b/integrations/gen_doc_collector_page.py @@ -61,7 +61,7 @@ for category_id, integrations in sorted(cat_dict.items()): md += "- " + integration_name + "\n\n" -outfile = pathlib.Path("./collectors/COLLECTORS.md") +outfile = pathlib.Path("./src/collectors/COLLECTORS.md") output = outfile.read_text().split("## Available Data Collection Integrations")[0] output += "## Available Data Collection Integrations\n\n" + md outfile.write_text(output.rstrip('\n')+"\n") diff --git a/integrations/gen_docs_integrations.py b/integrations/gen_docs_integrations.py index 6d8a76374f..af53656892 100644 --- a/integrations/gen_docs_integrations.py +++ b/integrations/gen_docs_integrations.py @@ -17,7 +17,8 @@ def cleanup(): if "integrations" in str(element): shutil.rmtree(element) else: - for element in Path("collectors").glob('**/*/'): + for element in Path("src/collectors").glob('**/*/'): + # print(element) if "integrations" in str(element): shutil.rmtree(element) diff --git a/integrations/gen_integrations.py b/integrations/gen_integrations.py index 5e56e4ddaa..938ae735cc 100755 --- a/integrations/gen_integrations.py +++ b/integrations/gen_integrations.py @@ -28,9 +28,9 @@ DISTROS_FILE = REPO_PATH / '.github' / 'data' / 'distros.yml' METADATA_PATTERN = '*/metadata.yaml' COLLECTOR_SOURCES = [ - (AGENT_REPO, REPO_PATH / 'collectors', True), - (AGENT_REPO, REPO_PATH / 'collectors' / 'charts.d.plugin', True), - (AGENT_REPO, REPO_PATH / 'collectors' / 'python.d.plugin', True), + (AGENT_REPO, REPO_PATH / 'src' / 'collectors', True), + (AGENT_REPO, REPO_PATH / 'src' / 'collectors' / 'charts.d.plugin', True), + (AGENT_REPO, REPO_PATH / 'src' / 'collectors' / 'python.d.plugin', True), (GO_REPO, GO_REPO_PATH / 'modules', True), ] -- cgit v1.2.3