It's a simple Prometheus exporter for NetFlow. Supported versions:
- NetFlow v1
- NetFlow v5
- NetFlow v9
You can use binary or Docker image.
docker run -d \
-p 9438:9438 \
hatamiarash7/netflow-exporter:v1.0.0
Or
./netflow-exporter
There is multiple runtime flags to configure the exporter:
Flag | Description | Default |
---|---|---|
-log-level |
Log level | info |
-log-format |
Log format | text |
-listen-address |
Network address to accept NetFlow packets | :2055 |
-metric-address |
Network address to expose metrics | :9438 |
-metrics-path |
Path under which to expose metrics | /metrics |
-include |
Include filter for NetFlow packets | Count$ |
-exclude |
Exclude filter for NetFlow packets | Time |
-sample-expire |
How long a sample is valid for | 60s |
Don't be shy and reach out to us if you want to contribute 😉
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request