Skip to content

Allow using full hostname with eligible subdomain delimiter as a part of graphite metric prefix#63

Open
arrnorets wants to merge 1 commit intomailru:masterfrom
arrnorets:allow-using-full-hostnames-with-eligible-subdomain-delimiter
Open

Allow using full hostname with eligible subdomain delimiter as a part of graphite metric prefix#63
arrnorets wants to merge 1 commit intomailru:masterfrom
arrnorets:allow-using-full-hostnames-with-eligible-subdomain-delimiter

Conversation

@arrnorets
Copy link
Copy Markdown

Adding an option to use full hostname with eligible subdomain delimiter as a part of graphite metric prefix. It might be useful in a case when the first subdomain of server's FQDN is just a number which is not a good unique identifier of the instance in a common case, and for some reason you cannot fill easy "host" parameter with appropriate value.

Configuration example:
use_full_hostname=yes # Use a value from gethostname() function call as a value of "host" parameter hostname_subdomain_delimiter=_ # A symbol to use as a delimiter between subdomains of "host" value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant