diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-10 09:18:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-10 09:19:08 +0000 |
commit | a2d7dede737947d7c6afa20a88e1f0c64e0eb96c (patch) | |
tree | fed4aff7dbe0be00cf91de6261d98bc0eb9a2449 /integrations/README.md | |
parent | Releasing debian version 1.41.0-1. (diff) | |
download | netdata-a2d7dede737947d7c6afa20a88e1f0c64e0eb96c.tar.xz netdata-a2d7dede737947d7c6afa20a88e1f0c64e0eb96c.zip |
Merging upstream version 1.42.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'integrations/README.md')
-rw-r--r-- | integrations/README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/integrations/README.md b/integrations/README.md new file mode 100644 index 000000000..377c1a306 --- /dev/null +++ b/integrations/README.md @@ -0,0 +1,26 @@ +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. |