]> granicus.if.org Git - pdns/commitdiff
Document that carbon-server requires IP address, no hostname accepted.
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Feb 2017 12:51:30 +0000 (13:51 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Feb 2017 12:51:30 +0000 (13:51 +0100)
(cherry picked from commit e12f84078798343e9749864cdeee44e68c4a81e6 and 90217d3960e3ee439405989b78fdf7e810d562f2)

docs/markdown/authoritative/settings.md
pdns/common_startup.cc
pdns/pdns_recursor.cc

index d3716a0cb7b9ed0903492d70a286146ddbefcf70..ab98721365d078e4f21ec34090021dccca4f6a7e 100644 (file)
@@ -117,7 +117,8 @@ If sending carbon updates, if set, this will override our hostname. Be careful n
 * Available since: 3.3.1
 
 Send all available metrics to this server via the carbon protocol, which is used
-by graphite and metronome. You may specify an alternate port by appending :port, 
+by graphite and metronome. It has to be an address (no hostnames). 
+You may specify an alternate port by appending :port, 
 ex: 127.0.0.1:2004. See 
 ["PowerDNS Metrics"](../common/logging.md#sending-to-carbongraphitemetronome).
 
index 076e3e05f2b54e83b2b862241ec84c026aa48636..67a6f19cd479c386a1c89927288604e7291f8575 100644 (file)
@@ -139,7 +139,7 @@ void declareArguments()
   ::arg().setSwitch("query-logging","Hint backends that queries should be logged")="no";
 
   ::arg().set("carbon-ourname", "If set, overrides our reported hostname for carbon stats")="";
-  ::arg().set("carbon-server", "If set, send metrics in carbon (graphite) format to this server")="";
+  ::arg().set("carbon-server", "If set, send metrics in carbon (graphite) format to this server IP address")="";
   ::arg().set("carbon-interval", "Number of seconds between carbon (graphite) updates")="30";
 
   ::arg().set("cache-ttl","Seconds to store packets in the PacketCache")="20";
index b24ac28d2f9bfc41065adee0ddf6a72f1f60e030..9b2acc8b8a2d3fbee48538d7e0ee967b8883a34a 100644 (file)
@@ -2996,7 +2996,7 @@ int main(int argc, char **argv)
     ::arg().set("webserver-password", "Password required for accessing the webserver") = "";
     ::arg().set("webserver-allow-from","Webserver access is only allowed from these subnets")="0.0.0.0/0,::/0";
     ::arg().set("carbon-ourname", "If set, overrides our reported hostname for carbon stats")="";
-    ::arg().set("carbon-server", "If set, send metrics in carbon (graphite) format to this server")="";
+    ::arg().set("carbon-server", "If set, send metrics in carbon (graphite) format to this server IP address")="";
     ::arg().set("carbon-interval", "Number of seconds between carbon (graphite) updates")="30";
     ::arg().set("quiet","Suppress logging of questions and answers")="";
     ::arg().set("logging-facility","Facility to log messages as. 0 corresponds to local0")="";