Commit Graph

2721 Commits

Author SHA1 Message Date
vkalintiris 5973417027
Use CPack to generate Debian packages (#17475)
* CPack

* Add script to build all artifacts.

* Add infrastructure to run package builds via CPack in CI.

* Fix typos in distro config.

* Fix permissions on package-build script.

* Control files for netdata package

* pre/post inst files for debugfs.

* Fix directory name handling for package build.

* pre/post inst scripts for cups

* pre/post inst scripts for xenstat

* pre/post inst scripts for slabinfo

* pre/post inst scripts for apps

* pre/post inst scripts for network-viewer

* pre/post inst script for nfacct

* pre/post inst scripts for freeipmi

* pre/post inst scripts for logs-management

* pre/post inst perf

* pre/post inst scripts for systemd-journal

* pre/post init scripts for go.d

* pre/post inst scripts for ebpf

* pre/post init files for charts.d & python.d

* Skip eBPF in packaging.

* Fix most of the package names

* Add copyright

* etc/default/netdata

* Bump

* Enable all packages except for ebpf.

* Add log2journal to netdata component.

* Produce pretty-much the same RFS.

- No README.md docs
- /var/run/netdat missing on CPack's side
- No ebpf
- No changelogs

* Enable ebpf plugin

* Fix runtime path

* Build debug symbol packages

* Update package directory

* Fix eBPF and Xenstat conditionals.

* Fixes for package build process.

* Package version for cpack

* Add ebpf-code-legacy package

* Update extraction logic

* Fix control info for netdata package

* Fix control file for chartsd plugin package

* Fix typos in package build script.

* Update dependencies

* Add python3

* Fix verbose option to cpack

* Add whitespace in package description field.

* SKip adding files that might break rpm packages

* Final fixups to package handling.

* Fix architecture matching for package build options.

* Fix dependency handling.

* Remove top-level scripts

---------

Co-authored-by: Austin S. Hemmelgarn <austin@netdata.cloud>
2024-04-30 07:45:23 -04:00
netdatabot dcb5186176 [ci skip] Update changelog and version for nightly build: v1.45.0-303-nightly. 2024-04-30 00:16:05 +00:00
netdatabot 353c34da0b [ci skip] Update changelog and version for nightly build: v1.45.0-299-nightly. 2024-04-27 00:16:35 +00:00
Austin S. Hemmelgarn 1f07deaff3
Don’t unnescesarily clean repo during static builds. (#17530)
Don’t clean repo during static builds.

We’re using a separate build directory in all cases, so there is no
longer any need to try to clean the repository before a static build.
This enables running static builds in linked git worktrees.
2024-04-26 14:58:07 +03:00
netdatabot 700efa5419 [ci skip] Update changelog and version for nightly build: v1.45.0-296-nightly. 2024-04-26 08:02:15 +00:00
Ilya Mashchenko e739a3cf0e
fix _ndpath in detect_existing_install() (#17527) 2024-04-26 10:45:10 +03:00
netdatabot 794b453e0c [ci skip] Update changelog and version for nightly build: v1.45.0-292-nightly. 2024-04-26 00:16:30 +00:00
Austin S. Hemmelgarn 9b3b4816c1
Move handling of legacy eBPF programs into CMake. (#17512)
* Move handling of legacy eBPF programs into CMake.

* Fix typos.

* Fix more typos

* Fix up packaging code.
2024-04-25 09:21:03 +03:00
netdatabot 0388cb719e [ci skip] Update changelog and version for nightly build: v1.45.0-286-nightly. 2024-04-25 00:16:14 +00:00
Austin S. Hemmelgarn e63cc315b5
Fix handling of kernel version detection in CMake. (#17514) 2024-04-24 14:31:00 +03:00
Austin S. Hemmelgarn aa6d30384d
Move libbpf and eBPF CO-RE bundling into CMake. (#17484)
* Move libbpf and eBPF CO-RE bundling into CMake.

* Silence CMP0135 warnings.

* Fix handling of legacy eBPF code.

* Only enable eBPF by default on Linux.

* Correctly auto-detect the need for legacy libbpf.

* Fix include paths for libbpf linking.

* Add coreutils dependency on Alpine.

* Fix ebpf code handling.

* Fix lib path handling for libbpf.a.

* Correctly fix libbpf lib directory handling.

* Use correct comparison type.
2024-04-24 09:17:23 +03:00
netdatabot 7a59792902 [ci skip] Update changelog and version for nightly build: v1.45.0-276-nightly. 2024-04-24 00:16:39 +00:00
Austin S. Hemmelgarn 9184c37c92
Fix usage of sha256sum in static builds. (#17495) 2024-04-23 14:05:47 +03:00
Fotis Voutsas ea4bf6d407
move netdata charts documentation to proper folder (#17488)
* fix

* links
2024-04-23 07:43:09 +00:00
Austin S. Hemmelgarn 39ea36980f
Fix maintainer documentation to reflect the new build system. (#17441) 2024-04-23 10:32:43 +03:00
netdatabot 3b1e545a72 [ci skip] Update changelog and version for nightly build: v1.45.0-258-nightly. 2024-04-23 00:17:16 +00:00
thiagoftsm 238214a917
Update Libbpf to 1.4 (#17470) 2024-04-22 11:25:50 +00:00
Ilya Mashchenko ced9ed9266
bump go toolchain to v1.22.0 in check-for-go-toolchain.sh (#17474) 2024-04-22 10:47:05 +00:00
netdatabot bdbf369d6f [ci skip] Update changelog and version for nightly build: v1.45.0-241-nightly. 2024-04-22 00:17:10 +00:00
netdatabot 7fdef9d8bb [ci skip] Update changelog and version for nightly build: v1.45.0-236-nightly. 2024-04-21 00:17:08 +00:00
netdatabot 3d65360e69 [ci skip] Update changelog and version for nightly build: v1.45.0-233-nightly. 2024-04-20 00:15:58 +00:00
netdatabot 7c93166cb3 [ci skip] Update changelog and version for nightly build: v1.45.0-221-nightly. 2024-04-19 00:16:16 +00:00
netdatabot 4250aef4ba [ci skip] Update changelog and version for nightly build: v1.45.0-214-nightly. 2024-04-18 00:16:23 +00:00
netdatabot 60e0831a6d [ci skip] Update changelog and version for nightly build: v1.45.0-200-nightly. 2024-04-17 00:16:26 +00:00
Austin S. Hemmelgarn 42595b3f26
Add fallback logic in installer for fetching files. (#17045)
Still try to use `curl` first if it exists, but if it fails, fall back
to attempting with wget instead.
2024-04-16 07:32:14 -04:00
netdatabot 98a851fb8d [ci skip] Update changelog and version for nightly build: v1.45.0-190-nightly. 2024-04-16 00:15:42 +00:00
netdatabot c7169629e4 [ci skip] Update changelog and version for nightly build: v1.45.0-186-nightly. 2024-04-14 00:20:21 +00:00
netdatabot c5ea422c6f [ci skip] Update changelog and version for nightly build: v1.45.0-177-nightly. 2024-04-13 00:15:30 +00:00
netdatabot 623ee3a995 [ci skip] Update changelog and version for nightly build: v1.45.0-169-nightly. 2024-04-12 00:16:39 +00:00
Paul Szymanski d1a5035578
Add repo config for Amazon Linux 2023. (#17330)
* Add repo config for Amazon Linux 2023.

dnf and yum resolve $releasever to a verbose release version (e.g. 2023.4.20240401).
However, there is no need to create repositories for every version Amazon comes up with.

Resolves https://github.com/netdata/netdata/issues/17324

* Have a more specific conditional file install (amzn2)

* Bump repo spec release for Amazon Linux changes.
2024-04-11 09:00:10 -04:00
Austin S. Hemmelgarn eb8c28fc30
Add Ubuntu 24.04 to CI, package builds, and support policy. (#17281) 2024-04-11 08:43:47 -04:00
netdatabot 95bf3c9d8d [ci skip] Update changelog and version for nightly build: v1.45.0-152-nightly. 2024-04-11 00:16:46 +00:00
Austin S. Hemmelgarn 5ab0754713
Fix typo in kickstart script. 2024-04-10 14:51:12 -04:00
Austin S. Hemmelgarn 532671b243
Canonicalize paths before comparison when checking for multiple installs. (#17373)
For some arcane reason, many distros that have chose a merged `/usr`
layout (https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/)
insist on still putting both `/bin` and `/usr/bin` (and `/sbin` and
`/usr/sbin`) in their default `$PATH`, despite the fact that this
provides no real benefit (it’s questionable even for ‘backwards
compatibility’, anything that truly _needs_ this on a system with a
merged `/usr` layout is fundamentally broken).

To correctly handle the fact that it’s not only possible but actually
extremely likely that Netdata will show up in more than one place in
`$PATH` even if it’s a single install, we need to canonicalize the paths
before comparing them when checking for multiple installs.

Unfortunately, despite path canonicalization being an extremely common
need, there is no POSIX utility for doing it with arbitrary paths,
so we have to resort to some trickery to achieve this portably. The
exact implementation used by this change is somewhat naive and only
works if the directory the target path indicates actually exists, but we
can count on this being the case in this particular usage because we
know that we found a file within that directory.
2024-04-10 14:03:28 -04:00
Austin S. Hemmelgarn 2293a52b7e
Fix logic in detection of multiple installs. (#17369)
- Only flag multiple installs if subsequent searches produce a different
  install path.
- Only set the detected install path if a search actually finds an
  install path.
- Bail early if the initial search finds nothing.
2024-04-10 13:08:10 -04:00
Austin S. Hemmelgarn e834982560
Move vendoring of Sentry to it’s own module and switch to using Git instead of the releases page. (#17358)
* Move vendoring of Sentry to it’s own module.

Also, switch to pulling from the git repo instead of the release URL, as
it’s more reliable, less prone to potential tampering, and also more
consistent with all of our other vendoring.

* Actually remove the Sentry vendoring code that was in the main file.
2024-04-10 11:03:49 -04:00
Austin S. Hemmelgarn 7b0a46b71c
kickstart: Add detection of multiple concurrent installs. (#16555)
* Add detection of multiple concurrent installs.

And refuse to operate on such setups in most cases.

* Fix exit cases for existing install detection loop.
2024-04-10 09:59:04 -04:00
Austin S. Hemmelgarn 5ce422daf0
Skip Go code in CI if it hasn’t changed. (#17077)
* Skip building Go components for Docker CI if they have not changed.

* Properly handle Go code in general checks PR.

* Skip Go code in build checks if it hasn’t changed.

* Fix linting issues.

* Fix propagation of installer flags.

* Fix propagation of environment variables through static build process.

* Fix handling of extra install options in static builds.

* Skip starting the agent in updater checks.

* Fix actionlint warning.
2024-04-10 09:38:44 -04:00
Austin S. Hemmelgarn 0f5b137471
Move bundling of JSON-C to CMake. (#17207)
* Move bundling of JSON-C to CMake.

* Fix JSON-C build option passing.

* Force CMake policy 77 to new behavior for JSON-C build.

This is required to ensure that options we set are propagated correctly
into the sub-project.

* Fix include path selection and handling for bundled JSON-C.

* Fix include ordering again.

* Fixup JSON header compat link handling.
2024-04-10 08:30:17 -04:00
Ilya Mashchenko c41702d9da
uninstaller: remove LaunchDaemons plist file (macOS) (#17357) 2024-04-10 09:30:17 +03:00
netdatabot 3cf286e4e0 [ci skip] Update changelog and version for nightly build: v1.45.0-132-nightly. 2024-04-10 00:15:47 +00:00
netdatabot 5a9f16f9da [ci skip] Update changelog and version for nightly build: v1.45.0-123-nightly. 2024-04-09 00:16:58 +00:00
Ilya Mashchenko 94b6973d6e
fix invalid var in prepare_offline_install_source() (#17342) 2024-04-08 18:31:14 +03:00
netdatabot 97ac528e31 [ci skip] Update changelog and version for nightly build: v1.45.0-113-nightly. 2024-04-06 00:15:38 +00:00
Fotis Voutsas 128f112c73
remove old overview infrastructure and add home tab doc (#17323)
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Co-authored-by: Hugo Valente <82235632+hugovalente-pm@users.noreply.github.com>
2024-04-05 15:04:44 +03:00
netdatabot 1e759e7ea8 [ci skip] Update changelog and version for nightly build: v1.45.0-109-nightly. 2024-04-05 00:16:29 +00:00
netdatabot e85be29fcd [ci skip] Update changelog and version for nightly build: v1.45.0-106-nightly. 2024-04-04 00:16:44 +00:00
netdatabot 1549626cac [ci skip] Update changelog and version for nightly build: v1.45.0-103-nightly. 2024-04-03 00:16:31 +00:00
netdatabot 19a3dfe430 [ci skip] Update changelog and version for nightly build: v1.45.0-100-nightly. 2024-04-02 00:16:20 +00:00
thiagoftsm 22705e27c5
Fix SWAP pages (#17295) 2024-04-01 21:18:35 +00:00