Skip to content

Commit

Permalink
fix and mention docker-compose demo in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
lutangar committed May 4, 2018
1 parent 35c42ca commit 2192424
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -54,7 +54,7 @@ docker run -d --restart always --name my-exporter -p 9439:9439 -v /path/to/my/co
>docker run --name my-exporter -p 9439:9439 -v /path/to/my/conf:/app/.env --link my-wallet lepetitbloc/bitcoind-exporter
>```
## Example
## Example metrics
When visiting the metrics URL http://localhost:9439/metrics the following **metrics** are produced:
```
# HELP best_block_index The block height or index
Expand Down Expand Up @@ -105,6 +105,12 @@ address_balance_total{address="1FxZE15d8bt381EuDckdDdp7vw8FUiLzu6"} 41.00683469
address_balance_total{address="1QAm6J6jLmcm7ce87ujrSdmjPNX9fgRUYZ"} 1.72770032
```

## Demo
You can test this exporter with `docker-compose`:
```
docker-compose up
```

## Resources
* https://prometheus.io/
* https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -13,6 +13,6 @@ services:
exporter:
build: .
ports:
- "3000:3000"
- "9439:9439"
links:
- bitcoind
5 changes: 3 additions & 2 deletions package.json
@@ -1,14 +1,15 @@
{
"name": "bitcoind-exporter",
"version": "2.3.3",
"version": "2.3.4",
"description": "Bitcoind metrics prometheus exporter",
"main": "index.js",
"scripts": {
"test": "dgoss run lepetitbloc/bitcoind-exporter",
"start": "node -r dotenv/config index.js",
"build": "docker build -t lepetitbloc/bitcoind-exporter .",
"push": "docker push lepetitbloc/bitcoind-exporter",
"publish": "npm run build && npm run test && npm run push"
"publish": "npm run build && npm run test && npm run push",
"demo": "docker-compose up"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 2192424

Please sign in to comment.