segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

Add zone information in netstats via vpcinfo #118

Closed Pryz closed 4 years ago

Pryz commented 4 years ago

We built the vpcinfo system to be able to get information about the network where the service is running via DNS. This is a nice way to propagate low level information without having to carry the configuration in the application.

This PR leverage vpcinfo in the netstats package to add zone information and identify if the traffic is happening cross AZ. This is mostly reusing the work done in Cv3.

Pryz commented 4 years ago

Thinking about adding some examples before merging so that it will be easier to share with the teams. Update: actually will merge now and push some other changes later.