Python client for Riemann to test sending metrics with double instead of float. Do not use!
Project description
# Bernhard
A simple Python client for [Riemann](http://github.com/aphyr/riemann). Usage:
```python
import bernhard
c = bernhard.Client()
c.send({'host': 'myhost.foobar.com', 'service': 'myservice', 'metric': 12})
q = c.query('true')
```
Bernhard supports custom attributes with the syntax:
```python
import bernhard
c = bernhard.Client()
c.send({'host': 'awesome.host.com', 'attributes': {'sky': 'sunny', 'sea': 'agitated'}})
```
Querying the index is as easy as:
```python
import bernhard
c = bernhard.Client()
q = c.query('true')
for e in q:
print "Host:", e.host, "State:", e.state
```
## Installing
```bash
pip install bernhard
```
You may encounter issues with the `protobuf` dependency; if so, just run `pip
install protobuf` manually, then `pip install bernhard`.
A simple Python client for [Riemann](http://github.com/aphyr/riemann). Usage:
```python
import bernhard
c = bernhard.Client()
c.send({'host': 'myhost.foobar.com', 'service': 'myservice', 'metric': 12})
q = c.query('true')
```
Bernhard supports custom attributes with the syntax:
```python
import bernhard
c = bernhard.Client()
c.send({'host': 'awesome.host.com', 'attributes': {'sky': 'sunny', 'sea': 'agitated'}})
```
Querying the index is as easy as:
```python
import bernhard
c = bernhard.Client()
q = c.query('true')
for e in q:
print "Host:", e.host, "State:", e.state
```
## Installing
```bash
pip install bernhard
```
You may encounter issues with the `protobuf` dependency; if so, just run `pip
install protobuf` manually, then `pip install bernhard`.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for bernhard_cletus-0.2.5-cp27-none-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53bf9b91f80021e927962298888b4715ee1e3ba34e021554f3938af0acb508e2 |
|
MD5 | 2e0ec143a8291d77199b242b9463fa11 |
|
BLAKE2b-256 | 10b43ca26633f4f1e443aad1b7bdbac45e06aca0091a3e32d5e6d960c938bfd2 |