0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-14 17:48:37 +00:00
Commit graph

148 commits

Author SHA1 Message Date
Austin S. Hemmelgarn
609e2c4acc
Update to use versioned base images for CI. ()
* Update to use versioned base images for CI.

* Fix typos.
2023-09-27 07:05:45 -04:00
Austin S. Hemmelgarn
6efd6b7fe1
Assorted Dockerfile cleanup. ()
- Drop old, pointless comments.
- Reorganize so that invariant layers are first, making build caching
  more efficient.
2023-09-05 13:24:18 +03:00
Ilya Mashchenko
2c46b3a631
packaging cleanup after () 2023-08-21 17:27:40 +03:00
Costa Tsaousis
b090c9f80b
Fix static build SSL () 2023-08-21 11:19:32 +03:00
Ilya Mashchenko
4040a16ba2
fix packaging: link health.log to stdout () 2023-08-15 20:45:15 +03:00
BAKEZQ
f04d9f5585
fix docker-compose example ()
the container needs config write permission
2023-08-10 13:16:28 +01:00
Leny
7773b5ee33
fix: 🐛 docker bind-mount stock files creation () 2023-08-02 00:16:08 +03:00
Tasos Katsoulas
2d4e91ab50
Build optimizations ()
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
2023-07-18 15:05:49 +03:00
Ilya Mashchenko
7fba677e78
docs: make the default Docker installation provide the full feature set ()
Co-authored-by: Fotis Voutsas <fotis@netdata.cloud>
2023-07-11 16:12:17 +03:00
Costa Tsaousis
c74bf56ee2
Code reorg and cleanup - enrichment of /api/v2 ()
* claim script now accepts the same params as the kickstart

* rewrote buildinfo to unify all methods

* added cloud unavailable in cloud status

* added all exporters

* renamed httpd to h2o

* rename ENABLE_COMPRESSION to ENABLE_LZ4

* rename global variable

* rename ENABLE_HTTPS to ENABLE_OPENSSL

* fix coverity-scan for openssl

* add lz4 to coverity-scan

* added all plugins and most of the features

* added all plugins and most of the features

* generalize bitmap code so that we can have any size of bitmaps

* cleanup

* fix compilation without protobuf

* fix compilation with others allocators

* fix bitmap

* comprehensive bitmaps unit test

* bitmap as macros

* added developer mode

* added system info to build info

* cloud available/unavailable

* added /api/v2/info

* added units and ni to transitions

* when showing instances and transitions, show only the instances that have transitions

* cleanup

* add missing quotes

* add anchor to transitions

* added more to build info

* calculate retention per tier and expose it to /api/v2/info

* added currently collected metrics

* do not show space and retention when no numbers are available

* fix impossible overflow

* Add function for transitions and execute callback

* In case of error, reset and try next dictionary entry

* Fix error message

* simpler logic to maintain retention per tier

* /api/v2/alert_transitions

* Handle case of recipient null
Convert after and before to usec

* Add classification, type and component

* working /api/v2/alert_transitions

* Fix query to properly handle context and alert name

* cleanup

* Add search with transition

* accept transition in /api/v2/alert_transitions

* totaly dynamic facets

* fixed debug info

* restructured facets

* cleanup; removal of options=transitions

* updated alert entries flags

* method to exec

* Return also exec run timestamp
Temp table cleanup only when we don't execute with a transition

* cleanup obsolete anchor parameter

* Add sql_get_alert_configuration function

* added options=config to alert_transitions

* added /api/v2/alert_config

* preliminary work for /api/v2/claim

* initialize variables; do not expose expected retention if no disk space info is available; do not report aclk as initializing when not claimed

* fix claim session key filename

* put a newline into the session key file

* more progress on claiming

* final /api/v2/claim endpoint

* after claiming, refresh our state at the output

* Fix query to fetch config

* Remove debug log

* add configuration objects

* add configuration objects - fixed

* respect the NETDATA_DISABLE_CLOUD env variable

* NETDATA_DISABLE_CLOUD env variable sets the default, but the config sets the final value

* use a new claimed_id on every claiming

* regenerate random key on claiming and wait for online status

* ignore write() return value when writing a newline

* dont show cloud status disabled when claimed_id is missing

* added ctx to alert instances

* cleanup config and transitions from /api/v2/alerts

* fix unused variable

* in /api/v2/alert_config show 1 config without an array

* show alert values conditionally, by appending options=values

* When storing host info if the key value is empty, store unknown

* added options=summary to control when the alerts summary is shown

* increased http_api_v2 to version 5

* claming random key file is now not world readable

* added local-listeners binary that detects all the listening ports, their IPs and their command lines

