Added interactive kickstart scripts where possible (#12098)
Tina Luedtke committed
Feb 8, 2022 at 00:49 UTC
29e4ad3b6529bbe7a5c76b2fd943456edd5363a6
7 files changed
+22
-35
docs/guides/export/export-netdata-metrics-graphite.md
+2
-3
@@ -3,6 +3,7 @@ title: Export and visualize Netdata metrics in Graphite
3
description: "Use Netdata to collect and export thousands of metrics to Graphite for long-term storage or further analysis."
4
image: /img/seo/guides/export/export-netdata-metrics-graphite.png
5
-->
6
+import { OneLineInstallWget } from '../../../src/components/OneLineInstall/'
7
8
# Export and visualize Netdata metrics in Graphite
9
@@ -31,9 +32,7 @@ Let's get started.
32
If you don't have the Netdata Agent installed already, visit the [installation guide](/packaging/installer/README.md)
33
for the recommended instructions for your system. In most cases, you can use the one-line installation script:
34
34
-```bash
35
-wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
36
-```
35
+<OneLineInstallWget/>
36
37
Once installation finishes, open your browser and navigate to `http://NODE:19999`, replacing `NODE` with the IP address
38
or hostname of your system, to find the Agent dashboard.
docs/guides/monitor/lamp-stack.md
+2
-3
@@ -7,6 +7,7 @@ author_title: "Editorial Director, Technical & Educational Resources"
7
author_img: "/img/authors/joel-hans.jpg"
8
custom_edit_url: https://github.com/netdata/netdata/edit/master/docs/guides/monitor/lamp-stack.md
9
-->
10
+import { OneLineInstallWget } from '../../../src/components/OneLineInstall/'
11
12
# LAMP stack monitoring (Linux, Apache, MySQL, PHP) with Netdata
13
@@ -59,9 +60,7 @@ To follow this tutorial, you need:
60
If you don't have the free, open-source Netdata monitoring agent installed on your node yet, get started with a [single
61
kickstart command](/docs/get-started.mdx):
62
62
-```bash
63
-wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
64
-```
63
+<OneLineInstallWget/>
64
65
The Netdata Agent is now collecting metrics from your node every second. You don't need to jump into the dashboard yet,
66
but if you're curious, open your favorite browser and navigate to `http://localhost:19999` or `http://NODE:19999`,
docs/guides/monitor/pi-hole-raspberry-pi.md
+2
-3
@@ -4,6 +4,7 @@ description: "Monitor Pi-hole metrics, plus Raspberry Pi system metrics, in minu
4
image: /img/seo/guides/monitor/netdata-pi-hole-raspberry-pi.png
5
custom_edit_url: https://github.com/netdata/netdata/edit/master/docs/guides/monitor/pi-hole-raspberry-pi.md
6
-->
7
+import { OneLineInstallWget } from '../../../src/components/OneLineInstall/'
8
9
# Monitor Pi-hole (and a Raspberry Pi) with Netdata
10
@@ -52,9 +53,7 @@ possible historic data.
53
On Raspberry Pis running Raspbian, the best way to install Netdata is our one-line kickstart script. This script asks
54
you to install dependencies, then compiles Netdata from source via [GitHub](https://github.com/netdata/netdata).
55
55
-```bash
56
-wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
57
-```
56
+<OneLineInstallWget/>
57
58
Once installed on a Raspberry Pi 4 with no accessories, Netdata starts collecting roughly 1,500 metrics every second and
59
populates its dashboard with more than 250 charts.
docs/guides/step-by-step/step-00.md
+4
-6
@@ -3,6 +3,7 @@ title: "The step-by-step Netdata guide"
3
date: 2020-03-31
4
custom_edit_url: https://github.com/netdata/netdata/edit/master/docs/guides/step-by-step/step-00.md
5
-->
6
+import { OneLineInstallWget, OneLineInstallCurl } from '../../../src/components/OneLineInstall/'
7
8
# The step-by-step Netdata guide
9
@@ -48,14 +49,11 @@ Netdata. We use this information to better understand how we can improve the Net
49
50
To install Netdata, run the following as your normal user:
51
51
-´´´bash
52
-wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
53
-´´´
52
+<OneLineInstallWget/>
53
+
54
Or, if you have cURL but not wget (such as on macOS):
55
56
-´´´bash
57
-curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh
58
-´´´
56
+<OneLineInstallCurl/>
57
58
59
Once finished, you'll have Netdata installed, and you'll be set up to get _nightly updates_ to get the latest features,
exporting/prometheus/README.md
+4
-7
@@ -2,8 +2,9 @@
2
title: "Export metrics to Prometheus"
3
description: "Export Netdata metrics to Prometheus for archiving and further analysis."
4
custom_edit_url: https://github.com/netdata/netdata/edit/master/exporting/prometheus/README.md
5
-sidebar_label: Using Netdata with Prometheus
5
+sidebar_label: "Using Netdata with Prometheus"
6
-->
7
+import { OneLineInstallWget, OneLineInstallCurl } from '../../src/components/OneLineInstall/'
8
9
# Using Netdata with Prometheus
10
@@ -23,15 +24,11 @@ of installing the latest Netdata and keep it upgrade automatically.
24
25
To install Netdata, run the following as your normal user:
26
26
-```bash
27
-wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
28
-```
27
+<OneLineInstallWget/>
28
29
Or, if you have cURL but not wget (such as on macOS):
30
32
-```bash
33
-curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh
34
-```
31
+<OneLineInstallCurl/>
32
33
At this point we should have Netdata listening on port 19999. Attempt to take your browser here:
34
packaging/installer/README.md
+5
-7
@@ -3,7 +3,9 @@ title: "Installation guide"
3
custom_edit_url: https://github.com/netdata/netdata/edit/master/packaging/installer/README.md
4
-->
5
6
-import { Install, InstallBox } from '../../../src/components/Install/'
6
+import { Install, InstallBox } from '../../src/components/Install/'
7
+
8
+import { OneLineInstallWget, OneLineInstallCurl } from '../../src/components/OneLineInstall/'
9
10
# Installation guide
11
@@ -37,15 +39,11 @@ This method is fully automatic on all Linux distributions, including Ubuntu, Deb
39
To install Netdata, including all dependencies required to connect to Netdata Cloud, and get _automatic nightly
40
updates_, run the following as your normal user:
41
40
-```bash
41
-wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
42
-```
42
+<OneLineInstallWget/>
43
44
Or, if you have cURL but not wget (such as on macOS):
45
46
-```bash
47
-curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh
48
-```
46
+<OneLineInstallCurl/>
47
48
This script will preferentially use native DEB/RPM packages if we provide them for your platform.
49
packaging/installer/methods/kickstart.md
+3
-6
@@ -3,6 +3,7 @@ title: "Install Netdata with kickstart.sh"
3
description: "The kickstart.sh script installs Netdata from source, including all dependencies required to connect to Netdata Cloud, with a single command."
4
custom_edit_url: https://github.com/netdata/netdata/edit/master/packaging/installer/methods/kickstart.md
5
-->
6
+import { OneLineInstallWget, OneLineInstallCurl } from '../../../src/components/OneLineInstall/'
7
8
# Install Netdata with kickstart.sh
9
@@ -18,15 +19,11 @@ The kickstart script works on all Linux distributions and macOS environments. By
19
20
To install Netdata, run the following as your normal user:
21
21
-```bash
22
-wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh
23
-```
22
+<OneLineInstallWget/>
23
24
Or, if you have cURL but not wget (such as on macOS):
25
27
-```bash
28
-curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh
29
-```
26
+<OneLineInstallCurl/>
27
28
29
## What does `kickstart.sh` do?