Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pambrose committed Apr 26, 2017
1 parent ffbcbb3 commit 4b3026c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Agents connect to a Proxy and register the paths for which they will provide dat

## CLI Usage

Download the proxy and agent uber-jars from [here](https://github.com/pambrose/prometheus-proxy/releases).

Start a proxy with:

```bash
Expand All @@ -29,8 +31,8 @@ $ java -jar prometheus-agent.jar --config https://raw.githubusercontent.com/pamb
```

If prometheus-proxy were running on a machine named *proxy.local* and the
prometheus-agent had this `agent.pathConfigs` value in the [myapps.conf](https://raw.githubusercontent.com/pambrose/prometheus-proxy/master/examples/myapps.conf)
config file:
`agent.pathConfigs` value in the [myapps.conf](https://raw.githubusercontent.com/pambrose/prometheus-proxy/master/examples/myapps.conf)
config file had these values:

```hocon
agent {
Expand All @@ -55,6 +57,7 @@ agent {
```

then the *prometheus.yml* scrape_config would target the three apps at:

* http://proxy.local:8080/myapp1_metrics
* http://proxy.local:8080/myapp2_metrics
* http://proxy.local:8080/myapp3_metrics
Expand Down

0 comments on commit 4b3026c

Please sign in to comment.