0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-08 15:20:11 +00:00
Commit graph

155 commits

Author SHA1 Message Date
Austin S. Hemmelgarn
f49103aa8a
Added static builds for ARMv7l and ARMv8a ()
* Generic fixes for cross-arch static image builds.

* Fixed handling of ARM static builds.

* Add ARMv7l and ARMv8a static builds.

* Fix static build deps.

* Fix static build checks.

* Bump OpenSSL version and optimize OpenSSL build.

* Optimize bash build.

* Bump cURL version and optimize cURL build.

* Fix static build deps.

* Fix bash build.

* Further build fixes.

* Fix cURL build.

* Fix emulation handling.
2021-10-12 07:58:33 -04:00
Austin S. Hemmelgarn
5ff0032310
Use system copy of protobuf in Docker images and static builds. ()
We know both environments provide a reliably stable copy, and this
greatly improves build imes.
2021-09-09 07:58:58 -04:00
Austin S. Hemmelgarn
214cb3a41e
Embed build architecture in static build archive names. ()
* Embed build architecture in static build archive names.

This is required for proper support for static installs in the new
kickstart script.

The associated changes will also simplify adding static builds for other
architectures in the future.

* Update CI to use new static build changes properly.

* Fix typos.

* Fix link created by static build process.

* Fix build environment setup.
2021-09-06 09:10:05 -04:00
Austin S. Hemmelgarn
295d407fb0
Store info about the installation type for later retrieval. ()
* Store info about the installation type for later retrieval.

* Properly handle install type on updates.

* Restructure install type values for easier parsing.

* Fix checksums.

* Fix .gitignore check.
2021-05-24 07:34:09 -04:00
Andrew Maguire
447eca5970
Replace references to Google Analytics with Posthog where relevant ()
* Swapping out sentence about Google Analytics with a PostHog version of it.

* replace "Google Analytics" with "Netdata"

replace "sent to Google Analytics" with "sent to Netdata". 

Since we are no using a self hosted Netdata PostHog instance i think "sent to Netdata" makes most sense.

* update opt-out paragraph based on posthog

* Replace references to Google Analytics with PostHog

@joelhans @cakrit i'm assuming with might need to have legal input on any changes to this doc so my changes may or may not be acceptable, at a minimum they need a review by someone from legal.

* update google analytics reference with posthog

* replace google analytics with posthog

* replace google analytics with netdata
2021-04-14 21:07:46 +01:00
Austin S. Hemmelgarn
fbc69e7214
Bump version of OpenSSL bundled in static builds to 1.1.1k ()
This includes a number of security fixes relative to the version we are
currently bundling.
2021-04-05 11:28:30 -04:00
Josh Soref
f39406c9b6
Spelling build ()
* spelling: alleviate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: available

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: berkeley

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: cannot

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: centos

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: context

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: continuously

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: correlate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: defaults

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dependencies

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dependency

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: different

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: doesn't

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: example

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: forbidden

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: necessary

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nightly

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: normally

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: notification

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: overridden

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: packet

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: program

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: prompted for

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: proxyadmin

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: red hat

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: relative

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: script

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: scriptlet

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: somewhere

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: spinning

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: substitution

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: success

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: successfully

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: sysadmin

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: tarball

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: telemetry

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: temporary

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: timeout

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unsupported

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: updates

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: useful

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: way

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* Update kickstart script checksums in documentation

