monitor trustlines cluster with riemann
Project description
trustlines-watch
trustlines-watch helps monitoring the trustlines cluster. It watches a running parity or geth client via the JSONRPC interface and pushes information to a riemann instance.
Installation
trustlines watch requires python 3.6 or up. It also needs the postgresql development files. On a debian based system these can be installed with
apt install libpq-dev
Please run the following command in a python 3 virtualenv:
pip install . -c constraints.txt
This will install a ‘tl-watch’ executable.
Usage
tl-watch etherscan
Watches etherscan for the current blockNumber. Run tl-watch etherscan --help for available command line options.
tl-watch jsonrpc
Watches a parity or geth client via the JSONRPC interface. Run tl-watch jsonrpc --help for available command line options.
tl-watch relay
Watches a trustlines relay server via the REST API. Run tl-watch relay --help for available command line options.
tl-watch psql
Queries a postgres database. Run tl-watch psql --help for available command line options. The sql query to run is given via the command line option --sqlquery. It must return at least the service and metric fields.
Here’s an example that would monitor the synchronization state of ethindex:
tl-watch psql --sqlquery "select 'sync.' || syncid || '.last_block' service, last_block_number metric from sync"
tl-watch get-website-hash
Calculates the hash of the relevant sources from a specific URL (--url). This is meant to be used in combination with tl-watch website to get the initial origin hash value. Relevant are sources which can change the content of the website. Therefore the hash gets calculated over the basic HTML and the first parity JS scripts. Stylesheets are not relevant for the content. External JavaScript can’t be ensured to not change and must not affect the content on its own. Run tl-watch get-website-hash --help for available command line options.
tl-watch website
Watches for changed code of a website. It continuously calculates the hash of the relevant sources to ensure they haven’t changed in comparison to an initially provided origin hash. That origin hash can be calculated with tl-watch get-website-hash. Run tl-watch website --help for available command line options.
Change log
See CHANGELOG.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file trustlines-watch-0.5.6.tar.gz
.
File metadata
- Download URL: trustlines-watch-0.5.6.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97426a484cab07f242268cc300914a150236f0bad44036f1f590abe9c8ff78a2 |
|
MD5 | 9951b758ad49f5c45a600f2fb4f2e02a |
|
BLAKE2b-256 | 3dae72a8416e8fe9aaf8a2aca6ea4074c970fc93d2e77ef9f74142132f3000ad |