riemann.prometheus

Forwards riemann events to Prometheus Pushgateway.

create-label

(create-label filtered-event)

Creates a Prometheus label out of a Riemann event.

filter-event

(filter-event opts event)

Filter attributes from a Riemann event.

generate-datapoint

(generate-datapoint event)

Accepts riemann event and converts it into prometheus datapoint.

generate-labels

(generate-labels opts event)

Generates the Prometheus labels from Riemann event attributes.

generate-metricname

(generate-metricname event)

Generates the metric name as per prometheus specification.

generate-url

(generate-url opts event)

Generates the URL to which datapoint should be posted.

post-datapoint

(post-datapoint url datapoint)

Post the riemann metric as prometheus datapoint.

prometheus

(prometheus opts)

Returns a function which accepts an event and sends it to prometheus.

Usage: (prometheus {:host “prometheus.example.com”})

Options: :host Prometheus Pushgateway Server IP (default: “localhost”) :port Prometheus Pushgateway Server Port (default: 9091) :job Group Name to be assigned (default: “riemann”) :separator Separator to be used for Riemann tags (default: “,”) :exclude-fields Set of Riemann fields to exclude from Prometheus labels

replace-disallowed

(replace-disallowed field)

Replaces all existence of disallowed characters with underscore.

special-fields

A set of event fields in Riemann with special handling logic.