necessary changes for integrations to work after moving collectors/ i… (#16966)
Fotis Voutsas committed
Feb 8, 2024 at 11:22 UTC
47c5efa2567c70f9634400891d867826341b4e62
3 files changed
+6
-5
integrations/gen_doc_collector_page.py
+1
-1
@@ -61,7 +61,7 @@ for category_id, integrations in sorted(cat_dict.items()):
61
md += "- " + integration_name + "\n\n"
62
63
64
-outfile = pathlib.Path("./collectors/COLLECTORS.md")
64
+outfile = pathlib.Path("./src/collectors/COLLECTORS.md")
65
output = outfile.read_text().split("## Available Data Collection Integrations")[0]
66
output += "## Available Data Collection Integrations\n<!-- AUTOGENERATED PART BY integrations/gen_doc_collector_page.py SCRIPT, DO NOT EDIT MANUALLY -->\n" + md
67
outfile.write_text(output.rstrip('\n')+"\n")
integrations/gen_docs_integrations.py
+2
-1
@@ -17,7 +17,8 @@ def cleanup():
17
if "integrations" in str(element):
18
shutil.rmtree(element)
19
else:
20
- for element in Path("collectors").glob('**/*/'):
20
+ for element in Path("src/collectors").glob('**/*/'):
21
+ # print(element)
22
if "integrations" in str(element):
23
shutil.rmtree(element)
24
integrations/gen_integrations.py
+3
-3
@@ -28,9 +28,9 @@ DISTROS_FILE = REPO_PATH / '.github' / 'data' / 'distros.yml'
28
METADATA_PATTERN = '*/metadata.yaml'
29
30
COLLECTOR_SOURCES = [
31
- (AGENT_REPO, REPO_PATH / 'collectors', True),
32
- (AGENT_REPO, REPO_PATH / 'collectors' / 'charts.d.plugin', True),
33
- (AGENT_REPO, REPO_PATH / 'collectors' / 'python.d.plugin', True),
31
+ (AGENT_REPO, REPO_PATH / 'src' / 'collectors', True),
32
+ (AGENT_REPO, REPO_PATH / 'src' / 'collectors' / 'charts.d.plugin', True),
33
+ (AGENT_REPO, REPO_PATH / 'src' / 'collectors' / 'python.d.plugin', True),
34
(GO_REPO, GO_REPO_PATH / 'modules', True),
35
]
36