-
Notifications
You must be signed in to change notification settings - Fork 712
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 pseudo-nodes for known services #1863
Conversation
0fe7157
to
31497c4
Compare
97e0ac7
to
268651b
Compare
AWS S3 and Dynamo to start with
f512a03
to
d47db56
Compare
// DNS Snooper | ||
flag.BoolVar(&flags.probe.dnsSnooperEnabled, "probe.dns-snooper.enabled", true, "Enable DNS Snooper (to identify external services being contacted)") | ||
flag.StringVar(&flags.probe.dnsSnooperInterface, "probe.dns-snooper.interface", "any", "Networking interface on which to snoop") | ||
|
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
d47db56
to
b351db7
Compare
This is ready to review. Here's an example of the precision obtained with the snooper: Note that certain external services are not properly identified if Scope is started after persistent connections without reverse DNS lookups are made (i.e. the DNS Snooper cannot gather those queries since it wasn't running at the time they happened). |
if resolvedNames, err := r.reverseResolver.get(addr); err == nil { | ||
names = append(names, resolvedNames...) | ||
} | ||
if len(names) > 0 { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
// internet node | ||
node = theInternetNode(n) | ||
// external pseudoNode | ||
node = toInternetNode(n) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
||
"github.com/weaveworks/scope/probe/host" | ||
"github.com/weaveworks/scope/report" | ||
) | ||
|
||
var ( | ||
// ServiceNodeIDPrefix is how the ID all service pseudo nodes begin |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
// and having separate nodes for them makes visualizations worse | ||
regexp.MustCompile(`^ec2.*\.amazonaws\.com$`), | ||
} | ||
) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
// and having separate nodes for them makes visualizations worse | ||
regexp.MustCompile(`^ec2.*\.amazonaws\.com$`), | ||
} | ||
) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
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.
blah
return nil, err | ||
} | ||
defer inactive.CleanUp() | ||
if err = inactive.SetPromisc(true); err != nil { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
21520e4
to
c24f502
Compare
@rade PTAL |
c24f502
to
94dc9cb
Compare
62442d1
to
b15cce0
Compare
needs some squashing. rest LGTM |
b15cce0
to
c5ac315
Compare
...if available. Follow-up to #1863.
...if available. Follow-up to #1863.
...if available. Follow-up to #1863.
Fixes #1082