Netdata bot c1fc7d522b Regenerate integrations.js (#16536) 1 год назад
..
cloud-notifications 4787184e7d Regenerate integrations.js (#16431) 1 год назад
schemas 8934a18ce4 Add integrations JSON file for website usage. (#15959) 1 год назад
templates 8934a18ce4 Add integrations JSON file for website usage. (#15959) 1 год назад
README.md 183bb1db19 Add initial tooling for generating integrations.js file. (#15406) 1 год назад
categories.yaml 6ad1828b65 Update categories.yaml (#16097) 1 год назад
check_collector_metadata.py 183bb1db19 Add initial tooling for generating integrations.js file. (#15406) 1 год назад
deploy.yaml 8b84673250 add /var/log mount to docker (#16496) 1 год назад
gen_doc_collector_page.py 5ff2ec1a29 Make collectors/COLLECTORS.md have its list autogenerated from integrations.js (#15995) 1 год назад
gen_docs_integrations.py 92616999de typo fixed in gen_docs_integrations.py (#16288) 1 год назад
gen_integrations.py c26ad48443 integrations: yes/no instead of True/False in tables (#16289) 1 год назад
integrations.js c1fc7d522b Regenerate integrations.js (#16536) 1 год назад
integrations.json c1fc7d522b Regenerate integrations.js (#16536) 1 год назад

README.md

To generate a copy of integrations.js locally, you will need:

  • Python 3.6 or newer (only tested on Python 3.10 currently, should work on any version of Python newer than 3.6).
  • The following third-party Python modules:
    • jsonschema
    • referencing
    • jinja2
    • ruamel.yaml
  • A local checkout of https://github.com/netdata/netdata
  • A local checkout of https://github.com/netdata/go.d.plugin. The script expects this to be checked out in a directory called go.d.plugin in the root directory of the agent repo, though a symlink with that name pointing at the actual location of the repo will work as well.

The first two parts can be easily covered in a Linux environment, such as a VM or Docker container:

  • On Debian or Ubuntu: apt-get install python3-jsonschema python3-referencing python3-jinja2 python3-ruamel.yaml
  • On Alpine: apk add py3-jsonschema py3-referencing py3-jinja2 py3-ruamel.yaml
  • On Fedora or RHEL (EPEL is required on RHEL systems): dnf install python3-jsonschema python3-referencing python3-jinja2 python3-ruamel-yaml

Once the environment is set up, simply run integrations/gen_integrations.py from the agent repo. Note that the script must be run from this specific location, as it uses it’s own path to figure out where all the files it needs are.