Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from netdata:master #191

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packaging/installer/UNINSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ curl https://get.netdata.cloud/kickstart.sh > /tmp/netdata-kickstart.sh && sh /t

</details>


**What to Expect**:

In most cases, these commands will guide you through the uninstallation process and remove configuration and data files automatically.
Expand Down Expand Up @@ -81,3 +80,9 @@ chmod +x ./netdata-uninstaller.sh
## Windows

To uninstall Netdata on Windows, use the standard application uninstaller in your **Settings** app or **Control Panel**.

You can also use PowerShell:

```powershell
msiexec /qn /x netdata-x64.msi
```
4 changes: 0 additions & 4 deletions packaging/installer/UPDATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /

To update Netdata, [download](/packaging/windows/WINDOWS_INSTALLER.md#download-the-msi-installer) the latest installer and reinstall the Agent.

> **Note**
>
> The Windows Agent is currently under beta and only available for Nightly releases, and the installer can be found in our [nightlies repo](https://github.com/netdata/netdata-nightlies). A stable version will be released soon.

## macOS

If you installed Netdata on your macOS system using Homebrew, you can explicitly request an update:
Expand Down
54 changes: 30 additions & 24 deletions packaging/installer/methods/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ and fail if it cannot do so.
> **Note**
>
> In July 2022, we switched hosting of our native packages from Package Cloud to self-hosted repositories.
> We still maintain the Package cloud repositories, but they are not guaranteed to work and may be removed
> without prior warning.
>
> When selecting a repository configuration package, note that the version 2 packages provide configuration for
> our self-hosted repositories, and then version 1 packages provide configuration for Package Cloud.
> Until late 2024 we continued to provide packages via Package Cloud, but we have since then switched to only
> providing packages via our repositories.

## Manual setup of RPM packages

Netdata’s official RPM repositories are hosted at <https://repo.netdata.cloud/repos>. We provide four groups of
Netdata’s official RPM repositories are hosted at <https://repository.netdata.cloud/repos>. We provide four groups of
repositories at that top level:

- `stable`: Contains packages for stable releases of the Netdata Agent.
Expand All @@ -42,14 +39,14 @@ Under each of those directories is a directory for each supported release of tha
directory for each supported CPU architecture which contains the actual repository.

For example, for stable release packages for RHEL 9 on 64-bit x86, the full URL for the repository would be
<https://repo.netdata.cloud/repos/stable/el/9/x86_64/>
<https://repository.netdata.cloud/repos/stable/el/9/x86_64/>

Our RPM packages and repository metadata are signed using a GPG key with a user name of ‘Netdatabot’. The
current key fingerprint is `6588FDD7B14721FE7C3115E6F9177B5265F56346`. The associated public key can be fetched from
`https://repo.netdata.cloud/netdatabot.gpg.key`.
`https://repository.netdata.cloud/netdatabot.gpg.key`.

If you are explicitly configuring a system to use our repositories, the recommended setup is to download the
appropriate repository configuration package from <https://repo.netdata.cloud/repos/repoconfig> and install it
appropriate repository configuration package from <https://repository.netdata.cloud/repos/repoconfig> and install it
directly on the target system using the system package manager. This will ensure any packages needed to use the
repository are also installed, and will help enable a seamless transition if we ever need to change our infrastructure.

Expand All @@ -62,7 +59,7 @@ repository are also installed, and will help enable a seamless transition if we

## Manual setup of DEB packages

Netdata’s official DEB repositories are hosted at <https://repo.netdata.cloud/repos>. We provide four groups of
Netdata’s official DEB repositories are hosted at <https://repository.netdata.cloud/repos>. We provide four groups of
repositories at that top level:

- `stable`: Contains packages for stable releases of the Netdata Agent.
Expand All @@ -78,21 +75,34 @@ Within each top level group of repositories, there are directories for each supp
Under each of these directories is a directory for each supported release, corresponding to the release codename.

These repositories are set up as what Debian calls ‘flat repositories’, and are available via both HTTP and HTTPS.
Additionally, our repositories support acquiring repository metadata by-hash, which leads to use of URLs similar to
`http://repository.netdata.cloud/repos/edge/ubuntu/focal/by-hash/SHA256/91ccff6523a3c4483ebb539ff2b4adcd3b6b5d0c0c2c9573c5a6947a127819bc`,
and this is the preferred method for updating metadata as it is more reliable.

As a result of this structure, the required APT sources.list entry for stable packages for Debian 11 (Bullseye) is:

```text
deb by-hash=yes http://repository.netdata.cloud/repos/stable/debian/ bullseye/
```

As a result of this structure, the required APT sources entry for stable packages for Debian 11 (Bullseye) is:
And the equivalent required deb822 style entry for stable packages for Debian 11 (Bullseye) is:

```text
deb http://repo.netdata.cloud/repos/stable/debian/ bullseye/
Types: deb
URIs: http://repository.netdata.cloud/repos/stable/debian/
Suites: bullseye/
By-Hash: Yes
Enabled: Yes
```

Note the `/` at the end of the codename, this is required for the repository to be processed correctly.

Our DEB packages and repository metadata are signed using a GPG key with a user name of ‘Netdatabot’. The
current key fingerprint is `6588FDD7B14721FE7C3115E6F9177B5265F56346`. The associated public key can be fetched from
`https://repo.netdata.cloud/netdatabot.gpg.key`.
`https://repository.netdata.cloud/netdatabot.gpg.key`.

If you are explicitly configuring a system to use our repositories, the recommended setup is to download the
appropriate repository configuration package from <https://repo.netdata.cloud/repos/repoconfig> and install it
appropriate repository configuration package from <https://repository.netdata.cloud/repos/repoconfig> and install it
directly on the target system using the system package manager. This will ensure any packages needed to use the
repository are also installed, and will help enable a seamless transition if we ever need to change our infrastructure.

Expand All @@ -104,31 +114,27 @@ Local mirrors of our official repositories can be created in one of two ways:
APT repositories, or reposync for RPM repositories. For this approach, please consult the documentation for
the specific tool you are using for info on how to mirror the repositories.
2. Using a regular website mirroring tool, such as GNU wget’s `--mirror` option. For this approach, simply point
your mirroring tool at `https://repo.netdata.cloud/repos/`, and everything should just work.
your mirroring tool at `https://repository.netdata.cloud/repos/`, and everything should just work.

We do not provide official support for mirroring our repositories,
but we do have some tips for anyone looking to do so:
We do not provide official support for mirroring our repositories, but we do have some tips for anyone looking to do so:

- Our `robots.txt` file explicitly disallows indexing, so if you’re using a regular website mirroring tool,
you wil need to tell it to ignore `robots.txt` (for example, if using GNU wget, add `-e robots=off` to the
options you pass) to ensure that it actually retrieves everything.
- Excluding special cases of caching proxies (such as apt-cacher-ng), our repository configuration packages _DO NOT_
work with custom local mirrors. Thus, you will need to manually configure your systems to use your local mirror.
- Packages are published as they are built, with 64-bit x86 packages being built first, followed by 32-bit x86,
and then non-x86 packages in alphabetical order of the CPU architecture. Because of the number of different
packages being built, this means that packages for a given nightly build or stable release are typically published
over the course of a few hours, usually starting about 15-20 minutes after the build or release is started.
- Repository metadata is updated every hour on the hour, and the process may take anywhere from a few seconds to
more than 20 minutes. Because of this, it makes little sense to sync your mirror more frequently than once an hour,
and it’s generally preferred to start syncing at least 30 minutes into the hour.
- Repository metadata may be updated as frequently as six times an hour, depending on whether or not there are
new packages for a given repository. However, it is generally not worth it to attempt to
synchronize a mirror of our repositories more frequently than once an hour.
- A full mirror of all of our repositories currently requires up to 100 GB of storage space, though the exact
amount of space needed fluctuates over time. Because of this, users seeking to mirror our repositories are
encouraged to mirror only those repositories they actually need instead of mirroring everything.
- If syncing daily (or less frequently), some time between 05:00 and 08:00 UTC each day is usually the safest
time to do so, as publishing nightly packages will almost always be done by this point, and publishing of stable
releases typically happens after that time window.
- If you intend to use our existing GPG signatures on the repository metadata and packages, you probably also want
a local copy of our public GPG key, which can be fetched from `https://repo.netdata.cloud/netdatabot.gpg.key`.
a local copy of our public GPG key, which can be fetched from `https://repository.netdata.cloud/netdatabot.gpg.key`.

## Public mirrors of the official Netdata repositories

Expand Down
Loading