-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8e8522
commit 60bfaae
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Metric Pusher | ||
|
||
## Usage | ||
|
||
Run using docker: | ||
|
||
```sh | ||
docker run -v /var/run/docker.sock:/var/run/docker.sock \ | ||
-e INSTANCE_NAME="foo" \ | ||
-e PUSHGATEWAY_URL="https://<domain>/path/to/pushgateway" \ | ||
-e SCRAPE_INTERVAL=60 \ | ||
-e AUTH_USER="<user>" \ | ||
-e AUTH_PASSWORD="<password>" \ | ||
-e ENDPOINTS="http://<domain1>,http://<domain2>" \ | ||
scalableminds/metrics-pusher | ||
``` | ||
|
||
This will scrape all containers with label `gather.logs=true`. | ||
|
||
## Configuration | ||
|
||
Environment Variables: | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| `INSTANCE_NAME` | Job name used for pushing metrics | | ||
| `PUSHGATEWAY_URL` | URL to push metrics to (e.g. `https://<domain>/path/to/pushgateway`) | | ||
| `SCRAPE_INTERVAL` | Scrape interval in seconds. Default to 60. | | ||
| `AUTH_USER` | User for Basic Auth | | ||
| `AUTH_PASSWORD` | Password for Basic Auth | | ||
| `ENDPOINTS` | Comma separated list of URLs. Allows at most one URL per hostname. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters