-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add support for target location info #28
Conversation
collector/collector.go
Outdated
strings.Repeat("-", 13) + "\n") | ||
} else { | ||
logger.Info("Arachne -- Table of Results", | ||
zap.String("version", defines.ArachneVersion), | ||
zap.String("hostname", gl.RemoteConfig.HostName), | ||
zap.String("location", gl.RemoteConfig.Location), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using "location" here, and "target_location" in the metrics tags don't match
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the agent's location. Not the target location
collector/collector.go
Outdated
@@ -517,7 +530,8 @@ func printTableEntry( | |||
|
|||
if !foreground { | |||
logger.Info("Result", | |||
zap.String("host", targetHost), | |||
zap.String("target", targetHost), | |||
zap.String("location", targetLocation), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above. In metrics tags this is called target_location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used target_location
in the metrics to differentiate this from the uploading agent's location
tag. This is implied to be the target location. I can still rename it though to target_location
.
* Add support for location info to targets * Print out target location info
Refer to enhancement issue: #27
Before opening your pull request, please make sure that you have:
make test
); and finally,make lint
).Thanks for your contribution!