One collector, four outputs
The same normalized series feed Prometheus, Telegraf, OpenTelemetry, and plain JSON. No second mapping table to rot.
hitron-exporter --port 9877 --coda60 192.168.100.1
curl -s http://127.0.0.1:9877/metrics | head
# modem_downstream_channel_power_dbmv{source="192.168.100.1",channel_id="1"} 8.098
# modem_downstream_channel_snr_db{source="192.168.100.1",channel_id="1"} 43.377
# modem_upstream_channel_power_dbmv{source="192.168.100.1",channel_id="10"} 31.0
# hitron_exporter_up{source="192.168.100.1",kind="coda60"} 1
# /etc/telegraf/telegraf.conf
[[inputs.exec]]
commands = ["/opt/hitron/bin/hitron-exporter --coda60 192.168.100.1 --once --format telegraf"]
data_format = "influx"
interval = "30s"
timeout = "25s"
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "$INFLUX_TOKEN"
organization = "home"
bucket = "hitron"
Telegraf consumes the Influx line protocol on stdout; no listener or plugin is required.
hitron-exporter --coda60 192.168.100.1 \
--otlp-endpoint http://otel-collector:4318/v1/metrics
# The exporter posts OTLP/HTTP JSON. Point an otlphttp exporter at your backend:
exporters:
otlphttp:
endpoint: https://otlp.example.com
service:
pipelines:
metrics:
receivers: [otlp]
exporters: [otlphttp]
hitron-exporter --coda60 192.168.100.1 --once --format json
hitron-exporter --coda60 192.168.100.1 --once --format otlp # inspect the payload
curl -s http://127.0.0.1:9877/api/v1/samples | jq '.[0]'