Skip to content

Releases: kchen0x/vnstat-http-server

v0.2 - Grafana Cloud Integration

Choose a tag to compare

@kchen0x kchen0x released this 27 Dec 03:09

v0.2 - Grafana Cloud Integration

New Features

  • Built-in Grafana Cloud push with Protobuf + Snappy compression
  • Automatic hostname labels for multi-server environments
  • Optimized logging (only log first success and failures to avoid log spam)
  • Comprehensive Grafana Cloud integration documentation

Features

  • Zero-dependency single binary (with optional Grafana Cloud dependencies)
  • Token-based authentication
  • CORS support for all endpoints
  • Multiple vnstat endpoints (JSON, summary, daily, hourly, weekly, yearly, top, oneline)
  • Prometheus metrics endpoint (/metrics)
  • iOS Scriptable widget support
  • Full internationalization (English/Chinese)
  • Grafana Cloud push with automatic hostname labeling

Downloads

  • Linux amd64: vnstat-http-server-linux-amd64
  • Linux arm64: vnstat-http-server-linux-arm64

Installation

  1. Download the appropriate binary for your system
  2. Make it executable: chmod +x vnstat-http-server-linux-amd64
  3. Run: ./vnstat-http-server-linux-amd64 -port 8080

Grafana Cloud Setup

To enable Grafana Cloud push, add the following parameters:

-grafana-url "https://YOUR_PROMETHEUS_INSTANCE.grafana.net/api/prom/push" \
-grafana-user "YOUR_INSTANCE_ID" \
-grafana-token "YOUR_API_TOKEN" \
-grafana-interval 30s

See README.md for detailed configuration instructions.

v0.1

Choose a tag to compare

@kchen0x kchen0x released this 26 Dec 23:31

v0.1 - Initial Release

Features

  • Zero-dependency single binary
  • Token-based authentication
  • CORS support for all endpoints
  • Multiple vnstat endpoints (JSON, summary, daily, hourly, weekly, yearly, top, oneline)
  • iOS Scriptable widget support
  • Full internationalization (English/Chinese)

Downloads

  • Linux amd64: vnstat-http-server-linux-amd64
  • Linux arm64: vnstat-http-server-linux-arm64

Installation

  1. Download the appropriate binary for your system
  2. Make it executable: chmod +x vnstat-http-server-linux-amd64
  3. Run: ./vnstat-http-server-linux-amd64 -port 8080