diff options
author | Fotis Voutsas <fotis@netdata.cloud> | 2024-02-08 11:22:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 11:22:51 +0200 |
commit | 47c5efa2567c70f9634400891d867826341b4e62 (patch) | |
tree | c7370028e25190abb491551771f3462a9431f696 /integrations | |
parent | e0ec10411bcfaeeaba331a93d5f3d96e23fa72e5 (diff) |
necessary changes for integrations to work after moving collectors/ i… (#16966)
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/gen_doc_collector_page.py | 2 | ||||
-rw-r--r-- | integrations/gen_docs_integrations.py | 3 | ||||
-rwxr-xr-x | 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<!-- AUTOGENERATED PART BY integrations/gen_doc_collector_page.py SCRIPT, DO NOT EDIT MANUALLY -->\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), ] |