Skip to main content

py-vigil-reporter

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

Who uses it?

Crisp

How to install

Install with pip:

$ pip install py-vigil-reporter

How to use

vigil-reporter can be instantiated as such:

SAMPLE_CONFIG = {
"url": "http://localhost:8080",
"token": "SOME_TOKEN",
"probe_id": "web",
"node_id": "web-node",
"replica_id": "192.168.1.103",
"interval": 10
}
reporter = VigilReporter.from_config(SAMPLE_CONFIG)
reporter.start_reporting()

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.0.5.tar.gz (4.1 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.0.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py-vigil-reporter-0.0.5.tar.gz
  • Upload date:
  • Size: 4.1 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.0.5.tar.gz
Algorithm Hash digest
SHA256 78649b44d08913dc4ac67df8ff27fd8419d49df40171612ca6c8488ae3cc31ed
MD5 a7bd0d3f4b3ee5ff363eca1b5282c29a
BLAKE2b-256 5fa2f9252acfe8cd5e00533e082d13ec11a494375b0c00947d2c06dac266a150

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_vigil_reporter-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.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.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6269391727ee267e4f8db2cf0db80135b0318f9a4bdea09fcbb36842d8b47c01
MD5 ad336f32327a6de90f174549219b50e6
BLAKE2b-256 d2fe646b7c7e191aa1b14b636079799d35f0bf07328f17f27c217917c141223e

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