From: Pieter Lexis Date: Tue, 14 Feb 2017 12:51:30 +0000 (+0100) Subject: Document that carbon-server requires IP address, no hostname accepted. X-Git-Tag: rec-4.0.5-rc1~23^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5014%2Fhead;p=thirdparty%2Fpdns.git Document that carbon-server requires IP address, no hostname accepted. (cherry picked from commit e12f84078798343e9749864cdeee44e68c4a81e6 and 90217d3960e3ee439405989b78fdf7e810d562f2) --- diff --git a/docs/markdown/authoritative/settings.md b/docs/markdown/authoritative/settings.md index d3716a0cb7..ab98721365 100644 --- a/docs/markdown/authoritative/settings.md +++ b/docs/markdown/authoritative/settings.md @@ -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). diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 076e3e05f2..67a6f19cd4 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -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"; diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index b24ac28d2f..9b2acc8b8a 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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")="";