---------

Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
2023-07-06 01:49:32 +03:00
Fotis Voutsas
82339fb66d
Fix wording issue in Docker README () 2023-07-05 11:15:26 +03:00
Ilya Mashchenko
99424bf8db
set setuid for go.d.plugin in container () 2023-06-13 13:52:17 +03:00
thiagoftsm
588096c6b6
Debugfs collector ()
Co-authored-by: Fotis Voutsas <fotis@netdata.cloud>
Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
Co-authored-by: ilyam8 <ilya@netdata.cloud>
2023-05-15 19:06:26 +03:00
Devin Norgarb
6ac9a26ba4
Fix TYPO in README.md () 2023-04-27 15:18:37 +03:00
Fotis Voutsas
fadd2d81a9
Replace "XYZ view" with "XYZ tab" in documentation files ()
* replace 'XYZ view' with 'XYZ tab' in documentation files

* Update README.md
2023-04-20 09:04:08 -07:00
Héctor Molinero Fernández
2e168e9a74
Document CetusGuard as a Docker socket proxy solution ()
* Document CetusGuard as a Docker socket proxy solution

* Re-add Docker Socket Proxy to docs
2023-04-18 08:39:22 -07:00
Austin S. Hemmelgarn
1afd93cb64
Fix intermittent permissions issues in some Docker builds. ()
* Fix intermittent permissions issues in some Docker builds.

* Fix issue with PPC64le builds.
2023-03-07 08:47:55 -05:00
Dim-P
1d2458a5f5
[docs]: Revert that documents how to set nofile limit for Netdata containers ()
Revert 
2023-03-01 06:24:23 -08:00
Chris Akritidis
5d9acff2a8
Update README.md () 2023-02-21 05:41:46 -08:00
Chris Akritidis
53c92bab3d
Reorg learn ()
reorg learn
2023-02-21 05:38:11 -08:00
Austin S. Hemmelgarn
61fea7837f
Support installing extra packages in Docker images at runtime. ()
* Support installing extra packages in Docker images at runtime.

This enables users to pull in additional packages more easily if they
need to. It also allows us to drop optional runtime dependencies from
our base images without making life significantly more difficult for
users who actually need them.

* Reorganize code and fix issues brought up in review.

* Make new variable empty by default instead.
2023-02-21 07:12:32 -05:00
Ilya Mashchenko
91b3c4296f
fix setting go.d.plugin capabilities () 2023-02-16 17:14:56 +02:00
Chris Akritidis
f9acc1aead
More learn reorg/reordering ()
* Move installation before concepts

* Reorder installation links

* Remove single node monitoring

* Reorg libnetdata content
2023-02-10 11:21:10 -08:00
Fotis Voutsas
d7056b4b4f
update the "Install Netdata with Docker" doc ()
* update packaging/docker/README.md

* rebase and make the file GitHub friendly

* suggestions from review
2023-02-08 05:12:24 -08:00
Tasos Katsoulas
9f1403de7d
Covert our documentation links to GH absolute links ()
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
2023-02-02 15:23:54 +02:00
Austin S. Hemmelgarn
3dec478c80
Publish Docker images to GHCR.io and Quay.io ()
* Also publish official images to GHCR.

This provides an alternative source for users to get our Docker images.

* Add basic static labels to our Docker images.

These provide slightly better behavior on GHCR, as well as providing
useful metadata for users.

* Also publish to Quay.io.

* Fix typo.

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

---------

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2023-01-31 08:18:22 -05:00
thiagoftsm
3e3ff4bee8
Add Collector log () 2023-01-25 19:04:07 +00:00
Austin S. Hemmelgarn
597f08dee6
Assorted infrastructure cleanup. ()
* Remove old documentation check related config files.

These are no longer used by any of our CI as far as I can tell.

* Purge LGTM configuration and references.

It has been fully shut down, so none of this works anymore.

* Purge Travis CI config, scripts, and references.

We are no longer using Travis CI, so all of this is useless.

* Pureg config for other CI tools we are no longer using.

* Remove old packaging related test scripts.

These haven’t been used in years, and are potentially confusing for new
contributors.

* Restore MLC configuration.

It is, in fact, still in use.

* Fix bogus CI config in dist files.