Co-authored-by: Vladimir Kobal <vlad@prokk.net>
2021-04-05 08:18:11 -04:00
Josh Soref
f4193c3b5c
Spelling md ()
* spelling: activity

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: adding

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: addresses

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: administrators

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: alarm

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: alignment

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: analyzing

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: apcupsd

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: apply

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: around

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: associated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: automatically

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: availability

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: background

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: bandwidth

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: berkeley

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: between

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: celsius

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: centos

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: certificate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: cockroach

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: collectors

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: concatenation

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: configuration

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: configured

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: continuous

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: correctly

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: corresponding

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: cyberpower

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: daemon

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dashboard

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: database

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: deactivating

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dependencies

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: deployment

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: determine

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: downloading

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: either

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: electric

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: entity

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: entrant

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: enumerating

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: environment

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: equivalent

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: etsy

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: everything

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: examining

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: expectations

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: explicit

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: explicitly

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: finally

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: flexible

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: further

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: hddtemp

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: humidity

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: identify

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: importance

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: incoming

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: individual

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: initiate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: installation

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: integration

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: integrity

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: involuntary

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: issues

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: kernel

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: language

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: libwebsockets

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: lighttpd

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: maintained

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: meaningful

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: memory

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: metrics

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: miscellaneous

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: monitoring

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: monitors

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: monolithic

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: multi

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: multiplier

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: navigation

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: noisy

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: number

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: observing

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: omitted

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: orchestrator

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: overall

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: overridden

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: package

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: packages

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: packet

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: pages

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: parameter

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: parsable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: percentage

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: perfect

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: phpfpm

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: platform

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: preferred

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: prioritize

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: probabilities

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: process

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: processes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: program

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: qos

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: quick

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: raspberry

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: received

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: recvfile

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: red hat

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: relatively

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: reliability

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: repository

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: requested

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: requests

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: retrieved

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: scenarios

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: see all

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: supported

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: supports

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: temporary

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: tsdb

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: tutorial

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: updates

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: utilization

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: value

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: variables

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: visualize

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: voluntary

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: your

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-01-18 07:43:43 -05:00
Austin S. Hemmelgarn
9fe43430f2
Fixed handling of TLS config so that cURL works in all cases. ()
We should not be hard-coding the CA file or messing with cURL options to
handle this, but should instead be relying on the config detected at
setup time for the install to just get it right (as it will in 99% of
cases).
2021-01-13 07:13:36 -05:00
Joel Hans
46a8075c8f
Docs housekeeping for SEO and syntax, part 1 ()
* First pass to get the script working right

* Finish adding analytics tags
2021-01-07 11:44:43 -07:00
Costa Tsaousis
40da71e1eb
Updated 3rd party static build dependencies and use alpine 3.12 ()
* updated 3rd party static dependencies

* updated alpine to 3.12

* updated docker container name and added libuv-static

* add lz4-static to alpine packages
2020-11-18 11:48:42 -05:00
Austin S. Hemmelgarn
78c0127de9
Use our installer's bundling code for libJudy in static installs. () 2020-09-28 07:12:46 -04:00
Austin S. Hemmelgarn
77714ecb5a
Added proper certificate handling to static cURL. () 2020-08-13 07:14:17 -04:00
James Mills
79c56b71c4
Fix Static Netdata to correctly build with Netdata Cloud support. ()
* Revert "Revert "Override linker and include paths for static builds. ()" ()"

This reverts commit 36d5e40dca.

* Run git clean before building anything

* Fix checking out openssl and skip if bind-mounted sources already exist at the given path

* Add --require-cloud flag to the static build scripts

* Add CMAKEFLAGS support to the installer to customize how to build libwebsockets for static builds

* Update packaging/makeself/jobs/50-bash-4.4.18.install.sh

Co-authored-by: Andrew Moss <1043609+amoss@users.noreply.github.com>

* Fix remaining other two tyos

Co-authored-by: Andrew Moss <1043609+amoss@users.noreply.github.com>
2020-08-06 13:09:29 +10:00
Austin S. Hemmelgarn
36d5e40dca
Revert "Override linker and include paths for static builds. ()" ()
This reverts commit f81b19fc24.
2020-06-16 14:48:39 -04:00
Austin S. Hemmelgarn
f81b19fc24
Override linker and include paths for static builds. () 2020-06-12 07:04:44 -04:00
Austin S. Hemmelgarn
7707f9aa3a
Fixed handling of OpenSSL on CentOS/RHEL by bundling a static copy and selecting a configuration directory at install time. ()
* Bundle static OpenSSL in our static builds.

This adds code to bundle a static locally built copy of OpenSSL into our
static builds instead of using the Alpine provided copy. It fixes two
cases where our usage of OpenSSL currently fails:

* On CentOS, RHEL, OEL, Amazon Linux, and their derivatives, the OpenSSL
  configuration directory is `/etc/pki/tls` instead of the normal
  `/etc/ssl`. Any usage of TLS in our static builds currently fails
  there because it can't find that directory.
* TLS usage fails similarly on systems that do not have OpenSSL at all
  for the same reason.

To fix this, the newly bundled copy of OpenSSL is built to use
`/opt/netdata/etc/ssl` as it's configuration directory. This directory
is a symlink created at install time pointing to one of the following
locations (in order of precedence):

