Updates README
parent
69eb72af8e
commit
286d3f15d3
16
README.md
16
README.md
|
@ -14,7 +14,13 @@ This project is licensed under the GNU General Public License version 2 (GPL-2.0
|
||||||
|
|
||||||
## installation
|
## installation
|
||||||
|
|
||||||
Clone the git repo.
|
Clone the git repo. Either run the agent with Goor build it and run the executable.
|
||||||
|
|
||||||
|
Run it (mainly used for tests):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go run main.go
|
||||||
|
```
|
||||||
|
|
||||||
Build the agent:
|
Build the agent:
|
||||||
|
|
||||||
|
@ -26,6 +32,8 @@ go build -o jilo-agent main.go
|
||||||
|
|
||||||
The config file is "jilo-agent.json", in the same folder as the "jilo-agent" binary.
|
The config file is "jilo-agent.json", in the same folder as the "jilo-agent" binary.
|
||||||
|
|
||||||
|
You can run the agent without a config file - then default vales are used.
|
||||||
|
|
||||||
## usage
|
## usage
|
||||||
|
|
||||||
Run the agent
|
Run the agent
|
||||||
|
@ -34,10 +42,10 @@ Run the agent
|
||||||
./jilo-agent
|
./jilo-agent
|
||||||
```
|
```
|
||||||
|
|
||||||
Send queries to its port (by default 8080, configurable in jilo-agent.json):
|
Send queries to its port (by default 8081, in order to avoid 80, 8080, 8888; configurable in jilo-agent.json):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -s http://localhost:8080/nginx
|
curl -s http://localhost:8081/nginx
|
||||||
curl -s http://localhost:8080/jicofo
|
curl -s http://localhost:8081/jicofo
|
||||||
etc...
|
etc...
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue