1
0
mirror of https://github.com/netdata/netdata.git synced 2021-06-06 23:03:21 +03:00

18 Commits

Author SHA1 Message Date
Josh Soref
24ce83460a Spelling build (#10909) 2021-04-14 12:24:45 +03:00
Timotej S
e7e5d0c372 Adds ACLK-NG as fallback(#10315)
* adds a new implementation of ACLK written almost from scratch
* external dependencies only OpenSSL and JSON-C
* fallback for systems where ACLK Legacy can't build (for technical or philosophical reasons)
* can be forced to build by giving "--aclk-ng" to the installer
2021-03-16 12:38:16 +01:00
Austin S. Hemmelgarn
59a2aec9c8 Added support for using /etc/cron.d for auto-updates. (#9598)
* Add crontab fragment for netdata updater.

This adds a crontab fragment to be put in `/etc/cron.d` on system swhich
do not support either `/etc/cron.daily` or `/etc/periodic/daily`,
allowing for proper auto-updater support on such systems.

The crontab will run upates at 02:57, which was chosen arbitrarily
because it does not conflict with th erun times for any major
distribution's daily scheduled tasks.

* Utilize the crontab fragment for updates on systems that need it.

This adds logic to utilize the crontab fragment added by the previous
commit on systems which need it for auto-updates to work. The installer
will preferentially use `/etc/cron.daily` or `/etc/periodic/daily`
instead if they exist, so this should result in no changes for most
users.

* Remove systemd scheduler detection.

We're not actually using it right now, and it breaks handling of
auto-updates on systemd systems.
2020-09-15 07:40:05 -04:00
Andrew Moss
aa3ec552c8 Enable support for Netdata Cloud.
This PR merges the feature-branch to make the cloud live. It contains the following work:
Co-authored-by: Andrew Moss <1043609+amoss@users.noreply.github.com(opens in new tab)>
Co-authored-by: Jacek Kolasa <jacek.kolasa@gmail.com(opens in new tab)>
Co-authored-by: Austin S. Hemmelgarn <austin@netdata.cloud(opens in new tab)>
Co-authored-by: James Mills <prologic@shortcircuit.net.au(opens in new tab)>
Co-authored-by: Markos Fountoulakis <44345837+mfundul@users.noreply.github.com(opens in new tab)>
Co-authored-by: Timotej S <6674623+underhood@users.noreply.github.com(opens in new tab)>
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com(opens in new tab)>
* dashboard with new navbars, v1.0-alpha.9: PR #8478
* dashboard v1.0.11: netdata/dashboard#76
Co-authored-by: Jacek Kolasa <jacek.kolasa@gmail.com(opens in new tab)>
* Added installer code to bundle JSON-c if it's not present. PR #8836
Co-authored-by: James Mills <prologic@shortcircuit.net.au(opens in new tab)>
* Fix claiming config PR #8843
* Adds JSON-c as hard dep. for ACLK PR #8838
* Fix SSL renegotiation errors in old versions of openssl. PR #8840. Also - we have a transient problem with opensuse CI so this PR disables them with a commit from @prologic.
Co-authored-by: James Mills <prologic@shortcircuit.net.au(opens in new tab)>
* Fix claiming error handling PR #8850
* Added CI to verify JSON-C bundling code in installer PR #8853
* Make cloud-enabled flag in web/api/v1/info be independent of ACLK build success PR #8866
* Reduce ACLK_STABLE_TIMEOUT from 10 to 3 seconds PR #8871
* remove old-cloud related UI from old dashboard (accessible now via /old suffix) PR #8858
* dashboard v1.0.13 PR #8870
* dashboard v1.0.14 PR #8904
* Provide feedback on proxy setting changes PR #8895
* Change the name of the connect message to update during an ongoing session PR #8927
* Fetch active alarms from alarm_log PR #8944
2020-05-11 16:37:27 +10:00
Austin S. Hemmelgarn
cf948d42c2 Switched to the new React dashboard code as the default dashboard. (#8363)
* Initial installer components for new dashboard.

* Add script to switch between react and classic dashboards.

* Update to newest version of react dashboard.

* Properly substitute webdir.

* Fix installation of dashboard switch script.

* Properly handle file ownership and permissions.

* Fix install of react dashboard.

* Add dashboard_info.js to the react dashboard tree.

* Update to version 0.3.2 of the React dashboard.

* Switch using file lists instead of nuking old directory.

* Properly handle updates.

* Fix variable naming in switching script.

* Fix copying of files in switching script.

* Fix switching script invocation in installer.

* update dashboard to v0.4.0

* v0.4.1

gauge & easypiechart width update
proper centering when clicking alarm in alarms-log
keep loader until react app is ready
fix top bar not showing when highlighting (few lines of code)
"check known URLs" issue
"reset" options is not hooked up
go to host node from streamed node (low priority, because that's removed on release)

* Persist user selection of dashboard across updates.

* update dashboard to v0.4.2 (temperature, units options fixed)

* v0.4.5
fixed print modal progress text
force reload on sync-selection option change

* fix memory leak on firefox

* fix active-alarms number in main.js header
fix "back to normal" notifications constantly throwing in loop

* fix active-alarms fetching

* support subpaths

Co-authored-by: Jacek Kolasa <jacek.kolasa@gmail.com>
2020-03-31 06:53:48 -04:00
James Mills
e183d7499e Migrate Travis based checks to Github Actions (#8329)
* Migrate Travis based checks to Github Actions

* Remove Gitlab CI config

* Remove ./build/build.sh and use simple shell to do consistency checks on Dashbaord JS

* Install prereq deps

* Rename job

* Fix brain fart momemt

* Split Dashboard checks into a separate job
2020-03-09 21:35:24 +10:00
Vladimir Kobal
f0bc01ddbd Add ioping plugin (#5725)
* Add ioping plugin

* Update the documentation and comments

* Finalize installation of ioping

* Fix find_processors variable

* Fix static build

* Move ioping to libexec directory

* Move ioping to plugins.d directory

* Fix file existence check
2019-04-23 14:20:00 +03:00
Chris Akritidis
08649bec37 Port ACLs, Management API and Health commands (#4969)
##### Summary
fixes #2673 
fixes #2149
fixes #5017 
fixes #3830 
fixes #3187 
fixes #5154

Implements a command API for health which will accept commands via a socket to selectively suppress health checks. 

Allows different ports to accept different request types  (streaming, dashboard, api, registry, netdata.conf, badges, management)

Removes support for multi-threaded and single-threaded web servers.

##### Component Name
health, daemon
2019-01-15 12:49:28 +01:00
Paweł Krupa
7c54409126 remove cross-directory dependency in build system (#5012)
* remove cross-directory dependency in build system

* remove unused pythondir_POST

replace sysconfdir/netdata with configdir
2018-12-18 17:33:06 +01:00
Paweł Krupa
03cd5be53a Cleanup docker packaging and contrib (#4627) 2018-11-29 00:47:14 +02:00
Paweł Krupa
85a55e76d5 move build Dockerfiles to external repo (#4749) 2018-11-26 15:54:22 +02:00
Paweł Krupa
8d90857179 Test integrity of dashboard.js (#4715)
* releaser needs to be on branch and not in deteached state

* dashboard.js integrity test; fix configure.ac

* fix key in travis config

* fix builder image name

* verbose diff

* revert #4707
2018-11-23 00:10:33 +02:00
Paweł Krupa
d536ba6a43 fix spdx (#4327) 2018-09-30 02:36:42 +03:00
Costa Tsaousis
73608f86b4 stock configs in /usr/lib/netdata (#4283)
* makefiles install configs in /usr/lib/netdata/conf.d; #4182

* stock health config in /usr/lib/netdata/conf.d/health.d

* unit test path concatenation

* simplified health file management

* use stream.conf from stock config if it does not exist in /etc/netdata

* indicate loading of user config in function call

* load netdata.conf from stock dir if not found in /etc/netdata

* added NETDATA_USER_CONFIG_DIR

* provide defaults before loading config

* charts.d uses stock files

* fping now uses the stock config files

* tc-qos-helper.sh now uses stock configs

* cgroup-name.sh now uses stock configs too

* simplified cgroup-name.sh for user and stock config

* alarm-notify.sh uses stock configs too

* simplified fping plugin configs loading

* simplified tc-qos-helper.sh configs loading

* added error handling to charts.d.plugin

* apps.plugin used stock configs

* generalized recursive double-directory configs loading

* statsd uses stock configs

* node.d.plugin uses stock configs

* compile-time decision of netdata default paths for all files

* makeself cleans up old stock config files from user configuration directories

* fixed makeself typo

* netdata-installer.sh removes stock files from user configuration directories

* python.d.plugin user/stock configs update

* cleanup stock config files from /etc/netdata, only once

* python.d.plugin log loaded files

* fix permissions of stock config files and provide an "orig" link for quick access

* create help link on stock configs migration for static installations

* create user config directories

* example statsd synthetic charts now state they are examples

* updated configs.signatures

* spec file

* fixes in spec file

* fix typo

* install netdata after cleaning up stock configs from /etc/netdata

* python.d: add cpuidle stock conf
2018-09-27 20:37:52 +03:00
Paweł Krupa
c1b0232265 reproducible build system (#4294)
- Move `m4` dir to `build/m4` to clean TLD
- create `build/build.sh` script which builds netdata in docker container
- create `build/Dockerfile` which creates reproducible build environment
- exclude `.lgtm.yml` from final package
- use `.tar.gz` package in `netdata.spec.in` as `*.xz` and `*.bz2` will be removed due to #3913

What it does is simple, you don't need any libraries installed on host to build netdata as they are provided inside a container.
2018-09-26 12:46:28 +02:00
Costa Tsaousis
fa2b4faf58 python modules installer updated 2016-06-22 12:35:48 +03:00
Justin Lecher
00fe19f2b1 Update Gentoo related files
* Properly replace install destination at buildtime in init script
* Ebuild:
  - Add note about KSM
  - Drop KEYWORDS in live ebuild
  - Strip down calls which equal default
  - Set DESCRIPTION to GH slogan
  - Rename USE zlib to compression
  - Drop additional die
  - Allow to change NETDATA_USER in make.conf
* Clean openrc init script

Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-04-03 14:07:16 +01:00
Alon Bar-Lev
1e40bc2dca build: generate proper systemd service file
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2016-04-02 23:07:47 +03:00