Skip to main content

py-vigil-reporter

codecov

Vigil Reporter for Python. Used in pair with Vigil, the Microservices Status Page.

Who uses it?

Smartphoniker

How to install

Install with pip:

$ pip install py-vigil-reporter

How to use

vigil-reporter can be instantiated as such:

from vigil_reporter.reporter import VigilReporter

SAMPLE_CONFIG = {
    "url": "http://localhost:8080",
    "token": "REPLACE_THIS_WITH_A_SECRET_KEY",
    "probe_id": "stats",
    "node_id": "stats-node",
    "replica_id": "192.168.1.103",
    "interval": 5
}
reporter = VigilReporter.from_config(SAMPLE_CONFIG)
reporter.start_reporting()
print("You can continue with your normal work here!")

This module uses the threading.Timer class from the threading module to run reporting in background. This makes the method non-blocking.

NOTE: The threaded execution drifts about +/- 0.05 seconds. But this won't be an issue, as you should set an interval that is greater than 1.0 seconds.

For further details see this Stackoverflow post.

What is Vigil?

ℹ️ Wondering what Vigil is? Check out valeriansaliou/vigil.

Download files

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

Source Distribution

py-vigil-reporter-0.1.5.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_vigil_reporter-0.1.5-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file py-vigil-reporter-0.1.5.tar.gz.

File metadata

  • Download URL: py-vigil-reporter-0.1.5.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

File hashes

Hashes for py-vigil-reporter-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a3d3206d97d519923b6ff4ca295d544745e8790e5a5ca643e9aca9f7be4436bd
MD5 f6196c875309cff57cb4af84169e464c
BLAKE2b-256 da5def993068c3ce39e792aa5685964b2bceab930a70a35418d33f582511295d

See more details on using hashes here.

File details

Details for the file py_vigil_reporter-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: py_vigil_reporter-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

File hashes

Hashes for py_vigil_reporter-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 20cd949450bdc2ec3ca2a50bc309c3b157dba154f280c1169d413bf7ef6ff7cf
MD5 e694ac8672fbf1f361804be46d41aaf6
BLAKE2b-256 4ab5d982d9432b16f55d527a9514fbae58e2db504bb4128a4fbbc3d281114a08

See more details on using hashes here.

Supported by

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