11 releases (7 breaking)

0.9.0 Feb 22, 2021
0.8.0 Feb 3, 2021
0.7.0 Dec 10, 2017
0.6.0 May 28, 2015
0.1.0 Mar 14, 2015

#1 in #riemann

Download history 29/week @ 2024-07-22 208/week @ 2024-07-29 5/week @ 2024-08-05 3/week @ 2024-08-12 120/week @ 2024-08-19 10/week @ 2024-08-26 7/week @ 2024-09-02 38/week @ 2024-09-09 27/week @ 2024-09-16 78/week @ 2024-09-23 37/week @ 2024-09-30 23/week @ 2024-10-07 22/week @ 2024-10-14 30/week @ 2024-10-21 29/week @ 2024-10-28 15/week @ 2024-11-04

98 downloads per month
Used in 3 crates

MIT license

98KB
2K SLoC

riemann_client

A Riemann client library and command line interface.

Usage

$ riemann-cli send --service riemann_cli --state ok --metric-d 11
--> { state: "ok" service: "riemann_cli" metric_d: 11 }
<-- { ok: true }
$ riemann-cli query 'service = "riemann_cli"'
HOSTNAME   TIME       SERVICE              METRIC     STATE
           1432128319 riemann_cli          11         ok

Run riemann-cli --help for a list of options availible for the command line interface.

See the examples directory for examples of querying and sending events with the library.

Development

To build the library alone, without the command line interface and it's dependencies, run cargo build --lib --no-default-features.

The protocol buffer defintion can be updated by replacing src/proto/mod.proto with the latest defintion from the Riemann source and running make. You will need to have protoc and protoc-gen-rust installed. protoc is provided by the protobuf-compiler package on Debian based systems. Instructions for installing protoc-gen-rust this are availible in the README for rust-protobuf.

Licence

riemann_client is licenced under the MIT Licence.

It was also directly inspired by the Python riemann-client by the same author.

Authors

Written by Sam Clements.

Dependencies

~16MB
~384K SLoC