Skip to content

Commit ed41fbb

Browse files
committed
Add barebones grafana setup instructions
1 parent 9226ed0 commit ed41fbb

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

ControlLaptop/Examples/LogToInflux/README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Example - Logging to Influx
22

3-
Example of logging to influx using python, as well as how to setup influxdb. Drawn from http://richardn.ca/2019/01/04/installing-influxdb-on-windows/
3+
Example of logging to influx using python, as well as how to setup influxdb and grafana. Drawn from http://richardn.ca/2019/01/04/installing-influxdb-on-windows/
4+
5+
46

57
## Installing nssm
68
nssm is the "non-sucking service manager", it is a valuable tool for creating, configuring, and deploying services on windows. It is simply a .exe that is downloaded and then added to the PATH before it can be used from the CLI (Command line interface).
@@ -10,8 +12,10 @@ nssm is the "non-sucking service manager", it is a valuable tool for creating, c
1012
* Make a directory in program files called nssm and move the nssm.exe there
1113
* Add C:/Program Files/nssm to your path
1214
* start -> "Edit system environment variables" -> environment variables path -> edit -> new -> path-to-nssm
15+
1316
* In console, enter `nssm` to ensure it is installed correctly
14-
___
17+
18+
1519
## Setting Up Influxdb
1620

1721
### Windows
@@ -45,3 +49,19 @@ And you should see something like:
4549
```
4650
{"error":"missing required parameter \"q\""}
4751
```
52+
You can now enter the influx interactive shell by navigating to the influxdb folder containing `influx.exe` and running it (enter `influx` in console or double click the exe)
53+
54+
---
55+
56+
## Setting Up Grafana
57+
### Windows
58+
This pretty much describes everything you need to know in a concise and visual form, no need to reinvent the wheel.
59+
<https://devconnected.com/how-to-install-grafana-on-windows-8-10/>
60+
61+
Note: It is not necessary to use a custom .ini, the defaults are fine for most use cases! There will be a config file for the production grafana server that we will use, however for personal dev environments the defaults are fine.
62+
63+
After getting grafana running as a service, you can login and import the dashboard by uploading the ` dashboard.json` file in this directory.
64+
65+
66+
67+

0 commit comments

Comments
 (0)