0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-17 19:22:40 +00:00

necessary changes for integrations to work after moving collectors/ i… ()

This commit is contained in:
Fotis Voutsas 2024-02-08 11:22:51 +02:00 committed by GitHub
parent e0ec10411b
commit 47c5efa256
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View file

@ -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")

View file

@ -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)

View file

@ -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),
]