Skip to content

Commit

Permalink
Document how to publish prometheus metric endpoint on all interfaces
Browse files Browse the repository at this point in the history
This is a combination of 4 commits.
 The first commit's message is:
2677 docu, how to publish prometheus metric endpoint on all interfaces

 This is the 2nd commit message:
2677 change docu on how to publish metrics, be more careful with publishing on all interfaces

 This is the 3rd commit message:
2677 fix spelling

 This is the 4th commit message:
2677 fix wrong port title and grammar
  • Loading branch information
mathiasmethner0815 authored and bboreham committed Dec 14, 2016
1 parent 73f184d commit 7ffd96f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/metrics.md
Expand Up @@ -20,6 +20,19 @@ exposed:
* `weave_dns_entries` - Number of DNS entries.
* `weave_flows` - Number of FastDP flows.

#### Publish Router Metrics Endpoint

By default, when started via `weave launch`, weave listens on its local
interface to serve metrics. To publish your metrics throughout your cluster,
e.g. if your prometheus server is installed on a different host machine,
you need to set `WEAVE_STATUS_ADDR` to your corresponding IP and port.
Default port is 6782.

`WEAVE_STATUS_ADDR=X.X.X.X:PORT`

You can set `WEAVE_STATUS_ADDR=0.0.0.0:6782` to listen on all interfaces,
but be aware, this may expose your metrics to the public internet.

### Kubernetes Network Policy Controller Metrics

The endpoint address is `localhost:6781`; the following metric is
Expand Down

0 comments on commit 7ffd96f

Please sign in to comment.