Skip to main content

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`.

Project details


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)

Uploaded Source

Built Distribution

bernhard_cletus-0.2.6-py2-none-any.whl (7.2 kB view details)

Uploaded Python 2

File details

Details for the file bernhard_cletus-0.2.6.tar.gz.

File metadata

File hashes

Hashes for bernhard_cletus-0.2.6.tar.gz
Algorithm Hash digest
SHA256 b9169fd6b986bfcee3b32b8db18d2e48d1ecb0a3a2dcc19d6dd864811173521b
MD5 ca352dc6b69fa9f27e41b0d3a8fcd21b
BLAKE2b-256 2d29615b231243f3cc3a70e2f5c00d32f5a0833b0dfb873574bd53ff2bbadd16

See more details on using hashes here.

File details

Details for the file bernhard_cletus-0.2.6-py2-none-any.whl.

File metadata

File hashes

Hashes for bernhard_cletus-0.2.6-py2-none-any.whl
Algorithm Hash digest
SHA256 d9e22eaa562276df0703aa3e3edb369093711ed38aa3a01fd7c6807075ffee36
MD5 cd7ac8a3705b46f0f311e8650ba18c01
BLAKE2b-256 31996e82b78869a4b4d893ac65bfa5aee5978b5f8b573aa6b8a73893643db324

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page