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: README.md
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,29 +27,53 @@ If in doubt, please [open an issue](https://gitlab.com/grafolean/grafolean-colle
27
27
28
28
# Install (docker / docker-compose)
29
29
30
-
This is the easiest and currently the only officially supported way. However other installation methods should be straightforward by studying `Dockerfile`.
30
+
Docker is the easiest and currently the only officially supported way. Note that while instructions might (with possibly some modifications) work on other operating systems, Linux is assumed.
31
31
32
32
1) log in to Grafolean service (either https://grafolean.com/ or self-hosted), select an appropriate `Account` and create a new `Bot`. Make sure that selected protocol is `SNMP`. Copy the bot token.
33
-
2) save [docker-compose.yml](https://gitlab.com/grafolean/grafolean-collector-snmp/raw/master/docker-compose.yml) to a local file
33
+
34
+
2) save [docker-compose.yml](https://gitlab.com/grafolean/grafolean-collector-snmp/raw/master/docker-compose.yml) to a local file:
- mandatory: `BACKEND_URL` (set to the URL of Grafolean backend, for example `https://grafolean.com/api`),
36
43
- mandatory: `BOT_TOKEN` (set to the bot token from step 1),
37
44
- optional: `JOBS_REFRESH_INTERVAL` (interval in seconds at which the jobs definitions will be updated)
38
45
Alternatively, you can also copy `.env.example` to `.env` and change settings there (leaving `docker-compose.yml` in original state).
46
+
39
47
4) run: `docker-compose up -d`
40
48
49
+
If you get no error, congratulations! Everything else is done from within the Grafolean UI. You can however check the status of container as usually by running `docker ps` and investigate logs by running `docker logs -f grafolean-collector-snmp`.
50
+
51
+
In case of error make sure that the user is allowed to run `docker` (that is, that it is in `docker` group) by running `docker ps`. Alternatively, container can be run using `sudo` (line 4 then reads `sudo docker-compose up -d`).
If you wish to build the Docker image locally (for debugging or for development purposes), you can specify a custom docker-compose YAML file:
71
+
```
72
+
docker-compose -f docker-compose.dev.yml build
73
+
```
74
+
75
+
In this case `.env.example` can be copied to `.env` and all settings can be altered there, which helps us avoid commiting settings to the repository.
76
+
53
77
# Development
54
78
55
79
## Contributing
@@ -58,4 +82,4 @@ To contribute to this repository, CLA needs to be signed. Please open an issue a
58
82
59
83
## Issues
60
84
61
-
If you encounter any problems installing or running the software, please let us know in the [issues](https://gitlab.com/grafolean/grafolean-collector-snmp/issues). If possible, please make sure to describe the issue in a way that will allow us to reproduce it.
85
+
If you encounter any problems installing or running the software, please let us know in the [issues](https://gitlab.com/grafolean/grafolean-collector-snmp/issues). Please make an effort when describing the issue. If we can reproduce the problem, we can also fix it much faster.
0 commit comments