Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ip if no hostname is reported back #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sfhl
Copy link
Contributor

@sfhl sfhl commented Aug 23, 2021

Hi there,

for an environment not reporting back any hostnames, it may be usefull to use the ip address instead ignoring the host.

logrus.Error("missing reverse record for ", ip)
continue
logrus.Info("Missing reverse record for ", ip, ",using ip address instead.")
hostname = ip
Copy link
Member

@jonaz jonaz Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind combining this with a command line flag perhaps -skip-reverse-dns or something. We have missing reverse records that we do not want to add to prometheus. The feature is to only add those who have reverse records.

Im sorry for this late reply but i've been on vaction.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure,
i have created a new pull request introducing a new flag/switch: #16

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.

2 participants