Prometheus exporter for MeshCore repeaters, read over the mesh: a companion (USB, BLE, or a companion identity in openHop over TCP) logs in to each repeater, asks for status and telemetry with direct packets and serves battery, temperature/humidity, noise floor, RSSI/SNR, packet counters, airtime and uptime on :9200/metrics. - meshcore_exporter.py: command line, MC_* environment or a TOML file with a password per repeater; --check reads every repeater once and exits; interval 1 h (min 15 min); a failed repeater is retried once after 3 min; contacts fetched once per round. - dashboards/: the Grafana dashboard, generated from generate.py (datasource, job and the rate window are variables; TX drawn above zero, RX below). - stack/: Docker Compose with Prometheus and Grafana provisioned, for a USB companion, or on the host network for openHop on the same machine. - systemd/: running without Docker. - README.md (Czech) and AGENTS.md for setting it up with an AI agent. - CI: lint and tests, gitleaks; PR check builds the image; single-platform images per architecture behind a Trivy gate (latest-<arch>, and X.Y.Z-<arch> with a release on tag vX.Y.Z); dependencies by Renovate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
752 B
TOML
37 lines
752 B
TOML
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "meshcore-exporter"
|
|
dynamic = ["version"]
|
|
description = "Prometheus exporter for MeshCore repeaters, read over the mesh"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"meshcore>=2.3",
|
|
"prometheus_client>=0.20",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest", "ruff", "mypy"]
|
|
|
|
[project.scripts]
|
|
meshcore-exporter = "meshcore_exporter:main"
|
|
|
|
[tool.setuptools]
|
|
py-modules = ["meshcore_exporter"]
|
|
|
|
[tool.setuptools.dynamic]
|
|
version = { attr = "meshcore_exporter.__version__" }
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "W", "I", "B", "UP"]
|
|
|
|
[tool.mypy]
|
|
ignore_missing_imports = true
|