Track the number of bytes written per request for both InfluxDB and Prometheus outputs. InfluxDB: - Added bytesT counter constant - Implemented calculateMetricBytes() to estimate line protocol size - Updated batchV1() and batchV2() to count bytes per point - Updated log output to display bytes written Prometheus: - Added Bytes field to Report struct - Updated export() to calculate approximate metric byte size - Updated log output to display bytes written 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| LICENSE | ||
| README.md | ||
| clients.go | ||
| collector.go | ||
| logger.go | ||
| pdu.go | ||
| report.go | ||
| site.go | ||
| speedtest.go | ||
| uap.go | ||
| ubb.go | ||
| uci.go | ||
| udm.go | ||
| usg.go | ||
| usw.go | ||
| uxg.go | ||
README.md
prometheus
This package provides the interface to turn UniFi measurements into prometheus exported metrics. Requires the poller package for actual UniFi data collection.