@@ -51,17 +51,17 @@ config file had these values:
51
51
agent {
52
52
pathConfigs: [
53
53
{
54
- name: app1
54
+ name: " app1 name"
55
55
path: app1_metrics
56
56
url: "http://app1.local:9100/metrics"
57
57
},
58
58
{
59
- name: app2
59
+ name: " app2 name"
60
60
path: app2_metrics
61
61
url: "http://app2.local:9100/metrics"
62
62
},
63
63
{
64
- name: app3
64
+ name: " app3 name"
65
65
path: app3_metrics
66
66
url: "http://app3.local:9100/metrics"
67
67
}
@@ -97,8 +97,8 @@ scrape_configs:
97
97
98
98
The docker images are available via:
99
99
` ` ` bash
100
- docker pull pambrose/prometheus-proxy:1.4.3
101
- docker pull pambrose/prometheus-agent:1.4.3
100
+ docker pull pambrose/prometheus-proxy:1.4.4
101
+ docker pull pambrose/prometheus-agent:1.4.4
102
102
```
103
103
104
104
Start the proxy and an agent in separate shells on your local machine:
@@ -107,13 +107,13 @@ Start the proxy and an agent in separate shells on your local machine:
107
107
docker run --rm -p 8082:8082 -p 8092:8092 -p 50051:50051 -p 8080:8080 \
108
108
-e ADMIN_ENABLED=true \
109
109
-e METRICS_ENABLED=true \
110
- pambrose/prometheus-proxy:1.4.3
110
+ pambrose/prometheus-proxy:1.4.4
111
111
```
112
112
113
113
``` bash
114
114
docker run --rm -p 8083:8083 -p 8093:8093 \
115
115
-e AGENT_CONFIG=' https://raw.githubusercontent.com/pambrose/prometheus-proxy/master/examples/simple.conf' \
116
- pambrose/prometheus-agent:1.4.3
116
+ pambrose/prometheus-agent:1.4.4
117
117
```
118
118
119
119
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:
@@ -122,7 +122,7 @@ If you want to be able to externalize your `agent` config file on your local mac
122
122
docker run --rm -p 8083:8083 -p 8093:8093 \
123
123
-v ${PWD} /prom-agent.conf:/prom-agent.conf \
124
124
-e AGENT_CONFIG=/prom-agent.conf \
125
- pambrose/prometheus-agent:1.4.3
125
+ pambrose/prometheus-agent:1.4.4
126
126
```
127
127
128
128
The above assumes that you have the file ` prom-agent.conf ` in the current directory from which you're running the ` docker ` command.
@@ -147,34 +147,36 @@ The only required argument is an Agent config value, which should have an `agent
147
147
148
148
### Proxy CLI Options
149
149
150
- | Options | Env Var | Property | Default | Description |
151
- | :--------------------| :----------------| :-----------------------| :-------| :---------------------------------------|
152
- | -c --config | PROXY_CONFIG | | | Agent config file or url |
153
- | -p --port | PROXY_PORT | proxy.http.port | 8080 | Proxy listen port |
154
- | -a --agent_port | AGENT_PORT | proxy.agent.port | 50051 | gRPC listen port for Agents |
155
- | -r --admin | ADMIN_ENABLED | proxy.admin.enabled | false | Enable admin servlets |
156
- | -i --admin_port | ADMIN_PORT | proxy.admin.port | 8092 | Admin servlets port |
157
- | -e --metrics | METRICS_ENABLED | proxy.metrics.enabled | false | Enable proxy metrics |
158
- | -m --metrics_port | METRICS_PORT | proxy.metrics.port | 8082 | Proxy metrics listen port |
159
- | -v --version | | | | Print version info and exit |
160
- | -u --usage | | | | Print usage message and exit |
161
- | -D | | | | Dynamic property assignment |
150
+ | Options | Env Var | Property | Default | Description |
151
+ | :--------------------| :----------------| :---------------------------| :-------| :---------------------------------------|
152
+ | -c --config | PROXY_CONFIG | | | Agent config file or url |
153
+ | -p --port | PROXY_PORT | proxy.http.port | 8080 | Proxy listen port |
154
+ | -a --agent_port | AGENT_PORT | proxy.agent.port | 50051 | gRPC listen port for Agents |
155
+ | -r --admin | ADMIN_ENABLED | proxy.admin.enabled | false | Enable admin servlets |
156
+ | -i --admin_port | ADMIN_PORT | proxy.admin.port | 8092 | Admin servlets port |
157
+ | -e --metrics | METRICS_ENABLED | proxy.metrics.enabled | false | Enable proxy metrics |
158
+ | -m --metrics_port | METRICS_PORT | proxy.metrics.port | 8082 | Proxy metrics listen port |
159
+ | -b --debug | DEBUG_ENABLED | proxy.metrics.debugEnabled | false | Enable proxy debug servlet on admin port|
160
+ | -v --version | | | | Print version info and exit |
161
+ | -u --usage | | | | Print usage message and exit |
162
+ | -D | | | | Dynamic property assignment |
162
163
163
164
164
165
### Agent CLI Options
165
166
166
- | Options | Env Var | Property | Default | Description |
167
- | :--------------------| :----------------| :-----------------------| :-------| :---------------------------------------|
168
- | -c --config | AGENT_CONFIG | | | Agent config file or url (required) |
169
- | -p --proxy | PROXY_HOSTNAME | agent.proxy.hostname | | Proxy hostname (can include : port ) |
170
- | -n --name | AGENT_NAME | agent.name | | Agent name |
171
- | -r --admin | ADMIN_ENABLED | agent.admin.enabled | false | Enable admin servlets |
172
- | -i --admin_port | ADMIN_PORT | agent.admin.port | 8093 | Admin servlets port |
173
- | -e --metrics | METRICS_ENABLED | agent.metrics.enabled | false | Enable agent metrics |
174
- | -m --metrics_port | METRICS_PORT | agent.metrics.port | 8083 | Agent metrics listen port |
175
- | -v --version | | | | Print version info and exit |
176
- | -u --usage | | | | Print usage message and exit |
177
- | -D | | | | Dynamic property assignment |
167
+ | Options | Env Var | Property | Default | Description |
168
+ | :--------------------| :----------------| :---------------------------| :-------| :---------------------------------------|
169
+ | -c --config | AGENT_CONFIG | | | Agent config file or url (required) |
170
+ | -p --proxy | PROXY_HOSTNAME | agent.proxy.hostname | | Proxy hostname (can include : port ) |
171
+ | -n --name | AGENT_NAME | agent.name | | Agent name |
172
+ | -r --admin | ADMIN_ENABLED | agent.admin.enabled | false | Enable admin servlets |
173
+ | -i --admin_port | ADMIN_PORT | agent.admin.port | 8093 | Admin servlets port |
174
+ | -e --metrics | METRICS_ENABLED | agent.metrics.enabled | false | Enable agent metrics |
175
+ | -m --metrics_port | METRICS_PORT | agent.metrics.port | 8083 | Agent metrics listen port |
176
+ | -b --debug | DEBUG_ENABLED | agent.metrics.debugEnabled | false | Enable proxy debug servlet on admin port|
177
+ | -v --version | | | | Print version info and exit |
178
+ | -u --usage | | | | Print usage message and exit |
179
+ | -D | | | | Dynamic property assignment |
178
180
179
181
Misc notes:
180
182
* If you want to customize the logging, include the java arg ` -Dlogback.configurationFile=/path/to/logback.xml `
@@ -186,14 +188,21 @@ Misc notes:
186
188
187
189
### Admin Servlets
188
190
189
- Three admin servlets are available when the ` proxy. admin.enabled ` or ` agent.admin.enabled ` properties are enabled:
191
+ These admin servlets are available when the admin servlet is enabled:
190
192
* /ping
191
193
* /threaddump
192
194
* /healthcheck
193
195
* /version
194
196
197
+ The admin servlets can be enabled with the `` ADMIN_ENABLED `` environment var, the `` --admin `` CLI option, or with the
198
+ ` proxy.admin.enabled ` and ` agent.admin.enabled ` properties.
199
+
200
+ The debug servlet can be enabled with `` DEBUG_ENABLED `` environment var, `` --debug `` CLI option , or with the
201
+ proxy.admin.debugEnabled` and ` agent.admin.debugEnabled` properties. The debug servlet requires that the
202
+ admin servlets are enabled. The debug servlet is at: /debug on the admin port.
203
+
195
204
Descriptions of the servlets are [ here] ( http://metrics.dropwizard.io/3.2.2/manual/servlets.html ) .
196
- The path names can be changed in the configuration file. To disable an admin servlet, assign its path to "".
205
+ The path names can be changed in the configuration file. To disable an admin servlet, assign its property path to "".
197
206
198
207
## Grafana
199
208
0 commit comments