* `/etc/pki/tls` (for CentOS, RHEL, OEL, AL, and similar).
* `/etc/ssl` (for sane distros that just use the default path).
* `/opt/netdata/share/ssl` (for systems that don't have OpenSSL, this
  contains a copy of the config and certificates from the build
  environment).

* Ensure other components are built with local OpenSSL.

* Clone directly from the desired tag.
2020-06-05 08:12:12 -04:00
Austin S. Hemmelgarn
5500720168
Really prevent overwriting netdata.conf on static installs. ()
The previous fix was incompletely tested and didn't actually workdue to
using an incorrect variable name. This fixes that.
2020-06-01 07:57:48 -04:00
James Mills
5087294d81
Add support for eBPF for Netdata static64 (kickstart-static64.sh) ()
* Add tool to build the dist and static x864_64 artifacts

* Add tool to bump the Netdata packaging version

* Cleanup all the makeself scripts and update to Alpine 3.11

* Add zgrep and xz to Alpine 3.7 container used to build x86_64 static Netdata so check-kernel-config.sh does not fail

* Explicitly bundle the -static varient of the eBPF kernel-collector library/programs
2020-05-29 12:27:22 +10:00
James Mills
a20e8f163f
Add CI for our Static Netdata builds (which kickstart-static64 uses) ()
* Add tool to build the static x864_64 Netdata

* Add error if the netdata binary is not statically linked

* Add Github Workflow for testing static builds

* Don't use docker run -i -t if not on a tty
2020-05-26 12:19:27 +10:00
Austin S. Hemmelgarn
254183a2e3
Don't overwrite netdata.conf on update on static installs. ()
* Don't overwrite netdata.conf on update on static installs.

The current code overwrites netdata.conf when updating a static install
because we include a copy of the default empty netdata.conf in the
package itself.

