https://github.com/ssbostan/netmeter-exporter
Prometheus exporter for Netmeter
https://github.com/ssbostan/netmeter-exporter
exporter metrics monitoring prometheus prometheus-exporter python
Last synced: 3 months ago
JSON representation
Prometheus exporter for Netmeter
- Host: GitHub
- URL: https://github.com/ssbostan/netmeter-exporter
- Owner: ssbostan
- License: apache-2.0
- Created: 2021-07-08T08:04:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-27T22:39:42.000Z (almost 5 years ago)
- Last Synced: 2025-07-09T04:04:30.958Z (12 months ago)
- Topics: exporter, metrics, monitoring, prometheus, prometheus-exporter, python
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 103
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netmeter-exporter

Prometheus exporter for [netmeter](https://github.com/ssbostan/netmeter) monitoring tool.
For everyone who wants to learn how to develop prometheus exporters with python.
## Installation and usage:
### Step 1:
Run an instance of netmeter monitoring tool.
```bash
docker run -d --name netmeter -p 8080:8080 -v /sys:/host/sys:ro -e NETMETER_SYS_PATH=/host/sys ssbostan/netmeter:2
```
### Step 2:
Run an instance of netmeter-exporter that polling metrics from netmeter instance.
```bash
docker run -d --name netmeter-exporter -p 9909:9909 -e NETMETER_TARGET_ADDR=http://172.17.0.1:8080 ssbostan/netmeter-exporter:latest
```
## Available metrics:
| Name | Type | Description |
| -- | -- | -- |
| netmeter_receive_bytes | Counter | Network device received bytes |
| netmeter_receive_packets | Counter | Network device received packets |
| netmeter_transmit_bytes | Counter | Network device transmitted bytes |
| netmeter_transmit_packets | Counter | Network device transmitted packets |
## How to contribute:
All contributions are welcomed. We need to develop [netmeter](https://github.com/ssbostan/netmeter) first.
### TODO:
- [ ] Collect more network statistics