Skip to content

hatamiarash7/NetFlow-Exporter

Repository files navigation

NetFlow Exporter

Release License Image size

It's a simple Prometheus exporter for NetFlow. Supported versions:

  • NetFlow v1
  • NetFlow v5
  • NetFlow v9

HowTo

You can use binary or Docker image.

docker run -d \
    -p 9438:9438 \
    hatamiarash7/netflow-exporter:v1.0.0

Or

./netflow-exporter

Configuration

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

Support 💛

Donate with Bitcoin Donate with Ethereum

Contributing 🤝

Don't be shy and reach out to us if you want to contribute 😉

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request