This removes that file from the generated package, but does not modify
the install-time logic which attempts to create the file if it does not
already exist (which appears to be working correctly.

* Update packaging/makeself/jobs/70-netdata-git.install.sh

Co-authored-by: James Mills <prologic@shortcircuit.net.au>

Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2020-05-20 08:02:23 +10:00
Joel Hans
9342704a41
Bulk add frontmatter to all documentation ()
* Bulk add frontmatter

* A few extra edge cases
2020-03-10 14:29:51 -07:00
Austin S. Hemmelgarn
d49e6b50ba
Added various fixes and improvements to the installers. ()
* Don't rotate old Netdata config dirs in static installer.

This should have been removed when we stopped shipping stock configs in
`/etc/netdata`.

* Use a single invocation of the package manager to install dependencies.

This slightly improves the efficiency of the code in question, and also
eliminates a few dozen potential cases of prompting the user if they
want to install specific packages.

* Add correct package name for ulogd on arch.

* Properly finish conversion to Python 3 defaults.
2020-03-09 11:15:46 -04:00
Dylan Wang
9d6c9219ba
support prom remote write () 2020-02-06 07:26:06 +10:00
Austin S. Hemmelgarn
6caa93d1da
Fix permissions issues caused by 986bc2052. ()
For some reason, without `sudo` here, we get permissions issues in CI,
so re-add it.
2020-02-05 09:45:30 -05:00
James Mills
fffc2bc125
Fixes static builds and nightlies ()
* Fixed the shebang for building self-extracting static builds

* Fixed shellcheck errors/warnings

* Fix require_cmd() function too and redirect both stderr/stdout of command -v in conditional
2020-02-04 19:28:13 +10:00
James Mills
c47e7aac52
Fixes a bug in DO_NOT_TRACK expression ()
* Fixed bug in DO_NOT_TRACK expression

* Fix kickstart-static64 checksum in docs.

Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
2020-01-31 07:52:22 -05:00
James Mills
38ad89fc2b
Adds support for opting out of telemetry via the DO_NOT_TRACK envirnment variable ()
* Added support for opting out of telemtry via the DO_NOT_TRACK environment variable

* Added support for DO_NOT_TRACK=1 in anonymous-statistics.sh and minor cleanup in Dockerfile and run.sh entrypoint

* Allow DO_NOT_TRACK to be either non-zero or non-empty

* Update md5sum of kickstart-static64.sh in docs

* Fixed a bug in netdata-installer.sh

* Revert changes to daemon/main.c (testing onyl)

* Update docs/anonymous-statistics.md

Co-Authored-By: Mansour Behabadi <57921115+ncmans@users.noreply.github.com>

Co-authored-by: Mansour Behabadi <57921115+ncmans@users.noreply.github.com>
2020-01-30 09:49:23 +10:00
James Mills
a4223457b4
Fixes and improves the installer/updater shell scripts. ()
* Auto-formatted the installer/updater shell scripts

* Fixed shellcheck problems founds for installer/updater shell scripts

* Update netdata-installer.sh

Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>

* Update packaging/installer/kickstart-static64.sh

Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>

* Update packaging/makeself/install-or-update.sh

Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>

* Updated md5sum of kickstart-static64.sh in docs

* Fixed bad rebase/merge conflicts

Co-authored-by: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>
2020-01-28 05:52:14 +10:00
James Mills
986bc2052c
Cleanup packaging/makeself/build-x86_64-static.sh to use /bin/sh and remove use of sudo () 2020-01-18 00:34:19 +02:00
Austin S. Hemmelgarn
cc0de9f292
Make auto-updates work on kickstart-static64 installs. ()
* Store only the options for reinstall, not the full command.

This simplifies handling of updates with the static installer.

* Properly utilize the updater for static installs.

* Disable auto-updater when using local files.

If using local files, we can probably assume a system without a network
connection, so don't enable the auto-updater.

* Document support for auto-updates from kickstart-static64

* Fix infinite loop in auto-update option.

* Update kickstart-static64 checksum in docs.

* Remove unnecessary `sed` argument.

Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>

Co-authored-by: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>
2020-01-14 07:45:57 -05:00
Mansour Behabadi
d0e4241447
packaging: Set default release channel to stable for gh releases ()
* packaging: Set default release channel to stable for gh releases

* Leave kickstart files alone

* Update .travis/create_artifacts.sh

Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>

Co-authored-by: Mansour Behabadi <mansour@oxplot.com>
Co-authored-by: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>
2019-12-20 23:16:23 +11:00
Mansour Behabadi
4edc7e907e Add anon tracking notice for installers ()
* Show notice of anonymous data collection

* Add DO_NOT_TRACK env var to docker run script

* Add disable-telemetry option to kickstart-static64

* Check if DO_NOT_TRACK is set
2019-12-19 15:06:37 -05:00
Konstantinos Natsakis
1094175c3b
Ownership and permissions of /etc/netdata ()
* make install takes care of ownership and permissions of /etc/netdata

Instead of netdata-installer.sh

* Fix identation in Makefile.am files

* netdata-installer.sh: Clearer variable assignment

* netdata-installer.sh: Set /etc/netdata/netdata.conf ownership to root:root and permissions to 0644

* netdata-installer.sh: Set /etc/netdata/.environment permissions to 0644

* install-or-update.sh: Set permissions for /opt/netdata/etc/netdata.conf to 0644

* install-or-update.sh: Use ${NETDATA_PREFIX} more

* install-or-update.sh: Improve indentation

* install-or-update.sh: Do not create /opt/netdata/etc/netdata directories

* debian/rules: /etc/netdata files and directories are now installed by make install

* debian/rules: Properly copy files across directories

When destination directory exists

* netdata.spec.in: /etc/netdata ownership and permissions

* Revert "Fix identation in Makefile.am files"

This reverts commit 63fdb299b69152fda6984f81b0fef02f364c5efe.

* Remove uninstall-local recipes from Makefile.am files

* Removed superfluous whitespace and hash
2019-11-11 21:16:42 +02:00
Tom Buck
3fdf18dcb6 add support for am2320 sensor ()
* add support for am2320 sensor

add support for am2320 temperature and humidity sensor

* Rename readme.md to README.md

* updated README.md to include proper sections

updated README.md to include proper sections

* readme updated and file name corrected

readme updated with missing formatting and information. AM2320.chart.py
filename corrected.

* changed simple service import

chnaged simple service import location

* updated README.md to remove the reference of moving the script file.

* requested changes

- Moved header from README.md to am2320.chart.py
- Added Alarm for am2320 to health.d
- Changed exception to value error in am2320.chart.py

* typo

changed mae to make in comment

* Add title and icon for AM2320 Sensor

Add title and icon for AM2320 Sensor

* typo corrected

changed Save to save

* added I2C group to installer

Added netdata to the I2C group during install or update.
Removed instruction to add netdate to I2C group from README.md

* change tab to spaces

change tab to spaces
2019-10-22 20:08:57 +00:00
Konstantinos Natsakis
cd097aad6f
7040 enable stable channel option ()
* Partial fix for 

install-or-update.sh now accepts the --stable-channel option

* Add missing quotes to sed command
2019-10-18 17:00:24 +03:00
Konstantinos Natsakis
4b9cc50adc Partial fix for ()
* Partial fix for 
Moved updater installation code from netdata-installer.sh to packaging/installer/functions.sh
packaging/makeself/install-or-update.sh uses above code to install
netdata updater

- Moved updater installation code to packaging/installer/functions.sh
- packaging/makeself/install-or-update.sh uses above code to install
netdata updater

* Split install_or_remove_netdata_updater() function

* Improved netdata-updater related message output

* Improved variable declaration location in install-or-update.sh
2019-10-17 15:30:49 +02:00
Paul Emm. Katsoulakis
efb00d6d2f
netdata/installer: fix static64 installer always overwriting configuration ()
* netdata/packaging: static installer - back up configuration directory, if it already exists

* netdata/packaging: keep more versions of it, we will consider how to consolidate too old ones

* netdata/packaging: At the post install activities, if .old directory was in place, reinstate it (WIP)

* netdata/packaging: Attempt to trigger stock config refresh

* netdata/packaging: the .new directory is just the latest one, no need to keep it when re-running

* netdata/packaging: dont do -f, its -d to confirm existence of dir
2019-08-29 23:24:18 +03:00
Promise Akpan
f5006d51e8 Fix Markdown Lint warnings ()
* make remark access all directories

* detailed fix after autofix by remark lint

* cross check autofix for this set of files

* crosscheck more files

* crosschecking and small fixes

* crosscheck autofixed md files
2019-08-15 13:06:39 +02:00
Joel Hans
a726c905bd
Change "netdata" to "Netdata" in all docs ()
* First pass of changing netdata to Netdata

* Second pass of netdata -> Netdata

* Starting work on netdata with no whitespace after

* Pass for netdata with no whitespace at the end

* Pass for netdata with no whitespace at the front
2019-08-13 08:07:17 -07:00
Paul Emm. Katsoulakis
e3babcb339
netdata/packaging: Adopt netdata-updater to run properly for static64 installations. ()
* netdata/packaging: Start support for netdata-updater compatibility on static installation

1) Make netdata-installer.sh accept --static option, that simply passes variable IS_NETDATA_STATIC_BINARY=yes to the environment
2) Adjust the updater to check that variable and then is set to yes, make it download the static binary and run the static binary

