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… (#16966)
This commit is contained in:
parent
e0ec10411b
commit
47c5efa256
3 changed files with 6 additions and 5 deletions
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue