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

Add support for target location info #28

Merged
merged 4 commits into from
Jul 11, 2017
Merged

Add support for target location info #28

merged 4 commits into from
Jul 11, 2017

Conversation

Vasilis
Copy link
Contributor

@Vasilis Vasilis commented Jul 10, 2017

Refer to enhancement issue: #27
Before opening your pull request, please make sure that you have:

Thanks for your contribution!

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),
Copy link
Contributor

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

Copy link
Contributor Author

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

@@ -517,7 +530,8 @@ func printTableEntry(

if !foreground {
logger.Info("Result",
zap.String("host", targetHost),
zap.String("target", targetHost),
zap.String("location", targetLocation),
Copy link
Contributor

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

Copy link
Contributor Author

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.

@Vasilis Vasilis merged commit 0a8f949 into master Jul 11, 2017
@Vasilis Vasilis deleted the location branch July 11, 2017 19:36
henridevieux pushed a commit that referenced this pull request Jul 18, 2017
* Add support for location info to targets
* Print out target location info
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