1
-# Installation
1
+# Installation guide
2
3
-Netdata is a **monitoring agent**. It is designed to be installed and run on all your systems: **physical** and **virtual** servers, **containers**, even **IoT**.
3
+Netdata is a monitoring agent designed to run on all your systems: physical and virtual servers, containers, even
4
+IoT/edge devices. Netdata runs on Linux, FreeBSD, macOS, Kubernetes, Docker, and all their derivatives.
5
5
-The best way to install Netdata is directly from source. Our **automatic installer** will install any required system packages and compile Netdata directly on your systems.
6
+The best way to install Netdata is with our [**automatic one-line installation
7
+script**](#automatic-one-line-installation-script), which works with all Linux distributions, or our [**.deb/rpm
8
+packages**](methods/packages.md), which seamlessly install with your distribution's package manager.
9
+
10
+If you want to install Netdata with Docker, on a Kubernetes cluster, or a different operating system, see [Have a
11
+different operating system, or want to try another
12
+method?](#have-a-different-operating-system-or-want-to-try-another-method)
13
14
Some third parties, such as the packaging teams at various Linux distributions, distribute old, broken, or altered
8
-packages. We recommend you install Netdata using one of the above methods to guarantee you get the latest and
15
+packages. We recommend you install Netdata using one of the methods listed below to guarantee you get the latest
16
checksum-verified packages.
17
18
Starting with v1.12, Netdata collects anonymous usage information by default and sends it to Google Analytics. Read
19
about the information collected, and learn how to-opt, on our [anonymous statistics](../../docs/anonymous-statistics.md)
20
page.
21
15
-The usage statistics are _vital_ for us, as we use them to discover bugs and priortize new features. We thank you for
22
+The usage statistics are _vital_ for us, as we use them to discover bugs and prioritize new features. We thank you for
23
_actively_ contributing to Netdata's future.
24
18
-## Installation methods
19
-
20
-1. [Automatic one line installation](#one-line-installation), easy installation from source, **this is the default**
21
-2. [Install pre-built static binary on any 64bit Linux](#linux-64bit-pre-built-static-binary)
22
-3. [Run Netdata in a docker container](#run-netdata-in-a-docker-container)
23
-4. [Manual installation, step by step](#install-netdata-on-linux-manually)
24
-5. [Install on FreeBSD](#freebsd)
25
-6. [Install on pfSense](#pfsense)
26
-7. [Enable on FreeNAS Corral](#freenas)
27
-8. [Install on macOS (OS X)](#macos)
28
-9. [Install on a Kubernetes cluster](https://github.com/netdata/helmchart#netdata-helm-chart-for-kubernetes-deployments)
29
-10. [Install using binary packages](#binary-packages)
30
-11. See also the list of Netdata [package maintainers](../maintainers) for ASUSTOR NAS, OpenWRT, ReadyNAS, etc.
31
-
32
-## One-line installation
25
+## Automatic one-line installation script
26
27
 
28
36
-This method is **fully automatic on all Linux distributions**. FreeBSD and MacOS systems need some preparations before installing Netdata for the first time. Check the [FreeBSD](#freebsd) and the [MacOS](#macos) sections for more information.
29
+This method is fully automatic on all Linux distributions, including Ubuntu, Debian, Fedora, CentOS, and others.
30
38
-To install Netdata from source, and keep it up to date with our **nightly releases** automatically, run the following:
31
+To install Netdata from source and get _automatic nightly updates_, run the following as your normal user:
32
33
```bash
34
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
35
```
36
44
-!!! note
45
- Do not use `sudo` for the one-line installer—it will escalate privileges itself if needed.
46
-
47
-
48
-To learn more about the pros and cons of using *nightly* vs. *stable* releases, see our [notice about the two options](#nightly-vs-stable-releases).
49
-
50
-<details markdown="1"><summary>Click here for more information and advanced use of the one-line installation script.</summary>
51
-
52
-Verify the integrity of the script with this:
53
-
54
-```bash
55
-[ "952da7868b2c6b8819a7c600047400f5" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
56
-```
57
-
58
-_It should print `OK, VALID` if the script is the one we ship._
59
-
60
-The `kickstart.sh` script:
61
-
62
-- detects the Linux distro and **installs the required system packages** for building Netdata (will ask for confirmation)
63
-- downloads the latest Netdata source tree to `/usr/src/netdata.git`.
64
-- installs Netdata by running `./netdata-installer.sh` from the source tree.
65
-- installs `netdata-updater.sh` to `cron.daily`, so your Netdata installation will be updated daily (you will get a message from cron only if the update fails).
66
-- For QA purposes, this installation method lets us know if it succeed or failed.
67
-
68
-The `kickstart.sh` script passes all its parameters to `netdata-installer.sh`, so you can add more parameters to customize your installation. Here are a few important parameters:
69
-
70
-- `--dont-wait`: Enable automated installs by not prompting for permission to install any required packages.
71
-- `--dont-start-it`: Prevent the installer from starting Netdata automatically.
72
-- `--stable-channel`: Automatically update only on the release of new major versions.
73
-- `--nightly-channel`: Automatically update on every new nightly build.
74
-- `--disable-telemetry`: Opt-out of [anonymous statistics](../../docs/anonymous-statistics.md) we use to make Netdata
75
- better.
76
-- `--no-updates`: Prevent automatic updates of any kind.
77
-- `--local-files`: Used for offline installations. Pass four file paths: the Netdata tarball, the checksum file, the go.d plugin tarball, and the go.d plugin config tarball, to force kickstart run the process using those files.
78
-
79
-Example using all the above parameters:
80
-
81
-```bash
82
-bash <(curl -Ss https://my-netdata.io/kickstart.sh) --dont-wait --dont-start-it --no-updates --stable-channel --local-files /tmp/my-selfdownloaded-tarball.tar.gz /tmp/checksums.txt /tmp/manually.downloaded.go.d.binary.tar.gz /tmp/manually.downloaded.go.d.config.tar.gz
83
-```
84
-Note: `--stable-channel` and `--local-files` overlap, if you use the tarball override the stable channel option is not effective
85
-</details>
86
-
87
-Now that Netdata is installed, be sure to visit our [getting started guide](../../docs/getting-started.md) for a quick
88
-overview of configuring Netdata, enabling plugins, and controlling Netdata's daemon. Or, get the full guided tour of
89
-Netdata's capabilities with our [step-by-step tutorial](../../docs/step-by-step/step-00.md)!
90
-
91
----
92
-
93
-## Linux 64bit pre-built static binary
94
-
95
- 
96
-
97
-You can install a pre-compiled static binary of Netdata on any Intel/AMD 64bit Linux system (even those that don't have a package manager, like CoreOS, CirrOS, busybox systems, etc). You can also use these packages on systems with broken or unsupported package managers.
98
-
99
-To install Netdata from a binary package on any Linux distro and any kernel version on **Intel/AMD 64bit** systems, and keep it up to date with our **nightly releases** automatically, run the following:
100
-
101
-```bash
102
-bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh)
103
-```
104
-
105
-!!! note
106
- Do not use `sudo` for this installer—it will escalate privileges itself if needed.
37
+To see more information about this installation script, including how to disable automatic updates, get nightly vs.
38
+stable releases, or disable anonymous statistics, see the [`kickstart.sh` method page](methods/kickstart.md).
39
+
40
+Scroll down for details about [automatic updates](#automatic-updates) or [nightly vs. stable
41
+releases](#nightly-vs-stable-releases).
42
+
43
+When you finish installing Netdata, be sure to visit our [step-by-step tutorial](../../docs/step-by-step/step-00.md)
44
+for a fully-guided tour into Netdata's capabilities and how to configure it according to your needs.
45
+
46
+Or, if you're a monitoring and system administration pro, skip ahead to our [getting started
47
+guide](../../docs/getting-started.md) for a quick overview.
48
+
49
+## Have a different operating system, or want to try another method?
50
+
51
+Netdata works on many different operating systems, each with a few possible installation methods. To see the full list
52
+of approved methods for each operating system/version we support, see our [distribution matrix](../DISTRIBUTIONS.md).
53
+
54
+Below, you can find a few additional installation methods, followed by separate instructions for a variety of unique
55
+operating systems.
56
+
57
+### Alternative methods
58
+
59
+<div class="installer-grid">
60
+ <div class="grid-item">
61
+ <h3><img src="https://user-images.githubusercontent.com/1153921/73030393-c5eb4200-3df6-11ea-9942-436caa3ed100.png" alt="Install with .deb or .rpm packages" />Packages</h3>
62
+ <ul>
63
+ <li><a href="methods/packages/">Install with <code>.deb</code> or <code>.rpm</code> packages</a></li>
64
+ </ul>
65
+ </div>
66
+ <div class="grid-item">
67
+ <h3><img src="https://user-images.githubusercontent.com/1153921/73030303-94727680-3df6-11ea-963e-6f2cb0ce762c.png" alt="Install with a pre-built static binary for 64-bit systems" />Static binary</h3>
68
+ <ul>
69
+ <li><a href="methods/kickstart-64/">Install with a pre-built static binary for 64-bit systems</a></li>
70
+ </ul>
71
+ </div>
72
+ <div class="grid-item">
73
+ <h3><img src="https://user-images.githubusercontent.com/1153921/71905478-e36ea980-3170-11ea-94f7-950328ad1bdf.png" alt="Install Netdata on Docker" />Docker</h3>
74
+ <ul>
75
+ <li><a href="../docker/#run-netdata-with-the-docker-command">Using the <code>docker</code> command</a></li>
76
+ <li><a href="../docker/#run-netdata-with-the-docker-command">Using a `docker-compose.yml` file</a></li>
77
+ </ul>
78
+ </div>
79
+ <div class="grid-item">
80
+ <h3><img src="https://user-images.githubusercontent.com/1153921/71960868-c1236d00-31fe-11ea-859e-902d36233e38.png" alt="Install Netdata on Kubernetes" />Kubernetes</h3>
81
+ <ul>
82
+ <li><a href="https://github.com/netdata/helmchart#netdata-helm-chart-for-kubernetes-deployments">Using a Helm chart</a></li>
83
+ </ul>
84
+ </div>
85
+ <div class="grid-item">
86
+ <h3><img src="https://user-images.githubusercontent.com/1153921/71961672-8cb0b080-3200-11ea-84f8-9139c7434110.png" alt="Install Netdata on macOS" />macOS</h3>
87
+ <ul>
88
+ <li><a href="methods/macos/#with-homebrew">Homebrew</a></li>
89
+ <li><a href="methods/macos/#from-source">Manual installation from source</a></li>
90
+ </ul>
91
+ </div>
92
+ <div class="grid-item">
93
+ <h3><img src="https://user-images.githubusercontent.com/1153921/71961245-a3a2d300-31ff-11ea-89bf-b90e7242d9a5.png" alt="Install Netdata on FreeBSD" />FreeBSD</h3>
94
+ <ul>
95
+ <li><a href="methods/freebsd/">Installation on FreeBSD</a></li>
96
+ </ul>
97
+ </div>
98
+ <div class="grid-item">
99
+ <h3><img src="https://user-images.githubusercontent.com/1153921/73032280-f1246000-3dfb-11ea-870d-7fbddd9a6f76.png" alt="Install manually from source" />Manual</h3>
100
+ <ul>
101
+ <li><a href="methods/manual/">Install manually from source</a></li>
102
+ </ul>
103
+ </div>
104
+ <div class="grid-item">
105
+ <h3><img src="https://user-images.githubusercontent.com/1153921/73032239-c89c6600-3dfb-11ea-8224-c8a9f7a50c53.png" alt="Install on offline/air-gapped systems" />Offline</h3>
106
+ <ul>
107
+ <li><a href="methods/offline/">Install on offline/air-gapped systems</a></li>
108
+ </ul>
109
+ </div>
110
+ <div class="grid-item">
111
+ <h3><img src="https://user-images.githubusercontent.com/1153921/71961918-13fe2400-3201-11ea-9a91-fe6f5b27df0c.png" alt="Install Netdata on PFSense" />PFSense</h3>
112
+ <ul>
113
+ <li><a href="methods/pfsense/">Installation on PFSense</a></li>
114
+ </ul>
115
+ </div>
116
+ <div class="grid-item">
117
+ <h3><img src="https://user-images.githubusercontent.com/1153921/71962148-853dd700-3201-11ea-9a09-16fdb39e9ee4.png" alt="Install Netdata on Synology" />Synology</h3>
118
+ <ul>
119
+ <li><a href="methods/synology/">Installation on Synology</a></li>
120
+ </ul>
121
+ </div>
122
+ <div class="grid-item">
123
+ <h3><img src="https://user-images.githubusercontent.com/1153921/72070923-543dcf00-32f3-11ea-8053-d61bc96529b5.png" alt="Install Netdata on Alpine FreeNAS" />FreeNAS</h3>
124
+ <ul>
125
+ <li><a href="methods/freenas/">Manual installation on FreeNAS</a></li>
126
+ </ul>
127
+ </div>
128
+ <div class="grid-item">
129
+ <h3><img src="https://user-images.githubusercontent.com/1153921/72070921-53a53880-32f3-11ea-80f1-7d00cd8a7906.png" alt="Install Netdata on Alpine Linux" />Alpine</h3>
130
+ <ul>
131
+ <li><a href="methods/alpine/">Manual installation on Alpine</a></li>
132
+ </ul>
133
+ </div>
134
+</div>
135
108
-To learn more about the pros and cons of using *nightly* vs. *stable* releases, see our [notice about the two options](README.md#nightly-vs-stable-releases).
109
-
110
-If your system does not have `bash` installed, open the `More information and advanced uses of the kickstart-static64.sh script` dropdown for instructions to run the installer without `bash`.
111
-
112
-This script installs Netdata at `/opt/netdata`.
136
+## Automatic updates
137
114
-<details markdown="1"><summary>Click here for more information and advanced use of this command.</summary>
138
+By default, Netdata's installation scripts enable automatic updates for both nightly and stable release channels.
139
116
-Verify the integrity of the script with this:
140
+If you would prefer to update your Netdata agent manually, you can disable automatic updates by using the `--no-updates`
141
+option when you install or update Netdata using the [automatic one-line installation
142
+script](#automatic-one-line-installation-script).
143
144
```bash
119
-[ "dfa84c3b5e6fd8975555d68f46eccdde" = "$(curl -Ss https://my-netdata.io/kickstart-static64.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
120
-```
121
-
122
-*It should print `OK, VALID` if the script is the one we ship.*
123
-
124
-The `kickstart-static64.sh` script passes all its parameters to `netdata-installer.sh`, so you can add more parameters to customize your installation. Here are a few important parameters:
125
-
126
-- `--dont-wait`: Enable automated installs by not prompting for permission to install any required packages.
127
-- `--dont-start-it`: Prevent the installer from starting Netdata automatically.
128
-- `--stable-channel`: Automatically update only on the release of new major versions.
129
-- `--disable telemetry`: Opt-out of [anonymous statistics](../../docs/anonymous-statistics.md) we use to make Netdata
130
- better.
131
-- `--no-updates`: Prevent automatic updates of any kind.
132
-- `--local-files`: Used for offline installations. Pass two file paths, one for the tarball and one for the checksum file, to force kickstart run the process using those files.
133
-
134
-Example using all the above parameters:
135
-
136
-```sh
137
-bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) --dont-wait --dont-start-it --no-updates --stable-channel --local-files /tmp/my-selfdownloaded-tarball.tar.gz /tmp/checksums.txt
138
-```
139
-
140
-If your shell fails to handle the above one liner, do this:
141
-
142
-```sh
143
-# download the script with curl
144
-curl https://my-netdata.io/kickstart-static64.sh >/tmp/kickstart-static64.sh
145
-
146
-# or, download the script with wget
147
-wget -O /tmp/kickstart-static64.sh https://my-netdata.io/kickstart-static64.sh
148
-
149
-# run the downloaded script (any sh is fine, no need for bash)
150
-sh /tmp/kickstart-static64.sh
151
-```
152
-
153
-- The static binary files are kept in repo [binary-packages](https://github.com/netdata/binary-packages). You can download any of the `.run` files, and run it. These files are self-extracting shell scripts built with [makeself](https://github.com/megastep/makeself).
154
-- The target system does **not** need to have bash installed.
155
-- The same files can be used for updates too.
156
-- If the `--local-files` option was not specified, installs `netdata-updater.sh` to `cron.daily`, so your Netdata installation will be updated daily (you will get a message from cron only if the update fails).
157
-- For QA purposes, this installation method lets us know if it succeed or failed.
158
-
159
-</details>
160
-
161
-Now that Netdata is installed, be sure to visit our [getting started guide](../../docs/getting-started.md) for a quick
162
-overview of configuring Netdata, enabling plugins, and controlling Netdata's daemon. Or, get the full guided tour of
163
-Netdata's capabilities with our [step-by-step tutorial](../../docs/step-by-step/step-00.md)!
164
-
165
----
166
-
167
-## Run Netdata in a Docker container
168
-
169
-You can [Install Netdata with Docker](../docker/#install-netdata-with-docker).
170
-
171
----
172
-
173
-## Install Netdata on Linux manually
174
-
175
-To install the latest git version of Netdata, please follow these 2 steps:
176
-
177
-1. [Prepare your system](#prepare-your-system)
178
-
179
- Install the required packages on your system.
180
-
181
-2. [Install Netdata](#install-netdata)
182
-
183
- Download and install Netdata. You can also update it the same way.
184
-
185
----
186
-
187
-### Prepare your system
188
-
189
-Try our experimental automatic requirements installer (no need to be root). This will try to find the packages that should be installed on your system to build and run Netdata. It supports most major Linux distributions released after 2010:
190
-
191
-- **Alpine** Linux and its derivatives
192
- - You have to install `bash` yourself, before using the installer.
193
-
194
-- **Arch** Linux and its derivatives
195
- - You need arch/aur for package Judy.
196
-
197
-- **Gentoo** Linux and its derivatives
198
-
199
-- **Debian** Linux and its derivatives (including **Ubuntu**, **Mint**)
200
-
201
-- **Redhat Enterprise Linux** and its derivatives (including **Fedora**, **CentOS**, **Amazon Machine Image**)
202
- - Please note that for RHEL/CentOS you need
203
- [EPEL](http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/).
204
- In addition, RHEL/CentOS version 6 also need
205
- [OKay](https://okay.com.mx/blog-news/rpm-repositories-for-centos-6-and-7.html) for package libuv version 1.
206
-
207
-- **SuSe** Linux and its derivatives (including **openSuSe**)
208
-
209
-- **SLE12** Must have your system registered with Suse Customer Center or have the DVD. See [#1162](https://github.com/netdata/netdata/issues/1162)
210
-
211
-Install the packages for having a **basic Netdata installation** (system monitoring and many applications, without `mysql` / `mariadb`, `postgres`, `named`, hardware sensors and `SNMP`):
212
-
213
-```sh
214
-curl -Ss 'https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh' >/tmp/install-required-packages.sh && bash /tmp/install-required-packages.sh -i netdata
215
-```
216
-
217
-Install all the required packages for **monitoring everything Netdata can monitor**:
218
-
219
-```sh
220
-curl -Ss 'https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh' >/tmp/install-required-packages.sh && bash /tmp/install-required-packages.sh -i netdata-all
221
-```
222
-
223
-If the above do not work for you, please [open a github issue](https://github.com/netdata/netdata/issues/new?title=packages%20installer%20failed&labels=installation%20help&body=The%20experimental%20packages%20installer%20failed.%0A%0AThis%20is%20what%20it%20says:%0A%0A%60%60%60txt%0A%0Aplease%20paste%20your%20screen%20here%0A%0A%60%60%60) with a copy of the message you get on screen. We are trying to make it work everywhere (this is also why the script [reports back](https://github.com/netdata/netdata/issues/2054) success or failure for all its runs).
224
-
225
----
226
-
227
-This is how to do it by hand:
228
-
229
-```sh
230
-# Debian / Ubuntu
231
-apt-get install zlib1g-dev uuid-dev libuv1-dev liblz4-dev libjudy-dev libssl-dev libmnl-dev gcc make git autoconf autoconf-archive autogen automake pkg-config curl python
232
-
233
-# Fedora
234
-dnf install zlib-devel libuuid-devel libuv-devel lz4-devel Judy-devel openssl-devel libmnl-devel gcc make git autoconf autoconf-archive autogen automake pkgconfig curl findutils python
235
-
236
-# CentOS / Red Hat Enterprise Linux
237
-yum install autoconf automake curl gcc git libmnl-devel libuuid-devel openssl-devel libuv-devel lz4-devel Judy-devel make nc pkgconfig python zlib-devel
238
-
239
-# openSUSE
240
-zypper install zlib-devel libuuid-devel libuv-devel liblz4-devel judy-devel libopenssl-devel libmnl-devel gcc make git autoconf autoconf-archive autogen automake pkgconfig curl findutils python
241
-```
242
-
243
-Once Netdata is compiled, to run it the following packages are required (already installed using the above commands):
244
-
245
-| package | description|
246
-|:-----:|-----------|
247
-| `libuuid` | part of `util-linux` for GUIDs management|
248
-| `zlib` | gzip compression for the internal Netdata web server|
249
-| `libuv` | Multi-platform support library with a focus on asynchronous I/O, version 1 or greater|
250
-
251
-*Netdata will fail to start without the above.*
252
-
253
-Netdata plugins and various aspects of Netdata can be enabled or benefit when these are installed (they are optional):
254
-
255
-| package |description|
256
-|:-----:|-----------|
257
-| `bash`|for shell plugins and **alarm notifications**|
258
-| `curl`|for shell plugins and **alarm notifications**|
259
-| `iproute` or `iproute2`|for monitoring **Linux traffic QoS**<br/>use `iproute2` if `iproute` reports as not available or obsolete|
260
-| `python`|for most of the external plugins|
261
-| `python-yaml`|used for monitoring **beanstalkd**|
262
-| `python-beanstalkc`|used for monitoring **beanstalkd**|
263
-| `python-dnspython`|used for monitoring DNS query time|
264
-| `python-ipaddress`|used for monitoring **DHCPd**<br/>this package is required only if the system has python v2. python v3 has this functionality embedded|
265
-| `python-mysqldb`<br/>or<br/>`python-pymysql`|used for monitoring **mysql** or **mariadb** databases<br/>`python-mysqldb` is a lot faster and thus preferred|
266
-| `python-psycopg2`|used for monitoring **postgresql** databases|
267
-| `python-pymongo`|used for monitoring **mongodb** databases|
268
-| `nodejs`|used for `node.js` plugins for monitoring **named** and **SNMP** devices|
269
-| `lm-sensors`|for monitoring **hardware sensors**|
270
-| `libmnl`|for collecting netfilter metrics|
271
-| `netcat`|for shell plugins to collect metrics from remote systems|
272
-
273
-*Netdata will greatly benefit if you have the above packages installed, but it will still work without them.*
274
-
275
-Netdata DB engine can be enabled when these are installed (they are optional):
276
-
277
-| package | description|
278
-|:-----:|-----------|
279
-| `liblz4` | Extremely fast compression algorithm, version r129 or greater|
280
-| `Judy` | General purpose dynamic array|
281
-| `openssl`| Cryptography and SSL/TLS toolkit|
282
-
283
-*Netdata will greatly benefit if you have the above packages installed, but it will still work without them.*
284
-
285
----
286
-
287
-### Install Netdata
288
-
289
-Do this to install and run Netdata:
290
-
291
-```sh
292
-# download it - the directory 'netdata' will be created
293
-git clone https://github.com/netdata/netdata.git --depth=100
294
-cd netdata
295
-
296
-# run script with root privileges to build, install, start Netdata
297
-./netdata-installer.sh
298
-```
299
-
300
-- If you don't want to run it straight-away, add `--dont-start-it` option.
301
-
302
-- You can also append `--stable-channel` to fetch and install only the official releases from GitHub, instead of the nightly builds.
303
-
304
-- You can append `--disable telemetry` to opt-out of [anonymous statistics](../../docs/anonymous-statistics.md) we use
305
- to make Netdata better.
306
-
307
-- If you don't want to install it on the default directories, you can run the installer like this: `./netdata-installer.sh --install /opt`. This one will install Netdata in `/opt/netdata`.
308
-
309
-- If your server does not have access to the internet and you have manually put the installation directory on your server, you will need to pass the option `--disable-go` to the installer. The option will prevent the installer from attempting to download and install `go.d.plugin`.
310
-
311
-Once the installer completes, the file `/etc/netdata/netdata.conf` will be created (if you changed the installation directory, the configuration will appear in that directory too).
312
-
313
-You can edit this file to set options. One common option to tweak is `history`, which controls the size of the memory database Netdata will use. By default is `3600` seconds (an hour of data at the charts) which makes Netdata use about 10-15MB of RAM (depending on the number of charts detected on your system). Check **\[[Memory Requirements]]**.
314
-
315
-To apply the changes you made, you have to restart Netdata.
316
-
317
----
318
-
319
-### Binary Packages
320
-
321
-
322
-
323
-We provide our own flavour of binary packages for the most common operating systems that comply with .RPM and .DEB packaging formats.
324
-
325
-We have currently released packages following the .RPM format with version [1.16.0](https://github.com/netdata/netdata/releases/tag/v1.16.0).
326
-We have planned to release packages following the .DEB format with version [1.17.0](https://github.com/netdata/netdata/releases/tag/v1.17.0).
327
-Early adopters may experiment with our .DEB formatted packages using our nightly releases. Our current packaging infrastructure provider is [Package Cloud](https://packagecloud.io).
328
-
329
-Netdata is committed to support installation of our solution to all operating systems. This is a constant battle for Netdata, as we strive to automate and make things easier for our users. For the operating system support matrix, please visit our [distributions](../../packaging/DISTRIBUTIONS.md) support page.
330
-
331
-We provide two separate repositories, one for our stable releases and one for our nightly releases.
332
-
333
-1. Stable releases: Our stable production releases are hosted in [netdata/netdata](https://packagecloud.io/netdata/netdata) repository of package cloud
334
-2. Nightly releases: Our latest releases are hosted in [netdata/netdata-edge](https://packagecloud.io/netdata/netdata-edge) repository of package cloud
335
-
336
-Visit the repository pages and follow the quick set-up instructions to get started.
337
-
338
----
339
-
340
-## Other Systems
341
-
342
-##### FreeBSD
343
-
344
-You can install Netdata from ports or packages collection.
345
-
346
-This is how to install the latest Netdata version from sources on FreeBSD:
347
-
348
-```sh
349
-# install required packages
350
-pkg install bash e2fsprogs-libuuid git curl autoconf automake pkgconf pidof Judy liblz4 libuv json-c
351
-
352
-# download Netdata
353
-git clone https://github.com/netdata/netdata.git --depth=100
354
-
355
-# install Netdata in /opt/netdata
356
-cd netdata
357
-./netdata-installer.sh --install /opt
358
-```
359
-
360
-##### pfSense
361
-
362
-To install Netdata on pfSense, run the following commands (within a shell or under the **Diagnostics/Command** prompt within the pfSense web interface).
363
-
364
-Note that the first four packages are downloaded from the pfSense repository for maintaining compatibility with pfSense, Netdata, Judy and Python are downloaded from the FreeBSD repository.
365
-
366
-```sh
367
-pkg install pkgconf
368
-pkg install bash
369
-pkg install e2fsprogs-libuuid
370
-pkg install libuv
371
-pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/Judy-1.0.5_2.txz
372
-pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/python37-3.7.6.txz
373
-ln -s /usr/local/lib/libjson-c.so /usr/local/lib/libjson-c.so.4
374
-pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/netdata-1.19.0.txz
375
-```
376
-**Note:** If you receive a ` Not Found` error during the last two commands above, you will either need to manually look in the [repo folder](http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/) for the latest available package and use its URL instead, or you can try manually changing the netdata version in the URL to the latest version.
377
-
378
-You must edit `/usr/local/etc/netdata/netdata.conf` and change `bind to = 127.0.0.1` to `bind to = 0.0.0.0`.
379
-
380
-To start Netdata manually, run `service netdata onestart`
381
-
382
-Visit the Netdata dashboard to confirm it's working: `http://<pfsenseIP>:19999`
383
-
384
-To start Netdata automatically every boot, add `service netdata onestart` as a Shellcmd entry within the pfSense web interface under **Services/Shellcmd**. You'll need to install the Shellcmd package beforehand under **System/Package Manager/Available Packages**. The Shellcmd Type should be set to `Shellcmd`.
385
-
386
-Alternatively more information can be found in <https://doc.pfsense.org/index.php/Installing_FreeBSD_Packages>, for achieving the same via the command line and scripts.
387
-
388
-If you experience an issue with `/usr/bin/install` being absent in pfSense 2.3 or earlier, update pfSense or use a workaround from <https://redmine.pfsense.org/issues/6643>
389
-
390
-**Note:** In pfSense, the Netdata configuration files are located under `/usr/local/etc/netdata`
391
-
392
-##### FreeNAS
393
-
394
-On FreeNAS-Corral-RELEASE (>=10.0.3 and <11.3), Netdata is pre-installed.
395
-
396
-To use Netdata, the service will need to be enabled and started from the FreeNAS **[CLI](https://github.com/freenas/cli)**.
397
-
398
-To enable the Netdata service:
399
-
400
-```sh
401
-service netdata config set enable=true
402
-```
403
-
404
-To start the Netdata service:
405
-
406
-```sh
407
-service netdata start
408
-```
409
-
410
-##### macOS
411
-
412
-Netdata on macOS still has limited charts, but external plugins do work.
413
-
414
-You can either install Netdata with [Homebrew](https://brew.sh/)
415
-
416
-```sh
417
-brew install netdata
418
-```
419
-
420
-or from source:
421
-
422
-```sh
423
-# install Xcode Command Line Tools
424
-xcode-select --install
425
-```
426
-
427
-click `Install` in the software update popup window, then
428
-
429
-```sh
430
-# install HomeBrew package manager
431
-/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
432
-
433
-# install required packages
434
-brew install ossp-uuid autoconf automake pkg-config
435
-
436
-# download Netdata
437
-git clone https://github.com/netdata/netdata.git --depth=100
438
-
439
-# install Netdata in /usr/local/netdata
440
-cd netdata
441
-sudo ./netdata-installer.sh --install /usr/local
442
-```
443
-
444
-The installer will also install a startup plist to start Netdata when your Mac boots.
445
-
446
-**Note:** Should you wish to install Netdata with TLS support:
447
-1. Install OpenSSL via brew by executing `brew install openssl`
448
-2. Run the installer with the extra CFLAGS and LDFLAGS, since your OpenSSL installation is not automatically symlinked to `/usr/local`
449
-
450
-```sh
451
-# install Netdata in /usr/local/netdata
452
-cd netdata
453
-CFLAGS="-I$(brew --prefix)/opt/openssl/include" LDFLAGS="${LDFLAGS} -L$(brew --prefix)/opt/openssl/lib" sudo -E ./netdata-installer.sh --install /usr/local
454
-```
455
-
456
-
457
-##### Alpine 3.x
458
-
459
-Execute these commands to install Netdata in Alpine Linux 3.x:
460
-
461
-```sh
462
-# install required packages
463
-apk add alpine-sdk bash curl zlib-dev util-linux-dev libmnl-dev gcc make git autoconf automake pkgconfig python logrotate
464
-
465
-# if you plan to run node.js Netdata plugins
466
-apk add nodejs
467
-
468
-# download Netdata - the directory 'netdata' will be created
469
-git clone https://github.com/netdata/netdata.git --depth=100
470
-cd netdata
471
-
472
-
473
-# build it, install it, start it
474
-./netdata-installer.sh
475
-
476
-
477
-# make Netdata start at boot
478
-echo -e "#!/usr/bin/env bash\n/usr/sbin/netdata" >/etc/local.d/netdata.start
479
-chmod 755 /etc/local.d/netdata.start
480
-
481
-# make Netdata stop at shutdown
482
-echo -e "#!/usr/bin/env bash\nkillall netdata" >/etc/local.d/netdata.stop
483
-chmod 755 /etc/local.d/netdata.stop
484
-
485
-# enable the local service to start automatically
486
-rc-update add local
487
-```
488
-
489
-##### Synology
490
-
491
-The documentation previously recommended installing the Debian Chroot package from the Synology community package sources and then running Netdata from within the chroot. This does not work, as the chroot environment does not have access to `/proc`, and therefore exposes very few metrics to Netdata. Additionally, [this issue](https://github.com/SynoCommunity/spksrc/issues/2758), still open as of 2018/06/24, indicates that the Debian Chroot package is not suitable for DSM versions greater than version 5 and may corrupt system libraries and render the NAS unable to boot.
492
-
493
-The good news is that the 64-bit static installer works fine if your NAS is one that uses the amd64 architecture. It will install the content into `/opt/netdata`, making future removal safe and simple.
494
-
495
-When Netdata is first installed, it will run as *root*. This may or may not be acceptable for you, and since other installations run it as the *netdata* user, you might wish to do the same. This requires some extra work:
496
-
497
-1. Creat a group `netdata` via the Synology group interface. Give it no access to anything.
498
-2. Create a user `netdata` via the Synology user interface. Give it no access to anything and a random password. Assign the user to the `netdata` group. Netdata will chuid to this user when running.
499
-3. Change ownership of the following directories, as defined in [Netdata Security](../../docs/netdata-security.md#security-design):
500
-
501
-```sh
502
-chown -R root:netdata /opt/netdata/usr/share/netdata
503
-chown -R netdata:netdata /opt/netdata/var/lib/netdata /opt/netdata/var/cache/netdata
504
-chown -R netdata:root /opt/netdata/var/log/netdata
145
+bash <(curl -Ss https://my-netdata.io/kickstart.sh) --no-updates
146
```
147
507
-Additionally, as of 2018/06/24, the Netdata installer doesn't recognize DSM as an operating system, so no init script is installed. You'll have to do this manually:
508
-
509
-1. Add [this file](https://gist.github.com/oskapt/055d474d7bfef32c49469c1b53e8225f) as `/etc/rc.netdata`. Make it executable with `chmod 0755 /etc/rc.netdata`.
510
-2. Edit `/etc/rc.local` and add a line calling `/etc/rc.netdata` to have it start on boot:
511
-
512
-```
513
-# Netdata startup
514
-[ -x /etc/rc.netdata ] && /etc/rc.netdata start
515
-```
148
+With automatic updates disabled, you can choose exactly when and how you [update Netdata](UPDATE.md).
149
150
## Nightly vs. stable releases
151
519
-The Netdata team maintains two releases of the Netdata agent: **nightly** and **stable**. By default, Netdata's installation scripts will give you **automatic, nightly** updates, as that is our recommended configuration.
152
+The Netdata team maintains two releases of the Netdata agent: **nightly** and **stable**. By default, Netdata's
153
+installation scripts will give you **automatic, nightly** updates, as that is our recommended configuration.
154
521
-**Nightly**: We create nightly builds every 24 hours. They contain fully-tested code that fixes bugs or security flaws, or introduces new features to Netdata. Every nightly release is a candidate for then becoming a stable release—when we're ready, we simply change the release tags on GitHub. That means nightly releases are stable and proven to function correctly in the vast majority of Netdata use cases. That's why nightly is the *best choice for most Netdata users*.
155
+**Nightly**: We create nightly builds every 24 hours. They contain fully-tested code that fixes bugs or security flaws,
156
+or introduces new features to Netdata. Every nightly release is a candidate for then becoming a stable release—when
157
+we're ready, we simply change the release tags on GitHub. That means nightly releases are stable and proven to function
158
+correctly in the vast majority of Netdata use cases. That's why nightly is the _best choice for most Netdata users_.
159
523
-**Stable**: We create stable releases whenever we believe the code has reached a major milestone. Most often, stable releases correlate with the introduction of new, significant features. Stable releases might be a better choice for those who run Netdata in *mission-critical production systems*, as updates will come more infrequently, and only after the community helps fix any bugs that might have been introduced in previous releases.
160
+**Stable**: We create stable releases whenever we believe the code has reached a major milestone. Most often, stable
161
+releases correlate with the introduction of new, significant features. Stable releases might be a better choice for
162
+those who run Netdata in _mission-critical production systems_, as updates will come more infrequently, and only after
163
+the community helps fix any bugs that might have been introduced in previous releases.
164
165
**Pros of using nightly releases:**
166
527
-- Get the latest features and bugfixes as soon as they're available
167
+- Get the latest features and bug fixes as soon as they're available
168
- Receive security-related fixes immediately
169
- Use stable, fully-tested code that's always improving
170
- Leverage the same Netdata experience our community is using
171
172
**Pros of using stable releases:**
173
534
-- Protect yourself from the rare instance when major bugs slip through our testing and negatively affect a Netdata installation
174
+- Protect yourself from the rare instance when major bugs slip through our testing and negatively affect a Netdata
175
+ installation
176
- Retain more control over the Netdata version you use
536
-
537
-## Offline installations
538
-
539
-You can install Netdata on systems without internet access, but you need to take
540
-a few extra steps to make it work.
541
-
542
-By default, the `kickstart.sh` and `kickstart-static64.sh` download Netdata
543
-assets, like the precompiled binary and a few dependencies, using the system's
544
-internet connection, but you can also supply these files from the local filesystem.
545
-
546
-First, download the required files. If you're using `kickstart.sh`, you need the
547
-Netdata tarball, the checksums, the go.d plugin binary, and the go.d plugin
548
-configuration. If you're using `kickstart-static64.sh`, you need only the
549
-Netdata tarball and checksums.
550
-
551
-Download the files you need to a system of yours that's connected to the
552
-internet. You can use the commands below, or visit the [latest Netdata release
553
-page](https://github.com/netdata/netdata/releases/latest) and [latest go.d
554
-plugin release page](https://github.com/netdata/go.d.plugin/releases) to
555
-download the required files manually.
556
-
557
-#### kickstart.sh
558
-```bash
559
-cd /tmp
560
-
561
-curl -s https://my-netdata.io/kickstart.sh > kickstart.sh
562
-
563
-# Netdata tarball
564
-curl -s https://api.github.com/repos/netdata/netdata/releases/latest | grep "browser_download_url.*tar.gz" | cut -d '"' -f 4 | wget -qi -
565
-
566
-# Netdata checksums
567
-curl -s https://api.github.com/repos/netdata/netdata/releases/latest | grep "browser_download_url.*txt" | cut -d '"' -f 4 | wget -qi -
568
-
569
-# Netdata dependency handling script
570
-curl -s https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh | wget -qi -
571
-
572
-# go.d plugin
573
-# For binaries for OS types and architectures not listed on [go.d releases](https://github.com/netdata/go.d.plugin/releases/latest), kindly open a github issue and we will do our best to serve your request
574
-export OS=$(uname -s | tr '[:upper:]' '[:lower:]') ARCH=$(uname -m | sed -e 's/i386/386/g' -e 's/i686/386/g' -e 's/x86_64/amd64/g' -e 's/aarch64/arm64/g' -e 's/armv64/arm64/g' -e 's/armv6l/arm/g' -e 's/armv7l/arm/g' -e 's/armv5tel/arm/g') && curl -s https://api.github.com/repos/netdata/go.d.plugin/releases/latest | grep "browser_download_url.*${OS}-${ARCH}.tar.gz" | cut -d '"' -f 4 | wget -qi -
575
-
576
-# go.d configuration
577
-curl -s https://api.github.com/repos/netdata/go.d.plugin/releases/latest | grep "browser_download_url.*config.tar.gz" | cut -d '"' -f 4 | wget -qi -
578
-```
579
-
580
-#### kickstart-static64.sh
581
-```bash
582
-cd /tmp
583
-
584
-curl -s https://my-netdata.io/kickstart-static64.sh > kickstart-static64.sh
585
-
586
-# Netdata static64 tarball
587
-curl -s https://api.github.com/repos/netdata/netdata/releases/latest | grep "browser_download_url.*gz.run" | cut -d '"' -f 4 | wget -qi -
588
-
589
-# Netdata checksums
590
-curl -s https://api.github.com/repos/netdata/netdata/releases/latest | grep "browser_download_url.*txt" | cut -d '"' -f 4 | wget -qi -
591
-```
592
-
593
-Move downloaded files to the `/tmp` directory on the offline system in whichever way
594
-your defined policy allows (if any).
595
-
596
-Now you can run either the `kickstart.sh` or `kickstart-static64.sh` scripts
597
-using the `--local-files` option. This option requires you to specify
598
-the location and names of the files you just downloaded.
599
-
600
-!!! note When using `--local-files`, the `kickstart.sh` or
601
- `kickstart-static64.sh` scripts won't download any Netdata assets from the
602
- internet. But, you may still need a connection to install dependencies using
603
- your system's package manager. The scripts will warn you if your system
604
- doesn't have all the dependencies.
605
-
606
-```bash
607
-# kickstart.sh
608
-bash kickstart.sh --local-files /tmp/netdata-version-number-here.tar.gz /tmp/sha256sums.txt /tmp/go.d-binary-filename.tar.gz /tmp/config.tar.gz /tmp/install-required-packages.sh
609
-
610
-# kickstart-static64.sh
611
-bash kickstart-static64.sh --local-files /tmp/netdata-version-number-here.gz.run /tmp/sha256sums.txt
612
-```
613
-
614
-Now that you're finished with your offline installation, you can move on to our [getting started
615
-guide](../../docs/getting-started.md) for a quick overview of configuring Netdata, enabling plugins, and controlling
616
-Netdata's daemon. Or, get the full guided tour of Netdata's capabilities with our [step-by-step
617
-tutorial](../../docs/step-by-step/step-00.md)!
618
-
619
-## Automatic updates
620
-
621
-By default, Netdata's installation scripts enable automatic updates for both nightly and stable release channels.
622
-
623
-If you would prefer to manually update your Netdata agent, you can disable automatic updates by using the `--no-updates` option when you install or update Netdata using the [one-line installation script](#one-line-installation).
624
-
625
-```bash
626
-# kickstart.sh
627
-bash <(curl -Ss https://my-netdata.io/kickstart.sh) --no-updates
628
-
629
-# kickstart-static64.sh
630
-bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) --no-updates
631
-```
632
-
633
-With automatic updates disabled, you can choose exactly when and how you [update Netdata](UPDATE.md).
634
-
635
-[](<>)