- Install couchdb per http://docs.couchdb.org/en/2.1.0/install/unix.html#installation-using-the-apache-couchdb-convenience-binary-packages
$ sudo apt-get install zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autoconf-archive autogen automake pkg-config curl
$ cd ~ && git clone https://github.com/wohali/netdata
$ cd netdata && git checkout couchdb
$ sudo ./netdata-installer.sh
$ sudo vi /etc/netdata/python.d/couchdb.conf
and set admin username/password$ sudo service netdata restart
- Browse to http://localhost:19999/
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
# See also: http://docs.couchdb.org/en/latest/cluster/index.html | |
# Before you can add nodes to form a cluster, you have to have them listen on a public ip address | |
# and set up an admin user (use same admin:password for all nodes). | |
# Do this, once per node: | |
# If you have installed couchdb in /opt (else change the Path) | |
cd /opt/couchdb/etc | |
cp local.ini local.ini.orig | |
cp vm.args vm.args.orig |
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
import com.typesafe.config.ConfigFactory | |
import scala.util.Properties | |
class MyConfig(fileNameOption: Option[String] = None) { | |
val config = fileNameOption.fold( | |
ifEmpty = ConfigFactory.load() )( | |
file => ConfigFactory.load(file) ) | |
def envOrElseConfig(name: String): String = { |