Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digineo/nftables_exporter
Prometheus exporter for nftables counters
https://github.com/digineo/nftables_exporter
nftables prometheus prometheus-exporter
Last synced: 6 days ago
JSON representation
Prometheus exporter for nftables counters
- Host: GitHub
- URL: https://github.com/digineo/nftables_exporter
- Owner: digineo
- License: mit
- Created: 2020-05-19T12:06:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-30T07:28:04.000Z (over 2 years ago)
- Last Synced: 2024-06-21T16:55:54.724Z (5 months ago)
- Topics: nftables, prometheus, prometheus-exporter
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NFTables Exporter
Prometheus exporter for NFTables byte and packet counters.
## Usage
This exporter only exports counters of rules with comments.
Ensure that every rule with a counter has a unique comment in its chain/table.### Example
```
# HELP nftables_bytes_total Total number of bytes
# TYPE nftables_bytes_total counter
nftables_bytes_total{chain="input_syn",comment="ratelimit reached",table="filter"} 259
# HELP nftables_packets_total Total number of packets
# TYPE nftables_packets_total counter
nftables_packets_total{chain="input_syn",comment="ratelimit reached",table="filter"} 24966
```