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 Distribution
bernhard_cletus-0.2.6.tar.gz
(9.6 kB
view details)
Built Distribution
File details
Details for the file bernhard_cletus-0.2.6.tar.gz
.
File metadata
- Download URL: bernhard_cletus-0.2.6.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9169fd6b986bfcee3b32b8db18d2e48d1ecb0a3a2dcc19d6dd864811173521b |
|
MD5 | ca352dc6b69fa9f27e41b0d3a8fcd21b |
|
BLAKE2b-256 | 2d29615b231243f3cc3a70e2f5c00d32f5a0833b0dfb873574bd53ff2bbadd16 |
File details
Details for the file bernhard_cletus-0.2.6-py2-none-any.whl
.
File metadata
- Download URL: bernhard_cletus-0.2.6-py2-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e22eaa562276df0703aa3e3edb369093711ed38aa3a01fd7c6807075ffee36 |
|
MD5 | cd7ac8a3705b46f0f311e8650ba18c01 |
|
BLAKE2b-256 | 31996e82b78869a4b4d893ac65bfa5aee5978b5f8b573aa6b8a73893643db324 |