Sign inSign up

aneisch/planefinder-stats

By aneisch

•Updated over 6 years ago

Image
0

267

aneisch/planefinder-stats repository overview

⁠planefinder-stats

Query Plane Finder client⁠ and store stats in InfluxDB

The following data is retrieved from the /ajax/stats endpoint of the Plane Finder client⁠:

{
  "executable_start_time": 1581968285.019631,
  "client_version": "4.1.14 armhf",
  "total_modes_packets": 10388550,
  "total_modes_packets_ps": 107,
  "prev_total_modes_packets": 0,
  "total_modeac_packets": 19834012,
  "total_modeac_packets_ps": 216,
  "prev_total_modeac_packets": 0,
  "master_server_bytes_out": 10129237,
  "prev_master_server_bytes_out": 0,
  "master_server_bytes_in": 1154324,
  "local_server_bytes_out": 8254370,
  "local_server_bytes_in": 1005924,
  "mlat_bytes_out": 0,
  "mlat_bytes_in": 0,
  "receiver_bytes_out": 28,
  "receiver_bytes_in": 506117460,
  "receiver_bytes_out_ps": 0,
  "receiver_bytes_in_ps": 5384,
  "total_modes_crc_bad": 21209203,
  "total_modes_crc_corrected": 0,
  "total_modes_types": {
    "0": 2160626,
    "4": 542864,
    "5": 14109,
    "11": 3373623,
    "16": 69819,
    "17": 4222106,
    "18": 1,
    "20": 5244,
    "21": 158
  }
}
⁠Example docker-compose:
version: '3.2'
services:
    planefinder-stats:
        container_name: planefinder-stats
        image: aneisch/planefinder-stats
        environment:
          - INFLUX_HOST=192.168.1.5
          - PLANEFINDER_HOST=192.168.1.55
⁠Example docker run:
docker run -d --name planefinder-stats -e INFLUX_HOST=192.168.1.5 \
-e PLANEFINDER_HOST=192.168.1.55 \
aneisch/planefinder-stats
⁠Environmental Variables

You only need to specify the environmental variables in docker run or your docker-compose file that you want/need to override:

VariableDefaultDescription
INFLUX_HOST10.0.1.22The server hosting influxdb
INFLUX_PORT8086Influxdb HTTP port
INFLUX_DATABASEplanefinderDatabase which readings are written to
PLANEFINDER_HOST10.0.1.8Host which is running PlaneFinder client
PLANEFINDER_PORT80Web port of Plane Finder client
INTERVAL1Sleep time between updates (seconds)

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

over 6 years ago

docker pull aneisch/planefinder-stats