Skip to content

Commit

Permalink
1.4.3
Browse files Browse the repository at this point in the history
* Cleanup Agent
  • Loading branch information
pambrose authored Nov 18, 2019
1 parent e71d304 commit d2c5ed8
Show file tree
Hide file tree
Showing 60 changed files with 3,214 additions and 3,704 deletions.
4 changes: 2 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ engines:

ratings:
paths:
- "**.java"
- "**.java"

exclude_patterns:
- "src/main/java/io/prometheus/common/ConfigVals.java"
- "src/main/java/io/prometheus/common/ConfigVals.java"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=1.4.2
VERSION=1.4.3

default: compile

Expand Down
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,42 +97,40 @@ scrape_configs:
The docker images are available via:
```bash
docker pull pambrose/prometheus-proxy:1.4.2
docker pull pambrose/prometheus-agent:1.4.2
docker pull pambrose/prometheus-proxy:1.4.3
docker pull pambrose/prometheus-agent:1.4.3
```

Start the proxy and an agent in separate shells on your local machine:

```bash
docker run --rm -p 8082:8082 -p 8092:8092 -p 50051:50051 -p 8080:8080 \
-e HOSTNAME=${HOSTNAME} \
-e ADMIN_ENABLED=true \
-e METRICS_ENABLED=true \
pambrose/prometheus-proxy:1.4.2
pambrose/prometheus-proxy:1.4.3
```

```bash
docker run --rm -p 8083:8083 -p 8093:8093 \
-e HOSTNAME=${HOSTNAME} \
-e AGENT_CONFIG='https://raw.githubusercontent.com/pambrose/prometheus-proxy/master/examples/simple.conf' \
pambrose/prometheus-agent:1.4.2
pambrose/prometheus-agent:1.4.3
```

If you want to be able to externalize your `agent` config file on your local machine (or VM) file system (instead of the above HTTP served config file), you'll need to add the Docker `volume` definition to the command:

```bash
docker run --rm -p 8083:8083 -p 8093:8093 \
-v ${PWD}/prom-agent.conf:/prom-agent.conf \
-e HOSTNAME=${HOSTNAME} \
-e AGENT_CONFIG=/prom-agent.conf \
pambrose/prometheus-agent:1.4.2
pambrose/prometheus-agent:1.4.3
```

The above assumes that you have the file `prom-agent.conf` in the current directory from which you're running the `docker` command.

Using the config file [simple.conf](https://raw.githubusercontent.com/pambrose/prometheus-proxy/master/examples/simple.conf),
the proxy and the agent metrics would be available from the proxy on *localhost* at:
* http://localohost:8082/proxy_metrics
* http://localohost:8083/agent_metrics
* http://localhost:8082/proxy_metrics
* http://localhost:8083/agent_metrics

## Configuration

Expand Down
2 changes: 1 addition & 1 deletion bin/docker-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
docker run --rm -p 8083:8083 -p 8093:8093 \
-e HOSTNAME=${HOSTNAME} \
-e AGENT_CONFIG='https://raw.githubusercontent.com/pambrose/prometheus-proxy/master/examples/simple.conf' \
pambrose/prometheus-agent:1.4.2
pambrose/prometheus-agent:1.4.3
2 changes: 1 addition & 1 deletion bin/docker-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
docker run --rm -p 8082:8082 -p 8092:8092 -p 50051:50051 -p 8080:8080 \
-e HOSTNAME=${HOSTNAME} \
-e PROXY_CONFIG='https://raw.githubusercontent.com/pambrose/prometheus-proxy/master/examples/simple.conf' \
pambrose/prometheus-proxy:1.4.2
pambrose/prometheus-proxy:1.4.3
Loading

0 comments on commit d2c5ed8

Please sign in to comment.