netdata_tsrelay.nim
changeset 13 e1777929ba15
parent 11 475c9942eb15
child 15 ed87882bb7f0
equal deleted inserted replaced
12:450df27eaeec 13:e1777929ba15
    54   -T: Change the destination table name from the default 'netdata'.
    54   -T: Change the destination table name from the default 'netdata'.
    55   -t: Alter the maximum time (in ms) an open socket waits for data.  Default: 500ms.
    55   -t: Alter the maximum time (in ms) an open socket waits for data.  Default: 500ms.
    56   -h: Help.  You're lookin' at it.
    56   -h: Help.  You're lookin' at it.
    57 
    57 
    58 The default connection string is:
    58 The default connection string is:
    59   "host=localhost port=5432 dbname=netdata user=netdata application_name=netdata-tsrelay"
    59   "host=localhost dbname=netdata application_name=netdata-tsrelay"
    60     """
    60     """
    61     INSERT_SQL = """
    61     INSERT_SQL = """
    62     INSERT INTO $1
    62     INSERT INTO $1
    63         ( time, host, metrics )
    63         ( time, host, metrics )
    64     VALUES
    64     VALUES
   257     ## Populate the config object with the user's preferences.
   257     ## Populate the config object with the user's preferences.
   258 
   258 
   259     # Config object defaults.
   259     # Config object defaults.
   260     #
   260     #
   261     result = Config(
   261     result = Config(
   262         dbopts: "host=localhost port=5432 dbname=netdata user=netdata application_name=netdata-tsrelay",
   262         dbopts: "host=localhost dbname=netdata application_name=netdata-tsrelay",
   263         dbtable: "netdata",
   263         dbtable: "netdata",
   264         listen_port: 14866,
   264         listen_port: 14866,
   265         listen_addr: "0.0.0.0",
   265         listen_addr: "0.0.0.0",
   266         verbose: true,
   266         verbose: true,
   267         debug: false,
   267         debug: false,