neptune-networks / flow-exporter

Export network flows from Kafka to Prometheus
https://brooks.sh/2019/11/17/network-flow-analysis-with-prometheus/
MIT License
125 stars 20 forks source link

Allow AS0 to be used #12

Closed bswinnerton closed 4 years ago

bswinnerton commented 4 years ago

In #11, we saw that it's not possible to debug the application by setting --asn=0.

This pull request updates the command line arguments to allow for --asn=0 (or no asn argument at all), and offers a disclaimer to users that we may end up with inaccurate data when doing this (more information as to why can be found here), but to quote @paololucente:

with an iBGP peering setup, AS0 can mean unknown or your own ASN (being a number rather than a string, null is not an option) and 2) until routes are received, source/destination IP prefixes can get associated to AS0.