mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
small changes
This commit is contained in:
parent
a037e7f042
commit
b9279431cd
@ -1,5 +1,4 @@
|
||||
import statsd
|
||||
from os import getppid
|
||||
from platform import node
|
||||
|
||||
class Monitor(statsd.StatsClient):
|
||||
@ -7,5 +6,5 @@ class Monitor(statsd.StatsClient):
|
||||
if not kwargs:
|
||||
kwargs = {}
|
||||
if not kwargs.get('prefix'):
|
||||
kwargs['prefix'] = '{hostname}_{pid}.'.format(hostname=node(), pid=getppid())
|
||||
kwargs['prefix'] = '{hostname}.'.format(hostname=node())
|
||||
super().__init__(*args, **kwargs)
|
||||
|
@ -2,8 +2,8 @@ rethinkdb-1:
|
||||
image: rethinkdb
|
||||
ports:
|
||||
- "9999:8080"
|
||||
- "28015:28015"
|
||||
- "29015:29015"
|
||||
- "28015"
|
||||
- "29015"
|
||||
volumes_from:
|
||||
- rethinkdb-data-1
|
||||
|
||||
@ -35,8 +35,8 @@ rethinkdb-2:
|
||||
image: rethinkdb
|
||||
ports:
|
||||
- "9998:8080"
|
||||
- "28015:28015"
|
||||
- "29015:29015"
|
||||
- "28015"
|
||||
- "29015"
|
||||
links:
|
||||
- rethinkdb-1:localhost
|
||||
volumes_from:
|
||||
|
Loading…
x
Reference in New Issue
Block a user