From: grin Date: Tue, 10 Jan 2017 09:38:56 +0000 (+0100) Subject: Document that carbon-server requires IP address, no hostname accepted. X-Git-Tag: rec-4.1.0-alpha1~343^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e12f84078798343e9749864cdeee44e68c4a81e6;p=thirdparty%2Fpdns.git Document that carbon-server requires IP address, no hostname accepted. --- diff --git a/docs/markdown/authoritative/settings.md b/docs/markdown/authoritative/settings.md index 0daefa5fb4..bf5bef67d6 100644 --- a/docs/markdown/authoritative/settings.md +++ b/docs/markdown/authoritative/settings.md @@ -116,7 +116,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). diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 4972f217a8..ccaed2996b 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -140,7 +140,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 addess")=""; ::arg().set("carbon-interval", "Number of seconds between carbon (graphite) updates")="30"; ::arg().set("cache-ttl","Seconds to store packets in the PacketCache")="20"; diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index bd79bb4a27..a3ce5ad485 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3059,7 +3059,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")="";