File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
docs/reference/commandline Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1231,10 +1231,14 @@ The `--metrics-addr` option takes a tcp address to serve the metrics API.
1231
1231
This feature is still experimental, therefore, the daemon must be running in experimental
1232
1232
mode for this feature to work.
1233
1233
1234
- To serve the metrics API on localhost:1337 you would specify ` --metrics-addr 127.0.0.1:1337 `
1235
- allowing you to make requests on the API at ` 127.0.0.1:1337 /metrics ` to receive metrics in the
1234
+ To serve the metrics API on ` localhost:9323 ` you would specify ` --metrics-addr 127.0.0.1:9323 ` ,
1235
+ allowing you to make requests on the API at ` 127.0.0.1:9323 /metrics ` to receive metrics in the
1236
1236
[ prometheus] ( https://prometheus.io/docs/instrumenting/exposition_formats/ ) format.
1237
1237
1238
+ Port ` 9323 ` is the [ default port associated with Docker
1239
+ metrics] ( https://github.com/prometheus/prometheus/wiki/Default-port-allocations )
1240
+ to avoid collisions with other prometheus exporters and services.
1241
+
1238
1242
If you are running a prometheus server you can add this address to your scrape configs
1239
1243
to have prometheus collect metrics on Docker. For more information
1240
1244
on prometheus you can view the website [ here] ( https://prometheus.io/ ) .
@@ -1243,7 +1247,7 @@ on prometheus you can view the website [here](https://prometheus.io/).
1243
1247
scrape_configs:
1244
1248
- job_name: 'docker'
1245
1249
static_configs:
1246
- - targets: ['127.0.0.1:1337 ']
1250
+ - targets: ['127.0.0.1:9323 ']
1247
1251
```
1248
1252
1249
1253
Please note that this feature is still marked as experimental as metrics and metric
You can’t perform that action at this time.
0 commit comments