flowmon

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

Flowmon

Flowmon is an OpenTelemetry exporter for Linux that collects network packet metrics using nftables. You define which traffic to monitor, and Flowmon exports packet and byte counts for each counter to an OTLP-compatible backend.

Features

  • Define nftables-based counters for the traffic you want to observe.
  • Collect metrics such as packet and byte counts for each counter.
  • Export metrics to OpenTelemetry endpoints (gRPC, HTTP, or stdout).
  • Simple YAML configuration.
  • Lightweight and easy to run as a daemon.

Installation

Download the latest release from the releases page.

Usage

Run Flowmon with a configuration file:

exporter:
  interval: "30s"
  otlp:
    endpoint: "localhost:4317"
    protocol: "grpc"
counters:
  input:
    - label: "rest_syn_requests"
      protocol: "tcp"
      dst_port: 8080
      tcp_flags: [sync]
  output:
    - label: "rest_syn_ack_responses"
      protocol: "tcp"
      src_port: 8080
      tcp_flags: [syn, ack]

This example monitors TCP SYN requests to port 8080 and TCP SYN-ACK responses from port 8080, exporting metrics every 30 seconds to an OpenTelemetry endpoint at localhost:4317.

You can run Flowmon as a systemd service:

sudo systemctl start flowmon

Or manually:

sudo ./flowmon --config /path/to/config.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL