Skip to content

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