Netdata bot a2bb44c610 Regenerate integrations.js (#19048) | 5 дней назад | |
---|---|---|
.. | ||
cloud-authentication | 1 месяц назад | |
cloud-notifications | 1 месяц назад | |
logs | 1 месяц назад | |
schemas | 1 месяц назад | |
templates | 1 месяц назад | |
README.md | 5 дней назад | |
categories.yaml | 7 месяцев назад | |
check_collector_metadata.py | 1 год назад | |
deploy.yaml | 1 неделя назад | |
gen_doc_collector_page.py | 9 месяцев назад | |
gen_docs_integrations.py | 1 месяц назад | |
gen_integrations.py | 1 месяц назад | |
integrations.js | 5 дней назад | |
integrations.json | 5 дней назад |
To generate a copy of integrations.js
locally, you will need:
jsonschema
referencing
jinja2
ruamel.yaml
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:
apt-get install python3-jsonschema python3-referencing python3-jinja2 python3-ruamel.yaml
apk add py3-jsonschema py3-referencing py3-jinja2 py3-ruamel.yaml
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.