A Riemann client and command line tool
Project description
A Riemann client library and command line tool for Python.
Usage
As a command line tool:
riemann-client [--host HOST] [--port PORT] send [-s SERVICE] [-S STATE] [-m METRIC] [...] riemann-client [--host HOST] [--port PORT] query '<query>'
The host and port used by the command line tool can also be set with the RIEMANN_HOST and RIEMANN_PORT environment variables. By default, localhost:5555 will be used.
As a library:
import riemann_client.client with riemann_client.client.Client() as client: client.event(service='riemann-client', state='awesome') client.query("service = 'riemann-client'")
Installation
riemann-client requires Python 2.6 or 2.7, and can be installed with pip install riemann-client. Python 3 is not supported due to the dependency on the Google protobuf package.
Requirements
Changelog
Version numbers use the semver specification. A new major version indicates breaking changes.
Version 3.0.0
Renamed module from riemann to riemann_client
Command line interface was rewritten, and is now the only part of the library that respects the RIEMANN_HOST and RIEMANN_PORT environment variables
Support for querying the Riemann index was added
Internally, transports now define send instead of write, and TCPTransport.send returns Riemann’s response message
Licence
riemann-client is licensed under the MIT Licence. The protocol buffer definition is sourced from the Riemann Java client, which is licensed under the Apache Licence.
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
Built Distribution
File details
Details for the file riemann-client-3.0.3.tar.gz
.
File metadata
- Download URL: riemann-client-3.0.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 809fafc6edd7896553dc6b8cea69a4f340aeab74512a6a3e1583e9377e4d78a4 |
|
MD5 | 09995310d2d33513bfe0ac481ecef46a |
|
BLAKE2b-256 | a2e0a865fb1ce84668c6c433ae161f4138f9842cdbedcbf5dd12bef2fec046a5 |
File details
Details for the file riemann_client-3.0.3-py27-none-any.whl
.
File metadata
- Download URL: riemann_client-3.0.3-py27-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 2.7
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd38b2e999cbbf4429ed2fccadb514814deffb9a55de3d3f2b1c5cf2db45555f |
|
MD5 | 31ceb4f848a43afb70e73fd3bdd27cd2 |
|
BLAKE2b-256 | 1fdcd42484ff8d1b0b9f05020b18767477f63b57239095d1f31c65126a840ea3 |