In theory, this should give us the required info on the updater. Only thing missing is how to catch the extra arguments the user might have given on the initial install.
Will rework this after i test this first draft change

* netdata/packaging: dont forget to enter the temp dir and also return to the original one afterwards. Print some info too.

* netdata/packaging: reduce complexity on parameters for installer. Rather expect the variable to be set by the caller.

this way we wont let the users get confused by the existence of a flag that only has internal usage.

* netdata/packaging: dont forget to clean up the whole folder, its a temp
2019-07-27 00:50:34 +03:00
thiagoftsm
b6088e08a7 SSL implementation for Netdata ()
* SSL implementation for Netdata

* Upload of fixes asked by @paulkatsoulakis and @cakrit

* Fix local computer

* Adding openssl to webserver

* fixing..

* HTTPS almost there

* Codacity

* HTTPS day 3

* HTTPS without Bio step 1

* HTTPS without Bio step 2

* HTTPS without Bio step 3

* HTTPS without Bio step 4

* HTTPS without Bio step 5

* HTTPS without Bio step 6

* HTTPS without Bio step 7

* HTTPS without Bio step 8

* HTTPS without Bio step 9

* HTTPS without Bio step 10

* SSL on streaming 1

* Daily pull

* HTTPS without Bio step 11

* HTTPS without Bio step 12

* HTTPS without Bio step 13

* HTTPS without Bio step 14

* SSL_Interception change documentation

* HTTPS without Bio step 15

* HTTPS without Bio step 16

* SSL_Interception fix codacity

* SSL_Interception fix doc

* SSL_Interception comments

* SSL_Interception fixing problems!

* SSL_Interception killing bugs

* SSL_Interception changing parameter

* SSL_Implementation documentation and script

