1
+# Getting started guide
2
+
3
+Thanks for trying Netdata! In this guide, we'll quickly walk you through the first steps you should take after getting
4
+Netdata installed.
5
+
6
+Netdata can collect thousands of metrics in real-time without any configuration, but there are some valuable things to
7
+know to get the most of out Netdata based on your needs.
8
+
9
+> If you haven't installed Netdata yet, visit the [installation instructions](../packaging/installer) for details,
10
+> including our one-liner script, which automatically installs Netdata on almost all Linux distributions.
11
+
12
+## Access the dashboard
13
+
14
+Open up your web browser of choice and navigate to `http://YOUR-HOST:19999`. Welcome to Netdata!
15
+
16
+
18
+
19
+**What's next?**:
20
+
21
+- Read more about the [standard Netdata dashboard](../web/gui/).
22
+- Learn all the specifics of [using charts](../web/README.md#using-charts) or the differences between [charts,
23
+ context, and families](../web/README.md#charts-contexts-families).
24
+
25
+## Configuration basics
26
+
27
+Netdata primarily uses the `netdata.conf` file for custom configurations.
28
+
29
+On most systems, you can find that file at `/etc/netdata/netdata.conf`.
30
+
31
+> Some operating systems will place your `netdata.conf` at `/opt/netdata/etc/netdata/netdata.conf`, so check there if
32
+> you find nothing at `/etc/netdata/netdata.conf`.
33
+
34
+The `netdata.conf` file is broken up into various sections, such as `[global]`, `[web]`, `[registry]`, and more. By
35
+default, most options are commented, so you'll have to uncomment them (remove the `#`) for Netdata to recognize your
36
+change.
37
+
38
+Once you save your changes, [restart Netdata](#start-stop-and-restart-netdata) to load your new configuration.
39
+
40
+**What's next?**:
41
+
42
+- [Change how long Netdata stores metrics](#change-how-long-netdata-stores-metrics) by either increasing the `history`
43
+ option or switching to the database engine.
44
+- Move Netdata's dashboard to a [different port](https://docs.netdata.cloud/web/server/) or enable TLS/HTTPS
45
+ encryption.
46
+- See all the `netdata.conf` options in our [daemon configuration documentation](../daemon/config/).
47
+- Run your own [registry](../registry/README.md#run-your-own-registry).
48
+
49
+## Collect data from more sources
50
+
51
+When Netdata _starts_, it auto-detects dozens of **data sources**, such as database servers, web servers, and more. To
52
+auto-detect and collect metrics from a service or application you just installed, you need to [restart
53
+Netdata](#start-stop-and-restart-netdata).
54
+
55
+> There is one exception: When Netdata is running on the host (as in not in a container itself), it will always
56
+> auto-detect containers and VMs.
57
+
58
+However, auto-detection only works if you installed the source using its standard installation procedure. If Netdata
59
+isn't collecting metrics after a restart, your source probably isn't configured correctly. Look at the [external plugin
60
+documentation](../collectors/plugins.d/) to find the appropriate module for your source. Those pages will contain more
61
+information about how to configure your source for auto-detection.
62
+
63
+Some modules, like `chrony`, are disabled by default and must be enabled manually for auto-detection to work.
64
+
65
+Once Netdata detects a valid source of data, it will continue trying to collect data from it. For example, if
66
+Netdata is collecting data from an Nginx web server, and you shut Nginx down, Netdata will collect new data as soon as
67
+you start the web server back up—no restart necessary.
68
+
69
+### Configuring plugins
70
+
71
+Even if Netdata auto-detects your service/application, you might want to configure what, or how often, Netdata is
72
+collecting data.
73
+
74
+Netdata uses **internal** and **external** plugins to collect data. Internal plugins run within the Netdata dæmon, while
75
+external plugins are independent processes that send metrics to Netdata over pipes. There are also plugin
76
+**orchestrators**, which are external plugins with one or more data collection **modules**.
77
+
78
+You can configure both internal and external plugins, along with the individual modules. There are many ways to do so:
79
+
80
+- In `netdata.conf`, `[plugins]` section: Enable or disable internal or external plugins with `yes` or `no`.
81
+- In `netdata.conf`, `[plugin:XXX]` sections: Each plugin has a section for changing collection frequency or passing
82
+ options to the plugin.
83
+- In `.conf` files for each external plugin: For example, at `/etc/netdata/python.d.conf`.
84
+- In `.conf` files for each module : For example, at `/etc/netdata/python.d/nginx.conf`.
85
+
86
+It's complex, so let's walk through an example of the various `.conf` files responsible for collecting data from an
87
+Nginx web server using the `nginx` module and the `python.d` plugin orchestrator.
88
+
89
+First, you can enable or disable the `python.d` plugin entirely in `netdata.conf`.
90
+
91
+```conf
92
+[plugins]
93
+ # Enabled
94
+ python.d = yes
95
+ # Disabled
96
+ python.d = no
97
+```
98
+
99
+You can also configure the entire `python.d` external plugin via the `[plugin:python.d]` section in `netdata.conf`.
100
+Here, you can change how often Netdata uses `python.d` to collect metrics or pass other command options:
101
+
102
+```conf
103
+[plugin:python.d]
104
+ update every = 1
105
+ command options =
106
+```
107
+
108
+The `python.d` plugin has a separate configuration file at `/etc/netdata/python.d.conf` for enabling and disabling
109
+modules. You can use the `edit-config` script to edit the file, or open it with your text editor of choice:
110
+
111
+```bash
112
+sudo /etc/netdata/edit-config python.d.conf
113
+```
114
+
115
+Finally, the `nginx` module has a configuration file called `nginx.conf` in the `python.d` folder. Again, use
116
+`edit-config` or your editor of choice:
117
+
118
+```bash
119
+sudo /etc/netdata/edit-config python.d/nginx.conf
120
+```
121
+
122
+In the `nginx.conf` file, you'll find additional options. The default works in most situations, but you may need to make
123
+changes based on your particular Nginx setup.
124
+
125
+**What's next?**:
126
+
127
+- Look at the [full list of data collection modules](Add-more-charts-to-netdata.md#available-data-collection-modules)
128
+ to configure your sources for auto-detection and monitoring.
129
+- Improve the [performance](Performance.md) of Netdata on low-memory systems.
130
+- Configure `systemd` to expose [systemd services
131
+ utilization](../collectors/cgroups.plugin/README.md#monitoring-systemd-services) metrics automatically.
132
+- [Reconfigure individual charts](../daemon/config/README.md#per-chart-configuration) in `netdata.conf`.
133
+
134
+## Health monitoring and alarms
135
+
136
+Netdata comes with hundreds of health monitoring alarms for detecting anomalies on production servers. If you're running
137
+Netdata on a workstation, you might want to disable Netdata's alarms.
138
+
139
+Edit your `/etc/netdata/netdata.conf` file and set the following:
140
+
141
+```conf
142
+[health]
143
+ enabled = no
144
+```
145
+
146
+If you want to keep health monitoring enabled, but turn email notifications off, edit your `health_alarm_notify.conf`
147
+file with `edit-config`, or with your the text editor of your choice:
148
+
149
+```bash
150
+sudo /etc/netdata/edit-config health_alarm_notify.conf
151
+```
152
+
153
+Find the `SEND_EMAIL="YES"` line and change it to `SEND_EMAIL="NO"`.
154
+
155
+**What's next?**:
156
+
157
+- Write your own health alarm using the [examples](../health/README.md#examples).
158
+- Add a new notification method, like [Slack](../health/notifications/slack/).
159
+
160
+## Change how long Netdata stores metrics
161
+
162
+By default, Netdata stores 1 hour of historical metrics and uses about 25MB of RAM.
163
+
164
+If that's not enough for you, Netdata is quite adaptable to long-term storage of your system's metrics.
165
+
166
+There are two quick ways to increase the depth of historical metrics: increase the `history` value for the round-robin
167
+that's enabled by default, or switch to the database engine.
168
+
169
+We have a tutorial that walks you through both options: [**Changing how long Netdata stores
170
+metrics**](tutorials/longer-metrics-storage.md).
171
+
172
+**What's next?**:
173
+
174
+- Learn more about the [memory requirements for the database engine](../database/engine/README.md#memory-requirements)
175
+ to understand how much RAM/disk space you should commit to storing historical metrics.
176
+- Read up on the memory requirements of the [round-robin database](../database/), or figure out whether your system
177
+ has KSM enabled, which can [reduce the default database's memory usage](../database/README.md#ksm) by about 60%.
178
+
179
+## Monitoring multiple systems with Netdata
180
+
181
+If you have Netdata installed on multiple systems, you can have them all appear in the **My nodes** menu at the top-left
182
+corner of the dashboard.
183
+
184
+To show all your servers in that menu, you need to [register for or sign in](netdata-cloud/signing-in.md) to [Netdata
185
+Cloud](netdata-cloud/) from each system. Each system will then appear in the **My nodes** menu, which you can use to
186
+navigate between your systems quickly.
187
+
188
+
190
+
191
+Whenever you pan, zoom, highlight, select, or pause a chart, Netdata will synchronize those settings with any other
192
+agent you visit via the My nodes menu. Even your scroll position is synchronized, so you'll see the same charts and
193
+respective data for easy comparisons or root cause analysis.
194
+
195
+You can now seamlessly track performance anomalies across your entire infrastructure!
196
+
197
+**What's next?**:
198
+
199
+- Read up on how the [Netdata Cloud registry works](../registry/), and what kind of data it stores and sends to your
200
+ web browser.
201
+- Familiarize yourself with the [Nodes View](netdata-cloud/nodes-view.md)
202
+
203
+## Start, stop, and restart Netdata
204
+
205
+When you install Netdata, it's configured to start at boot, and stop and restart/shutdown. You shouldn't need to start
206
+or stop Netdata manually, but you will probably need to restart Netdata at some point.
207
+
208
+- To **start** Netdata, open a terminal and run `service netdata start`.
209
+- To **stop** Netdata, run `service netdata stop`.
210
+- To **restart** Netdata, run `service netdata restart`.
211
+
212
+The `service` command is a wrapper script that tries to use your system's preferred method of starting or stopping
213
+Netdata based on your system. But, if either of those commands fails, try using the equivalent commands for `systemd`
214
+and `init.d`:
215
+
216
+- **systemd**: `systemctl start netdata`, `systemctl stop netdata`, `systemctl restart netdata`
217
+- **init.d**: `/etc/init.d/netdata start`, `/etc/init.d/netdata stop`, `/etc/init.d/netdata restart`
218
+
219
+## What's next?
220
+
221
+Even after you've configured `netdata.conf`, tweaked alarms, learned the basics of performance troubleshooting, and
222
+added all your systems to the **My nodes** menu, you've just gotten started with Netdata.
223
+
224
+Take a look at some more advanced features and configurations:
225
+
226
+- Centralize Netdata metrics from many systems with [streaming](../streaming)
227
+- Enable long-term archiving of Netdata metrics via [backends](../backends) to time-series databases.
228
+- Improve security by putting Netdata behind an [Nginx proxy with SSL](Running-behind-nginx.md).
229
+
230
+Or, learn more about how you can contribute to [Netdata core](../CONTRIBUTING.md) or our
231
+[documentation](contributing/contributing-documentation.md)!
232
+
233
+[](<>)