riemann.prometheus
Forwards riemann events to Prometheus Pushgateway.
create-label
(create-label filtered-event)
Creates a Prometheus label out of a Riemann event.
create-label-batch
(create-label-batch filtered-event)
Creates a Prometheus label out of a Riemann event.
generate-datapoint
(generate-datapoint event)
Accepts riemann event and converts it into prometheus datapoint.
generate-datapoint-batch
(generate-datapoint-batch opts events)
Accepts riemann event and converts it into prometheus datapoint.
generate-datapoint-with-labels
(generate-datapoint-with-labels opts 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-labels-batch
(generate-labels-batch 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.
generate-url-batch
(generate-url-batch opts)
Generates the URL to which datapoint should be posted for batch jobs.
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
prometheus-batch
(prometheus-batch opts)
Returns a function which accepts an event and sends it to prometheus in batch.
Usage:
(batch 1000 5 (prometheus-batch {: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.