Skip to main content

No project description provided

Project description

Speedtest Influx Logger

Summary

Micro application to run speedtests periodically and send statistics to remote InfluxDB node.

Was created to be run as a self contained daemon script, or within a Docker setup to automatically push speedtest results to a remote InfluxDB node for display within Grafana.


Can be run within a script by performing the following:

import speedtest
from speedtest_influx_logger.main import check_speed

check_speed(speedtest.Speedtest())

# 2020-09-27 21:44:27 - Speedtest complete: 166.48/37.67

Statistics

The script sends the following statistic data to Influx:

{
    "measurement": "internet_speed",
    "tags": {
        "host": NODE_NAME,
        "client_version": APP_VERSION
    },
    "fields": {
        "download": float(download),
        "upload": float(upload),
        "ping": float(ping)
    }
}

TODO

Environment Variables

  • NODE_NAME
  • INFLUX_HOST
  • INFLUX_PORT
  • INFLUX_USER
  • INFLUX_PASS
  • INFLUX_DB
  • TEST_FREQUENCY

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

speedtest_influx_logger-0.0.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

speedtest_influx_logger-0.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file speedtest_influx_logger-0.0.4.tar.gz.

File metadata

  • Download URL: speedtest_influx_logger-0.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for speedtest_influx_logger-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fe229401500799f934d239c6189e4c25f5419625fff46aed0cfc48cc138b6fcf
MD5 9e291d0780dee81570008e6888d85bdb
BLAKE2b-256 fef1b7ab31480697da6c1b2dfea8fed6d39d2f0d68939990154b529ea2cfeb29

See more details on using hashes here.

File details

Details for the file speedtest_influx_logger-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: speedtest_influx_logger-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for speedtest_influx_logger-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d84d0ad365c1b850435243e4eb7316aca57046f18e14df63935979bde49c0fcf
MD5 79fac9ad68d2920fcd7a30a2c68452ed
BLAKE2b-256 dc77481b1436a6d32838e41b8e46a7a453d880fb59d951f80a9425f7286b8269

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page