* SSL_Implementation multiple fixes

* SSL_Implementation installer and cipher

* SSL_Implementation Redirect 301

* SSL_Implementation webserver doc and install-or-update.sh

* SSL_Implementation error 00000001:lib(0):func(0):reason(1)

* SSL_Implementation web server doc

* SSL_Implementation SEGFAULT on Fedora

* SSL_Implementation fix ^SSL=force|optional

* SSL_Implementation Redirect and Ciphers

* SSL_Implementation race condition 1

* SSL_Implementation Fix Location

* SSL_Implementation Fix Location 2

* SSL_Implementation Fix stream

* SSL_Implementation Fix stream 2

* SSL_Implementation Fix stream 3

* SSL_Implementation last problems!

* SSL_Implementation adjusts to commit!

* SSL_Implementation documentation permission!

* SSL_Implementation documentation permission 2!

* SSL_Implementation documentation permission 3!
2019-05-31 16:27:35 +02:00
Steve8291
e11a4e4a5d Add "custom-plugins.d" to fix error in log file ()
default netdata.conf file references this dir but installer doesn't create it. Trying to get rid of the following error from /var/log/netdata/error.log
ERROR : PLUGINSD : cannot open plugins directory '/etc/netdata/custom-plugins.d' (errno 2, No such file or directory)
2019-05-28 13:01:23 +02:00
Paul Emm. Katsoulakis
a0fbb47c97
netdata/packaging: Fix makeself packaging ()
* netdata/packaging: Fix makeself with the new package dependencies

* netdata/packaging: Allow artifacts to be built under different repository when needed
2019-05-17 13:27:15 +03:00
Vladimir Kobal
f0bc01ddbd
Add ioping plugin ()
* 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
Paul Emm. Katsoulakis
065523a43c
netdata/packaging/installer: Dont use --always, when git describe cant find a tag we have the alternative of packaging/version content file () 2019-04-13 10:52:29 +03:00
Paul Emm. Katsoulakis
e1f7a105c4
netdata/packaging/installer: HoS situation - Fix broken install-or-update script ()
During the last major installer refactoring, we managed to break (again) the static64 installer.
We modified the code that defines user/group ownerships for netdata installation,
forcing the install to end up with a process running as netdata and files set as root

To fix this, we re-instate default NETDATA_USER/NETDATA_GROUP to root, as it should be.
Then we attempt group netadata creation. If that succeeds, we attempt user netdata creation.
If that succeeds, we attempt secondary groups addition.

Report errors on all otherwise situations from each step.
2019-04-05 11:47:18 +02:00
Paul Katsoulakis
cad6bb3d23
netdata/packaging/makeself: no comment, i will be adding artifact emulation on the builds, not just make dist ^_^ () 2019-03-30 08:34:51 +00:00
Paul Katsoulakis
c8d2e6c7d3
netdata/packaging/installer: netdata-installer.sh script (and subscripts) refactoring wrap-up ()
* remove dead quickfix

* unify global variable naming

* do not use double negation

* simplify setcap detection

* simplify logic of setting capabilities to apps.plugin

* always set group in chown

* simplify parameter parsing and banner notifications

* use built-in command for checking program availability

* lint functions.sh

* fix errors returned by shellcheck

* remove unused functions and use portable_service

* move user management functions closer together and remove "check" functions to reduce levels of indirection

* extract add_netdata_user_and_group and move it into installers for better code readability

* improve readability by not using global variable holding number of processors

* move netdata.conf file creation into one function

* revert migration to portable_service

* Less verbose setcap

* remove TODOs

* do not show output when not needed

* fix checking for group existence

* fix variable name

* netdata/packaging/installer: Dont spill out unnecessary output in stdout/stderr, it may confuse our users

The second commit was a follow up cleanup on nits.

* access: change codeowner

* Revert "access: change codeowner"

This reverts commit 6ee51ccae9.
sorry, wrong repo

* netdata/packaging/installer: bug fix - do not use pidof as the name of the helper method

1) rename to safe_pidof, which is actually more accurate and describe what this method serves for (safe pid detection)
2) Renaming it also avoids the bug introduced by the usage of , that resulted in endless nested calls of the BASH method pidif
   (Refer to command -v usage)
2019-03-29 14:52:03 +00:00
Vladimir Kobal
786ccc7275
Update fping version () 2019-03-27 13:47:25 +02:00