Skip to main content

Python3 client for Riemann

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-py3-1.0.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file bernhard-py3-1.0.tar.gz.

File metadata

  • Download URL: bernhard-py3-1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bernhard-py3-1.0.tar.gz
Algorithm Hash digest
SHA256 3f2ff424070a48d373bdc0eec5faacc87bf5a5027cf3656eba8e941580544358
MD5 6f656d49bb2a2640e69b737fb64de60d
BLAKE2b-256 6341c74ac47ec732abedd63335428dbd5d1ffd4c8e28a331310010048470b3bf

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