You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## What is Netdata data source plugin for Grafana?
10
10
@@ -23,9 +23,9 @@ With this data source plugin we expose the troubleshooting capabilities of Netda
23
23
24
24
Netdata’s data source plugin connects directly to our Netdata Cloud API’s, meaning that you’ll need to have your nodes (hosts) connected to [Netdata Cloud](https://app.netdata.cloud/?utm_source=grafana&utm_content=data_source_plugin) in order to be able to have them exposed on our plugin. For security purposes you will also need an API token for authentication (which you can get from within your Netdata profile).
25
25
26
-
Note: If you don't have an account [sign-up](https://app.netdata.cloud/?utm_source=grafana&utm_content=data_source_plugin) for free to get one!
26
+
Note: If you don't have an account [sign-up](https://app.netdata.cloud/?utm_source=grafana&utm_content=data_source_plugin) for free to get one!
27
27
28
-
> Netdata Agent will need to be installed and running on your server, VM and/or cluster, so that it can start collecting all the relevant metrics you have from the server
28
+
> Netdata Agent will need to be installed and running on your server, VM and/or cluster, so that it can start collecting all the relevant metrics you have from the server
29
29
and applications running on it. More info at https://learn.netdata.cloud/docs/get-started.
30
30
31
31
### 2. Ensure you have an API Token for authentication purposes.
@@ -44,6 +44,130 @@ Once you have added your API token to Netdata data source plugin you’re ready
To start using the Netdata data source plugin on your Grafana environment, local or Cloud, you need to install the plugin manually - it currently isn't signed. Here are some tips to get through this depending on your setup:
50
+
* Docker
51
+
* Linux (local)
52
+
* Windows (local)
53
+
* Building the plugin locally
54
+
55
+
### Docker
56
+
57
+
#### Pre-buit script - setup-demo-environment
58
+
We provide you a script `setup-demo-environment.sh` that will help you setting this up real fast.
59
+
To start the container with the Netdata datasource plugin already installed you just need to:
60
+
> `setup-demo-environment.sh run`
61
+
62
+
To remove container:
63
+
> `setup-demo-environment.sh remove`
64
+
65
+
This script will:
66
+
1. Spin up a grafana container without starting grafana itself
67
+
1. Retrieve the latest available release of the Netdata datasource plugin
68
+
1. Install the Netdata datasource plugin in /var/lib/grafana/plugins
69
+
1. Start grafana
70
+
71
+
#### Manual step-by-step
72
+
73
+
1. Setup your grafana docker container with the the permissions to load netdata plugin as unsinged
74
+
75
+
`docker run -d --env GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=netdata-datasource --name=grafana grafana/grafana`
76
+
77
+
2. Ensure you have the desired version of the plugin you want to install, get it from github releases
3. Grafana plugins, by default, should be under /var/lib/grafana/plugins. Create a folder for netdata inside the container. Enter in an interactive session
84
+
85
+
`docker exec -ti grafana bash`
86
+
`mkdir /var/lib/grafana/plugins/netdata`
87
+
88
+
4. Copy the contents of the Netdata data source plugin to the new plugin folder created on step 2
0 commit comments