Compare commits
3 Commits
14e62c4a6c
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 684d6ab857 | |||
| 4a051f02d9 | |||
| 9ec41da15e |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/.venv/
|
||||
.idea/
|
||||
7
.idea/misc.xml
generated
7
.idea/misc.xml
generated
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.11 (tmobile-monitor)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (tmobile-monitor)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
10
.idea/tmobile-monitor.iml
generated
10
.idea/tmobile-monitor.iml
generated
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
32
README.md
Normal file
32
README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# LTE/5G Router Metrics Exporter
|
||||
|
||||
This project provides a simple Prometheus exporter that collects signal metrics
|
||||
from a local network device (commonly a home LTE/5G router) by scraping its
|
||||
web interface at `http://192.168.1.1`.
|
||||
|
||||
The exporter parses the router’s status page using BeautifulSoup and exposes
|
||||
the following metrics on port **8000**:
|
||||
|
||||
- `snr` — Signal-to-Noise Ratio
|
||||
- `rsrp` — Reference Signal Received Power
|
||||
- `rsrq` — Reference Signal Received Quality
|
||||
|
||||
These metrics can be scraped by Prometheus and visualized in Grafana.
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
- Scrapes metrics directly from your router's HTML status page
|
||||
- Exposes them in Prometheus format
|
||||
- Lightweight and easy to deploy
|
||||
- Designed to run continuously (default refresh interval: **10 seconds**)
|
||||
|
||||
---
|
||||
|
||||
## Requirements
|
||||
|
||||
Install dependencies:
|
||||
|
||||
```bash
|
||||
pip install requests beautifulsoup4 prometheus_client
|
||||
Reference in New Issue
Block a user