Files
richandClaude Opus 5.5 ebd5e6d149
CI / test-and-build (3.10) (push) Canceled after 0s
CI / test-and-build (3.11) (push) Canceled after 0s
CI / test-and-build (3.12) (push) Canceled after 0s
CI / test-and-build (3.13) (push) Canceled after 0s
Initial commit: openHop Repeater to InfluxDB plugin
An openHop Repeater plugin (wheel, id community.influxdb) that pushes the
repeater's data to a remote InfluxDB v1, v2 or v3 for Grafana:

- metrics: /api/stats and mesh analytics endpoints, via a collector
  vendored from openhop-prometheus-plugin (MIT)
- packets: live /ws/packets stream with gap backfill from /api/bulk_packets
- logs: /api/logs_stream SSE with Last-Event-ID resume
- snapshots: adverts/neighbours, GPS and numeric status endpoints

The writer batches and gzips line protocol, retries with backoff and
spools to disk while InfluxDB is unavailable. On InfluxDB 1.x it creates
the database if it is missing.

Includes a Grafana dashboard (InfluxQL), a dev stack (InfluxDB 2 + 1.x +
Grafana), a fake Repeater for local testing, tests and CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 10:06:50 -04:00

41 lines
1.4 KiB
YAML

# Local InfluxDB 2 + Grafana for developing/testing the plugin.
# docker compose -f dev/docker-compose.yml up -d
# InfluxDB UI: http://localhost:8086 (admin / openhop-admin)
# Grafana: http://localhost:3000 (admin / admin) - dashboard is pre-provisioned
services:
influxdb:
image: influxdb:2.7
ports: ["8086:8086"]
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: admin
DOCKER_INFLUXDB_INIT_PASSWORD: openhop-admin
DOCKER_INFLUXDB_INIT_ORG: openhop
DOCKER_INFLUXDB_INIT_BUCKET: openhop
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: openhop-dev-token
volumes: [influxdb-data:/var/lib/influxdb2]
# InfluxDB 1.x (optional): docker compose -f dev/docker-compose.yml --profile v1 up -d
# Auth is on and no database is pre-created, like a fresh 1.x install.
influxdb1:
image: influxdb:${INFLUXDB1_TAG:-1.8}
profiles: [v1]
ports: ["8087:8086"]
environment:
INFLUXDB_HTTP_AUTH_ENABLED: "true"
INFLUXDB_ADMIN_USER: admin
INFLUXDB_ADMIN_PASSWORD: openhop-admin
volumes: [influxdb1-data:/var/lib/influxdb]
grafana:
image: grafana/grafana:11.2.0
ports: ["3000:3000"]
depends_on: [influxdb]
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ../dashboards:/var/lib/grafana/dashboards:ro
volumes:
influxdb-data:
influxdb1-data: