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
Copy file name to clipboardExpand all lines: ControlLaptop/Examples/LogToInflux/README.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Example - Logging to Influx
2
2
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
+
4
6
5
7
## Installing nssm
6
8
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
10
12
* Make a directory in program files called nssm and move the nssm.exe there
11
13
* Add C:/Program Files/nssm to your path
12
14
* start -> "Edit system environment variables" -> environment variables path -> edit -> new -> path-to-nssm
15
+
13
16
* In console, enter `nssm` to ensure it is installed correctly
14
-
___
17
+
18
+
15
19
## Setting Up Influxdb
16
20
17
21
### Windows
@@ -45,3 +49,19 @@ And you should see something like:
45
49
```
46
50
{"error":"missing required parameter \"q\""}
47
51
```
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.
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.
0 commit comments