0.0
No commit activity in last 3 years
No release in over 3 years
A simple command-line tool to send events to Riemann
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 0.18.0
 Project Readme

Riemann CLI

Simple command-line tool that sends events to Riemann or queries it's index.

Install with gem install riemann-cli

Usage

riemann-cli help [COMMAND]  # Describe available commands or one specific command
riemann-cli query           # Queries the index
riemann-cli send            # Sends a metric to Riemann


Options:
      [--server=SERVER]  # Server address
                         # Default: localhost
      [--port=N]         # Riemann server port
                         # Default: 5555
      [--timeout=N]      # Connection timeout
                         # Default: 5
  -v, [--verbose]        

riemann-cli send

Sends an event to Riemann

Options:
      [--tcp]                      # Use TCP transport
      [--host=HOST]                # Host that produces the metric. Default is gethostbyname()
      [--service=SERVICE]          # Service that produced the event
      [--state=STATE]              # Service state
      [--time=N]                   # Time of the event in unix epoch seconds. Default is current time
      [--description=DESCRIPTION]  # Event description
      [--tags=one two three]       # List of tags
      [--metric=N]                 # Value of the metric
      [--ttl=N]                    # Floating-point number of seconds this event is considered valid for
      [--server=SERVER]            # Server address
                                   # Default: localhost
      [--port=N]                   # Riemann server port
                                   # Default: 5555
      [--timeout=N]                # Connection timeout
                                   # Default: 5
  -v, [--verbose]                  

riemann-cli query

Queries the index. The output can be controlled by the --format argument. The format string can contain placeholders of the form %{name} which will be substituted with the corresponding value. By default, query returns everything contained in the index

Options:
      [--string=STRING]  # Query string in Riemann query format
                         # Default: true
      [--format=FORMAT]  # Format string for the output
                         # Default: {host:"%{host}", service:"%{service}", state:"%{state}", time:%{time}, description:"%{description}", tags:%{tags}, metric_f:%{metric_f}, metric_d:%{metric_d}, metric_sint64:%{metric_sint64}, ttl:%{ttl}}
      [--server=SERVER]  # Server address
                         # Default: localhost
      [--port=N]         # Riemann server port
                         # Default: 5555
      [--timeout=N]      # Connection timeout
                         # Default: 5
  -v, [--verbose]