diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:07:37 +0000 |
commit | b485aab7e71c1625cfc27e0f92c9509f42378458 (patch) | |
tree | ae9abe108601079d1679194de237c9a435ae5b55 /integrations/gen_integrations.py | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.tar.xz netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.zip |
Adding upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'integrations/gen_integrations.py')
-rwxr-xr-x | integrations/gen_integrations.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/integrations/gen_integrations.py b/integrations/gen_integrations.py index 043c22a77..2b188b630 100755 --- a/integrations/gen_integrations.py +++ b/integrations/gen_integrations.py @@ -14,7 +14,6 @@ from referencing.jsonschema import DRAFT7 from ruamel.yaml import YAML, YAMLError AGENT_REPO = 'netdata/netdata' -GO_REPO = 'netdata/go.d.plugin' INTEGRATIONS_PATH = Path(__file__).parent TEMPLATE_PATH = INTEGRATIONS_PATH / 'templates' @@ -23,15 +22,14 @@ JSON_PATH = INTEGRATIONS_PATH / 'integrations.json' CATEGORIES_FILE = INTEGRATIONS_PATH / 'categories.yaml' REPO_PATH = INTEGRATIONS_PATH.parent SCHEMA_PATH = INTEGRATIONS_PATH / 'schemas' -GO_REPO_PATH = REPO_PATH / 'go.d.plugin' 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), - (GO_REPO, GO_REPO_PATH / 'modules', 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), + (AGENT_REPO, REPO_PATH / 'src' / 'go' / 'collectors' / 'go.d.plugin' / 'modules', True), ] DEPLOY_SOURCES = [ @@ -39,11 +37,11 @@ DEPLOY_SOURCES = [ ] EXPORTER_SOURCES = [ - (AGENT_REPO, REPO_PATH / 'exporting', True), + (AGENT_REPO, REPO_PATH / 'src' / 'exporting', True), ] NOTIFICATION_SOURCES = [ - (AGENT_REPO, REPO_PATH / 'health' / 'notifications', True), + (AGENT_REPO, REPO_PATH / 'src' / 'health' / 'notifications', True), (AGENT_REPO, INTEGRATIONS_PATH / 'cloud-notifications' / 'metadata.yaml', False), ] @@ -399,10 +397,7 @@ def make_id(meta): def make_edit_link(item): - if item['_repo'] == 'netdata/go.d.plugin': - item_path = item['_src_path'].relative_to(GO_REPO_PATH) - else: - item_path = item['_src_path'].relative_to(REPO_PATH) + item_path = item['_src_path'].relative_to(REPO_PATH) return f'https://github.com/{ item["_repo"] }/blob/master/{ item_path }' |