* Fix botched merge in CODEOWNERS.
2023-01-25 11:10:37 -05:00
Fotis Voutsas
0541c97e53
Introduce the new Structure of the documentation ()
* Moving the cloud docs under /docs/cloud (previous location: netdata/learn/*)
* Added metadata on almost every document of the old learn site for the new ingest process of learn. 
* Map old learn document to their best fit as topic related docs.

Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
Co-authored-by: DShreve2 <david@netdata.cloud>
Co-authored-by: hugovalente-pm <hugo@netdata.cloud>
2023-01-25 15:29:33 +02:00
Ilya Mashchenko
6fc5c4f51d
fix docker builds ()
docker rm wheel
2023-01-05 13:44:45 +02:00
Ilya Mashchenko
2ff572a1ad
docs: explicitly set the nofile limit for Netdata container and document the reason for this () 2022-12-22 22:43:30 +02:00
Ilya Mashchenko
4322b1973d
remove deprecated fping.plugin in accordance with v1.37.0 deprecation notice () 2022-12-09 17:35:53 +02:00
Ilya Mashchenko
d0dad4459e
fix docker host editable config ()
Fixes https://github.com/netdata/netdata/issues/14103
2022-12-08 11:15:31 +02:00
Austin S. Hemmelgarn
56e22c16e8
Cleanly reimplement system/edit-config.in. ()
* Cleanly reimplement system/edit-config.in

- Added support for pulling config files from Docker containers.
- Added auto-detection for Docker containers.
- Use directory the script is in for target directory for config files
  instead of templating it in at build time.
- Prefix error messages with `ERROR:`.
- Robustly check for a valid editor _before_ invoking it.
- Add support for actual command-line options, including a proper
  `--help` option.
- Use prefix matching of absolute paths to determine file validity
  instead of blindly excluding certain path types.
- If editing a non-existing file we do not provide a stock copy of,
  create an empty file instead of throwing an error.
- Make the whole script properly modular.

* Improve robustness of container autodetection.

Instead of relying on the lack of certain directories on a host system,
use some relatively standard checks to determine if we appear to be
running in a container.

* Auto-detect stock config paths at runtinme instead of hard-coding them at build time.

THis will simplify testing of the script, as well as making it a bit
more resilient to users moving things around.

* Add an option to list known config files.

* Fix container environment check to not require root.

* Fix help output.

* Fix path prefix check.

* Fix file path handling.

* Use correct variable when editing files.

* Use correct path for `env`.

* Source profile before running `set -e`.

To prevent questionablly written profiles from causing the script to
exit.

* Produce columnar output when listing valid files.

* Fix copy check.

* Fix build issues.

* fix build issues

* formatting

Co-authored-by: ilyam8 <ilya@netdata.cloud>
2022-12-06 10:53:30 -05:00
Ilya Mashchenko
6f2f84936b
docs: add a note to set container nofile ulimit for Fedora users ()
Fixes https://github.com/netdata/netdata/issues/14062
2022-12-06 17:33:08 +02:00
Austin S. Hemmelgarn
0e2033c743
Add info for Docker containers about using hostname from host. ()
* Add info for Docker containers about using hostname from host.

By directly mounting `/etc/hostname` into the container read-only.

* Update packaging/docker/README.md

Co-authored-by: DShreve2 <david@netdata.cloud>

* Update packaging/docker/README.md

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

Co-authored-by: DShreve2 <david@netdata.cloud>
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2022-09-30 09:17:10 -04:00
Ilya Mashchenko
394574c9a2
docs: add a note about edit-config for docker installs () 2022-08-04 20:00:36 +03:00
Ilya Mashchenko
e2be6f942a
docs: add a note about network interface monitoring when running in a Docker container () 2022-07-29 23:16:16 +03:00
Timotej S
014c9f3259
include Judy into our source tree () 2022-07-22 16:55:06 +02:00
Austin S. Hemmelgarn
70f19efb7d
Add additional Docker image build with debug info included. ()
* Add additional Docker image build with debug info included.

* Assorted fixes.

* Update packaging/docker/gen-cflags.sh

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2022-07-13 07:17:37 -04:00
Ilya Mashchenko
8c272e919f
fix(packaging): respect CFLAGS arg when building Docker image () 2022-07-09 18:58:57 +03:00
Austin S. Hemmelgarn
cba0dca1f6
Add -pipe to CFLAGS in most cases for builds. ()
* Add `-pipe` to CFLAGS in most cases for builds.

This trades marginally higher memory usage at build time (on the order
of a few hundred kB in the worst case scenario) for improved build
times by avoiding using temporary files for passing data from the
compiler to commands it invokes.

* Suppress bogus shellcheck warnings.

* Fix handling of CFLAGS in netdata-installer.sh.
2022-05-02 08:54:50 -04:00
Ilya Mashchenko
9d13da121c
fix: use NETDATA_LISTENER_PORT in docker healtcheck () 2022-04-19 11:30:43 +03:00
Austin S. Hemmelgarn
3f97fe0355
Disable automake dependency tracking in our various one-time builds. ()
* Disable automake dependency tracking in our various one-time builds.

* Also disable dependency tracking code in package builds.
2022-04-18 14:21:02 -04:00
Austin S. Hemmelgarn
0fb2107275
Add spport for passing extraclaiming options when claiming with Docker. () 2022-03-30 07:22:36 -04:00
Austin S. Hemmelgarn
3b586dc08c
Provide better handling of config files in Docker containers. ()
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2022-03-24 11:14:34 +02:00
Ilya Mashchenko
c05d44f59e
chore: remove "web files" options leftovers () 2022-03-15 14:59:16 +02:00
Ilya Mashchenko
4267a14c4d
fix: shellcheck warnings in docker run.sh () 2022-03-14 15:03:07 +02:00
Austin S. Hemmelgarn
7b77f7c56a
Add warning about broken Docker hosts in container entrypoint. ()
* Add warning about broken Docker hosts in container entrypoint.

Also adds a case to catch users trying to run the entrypoint as a a user
in the container other than root, which we very much do not support.

* Fix messages and remove invalid error case.

* Link to docs in message instead of giving full explanation.
2022-03-09 08:56:28 -05:00
Tina Luedtke
c7f2647a62
Docs: Removed Google Analytics tags () 2022-02-17 10:37:46 +00:00