Ingestor Exporter

October 30, 2019 ยท View on GitHub

A Prometheus exporter for firehose-to-syslog ingestor metrics.

Architecture Overview

Installation

Binaries

Download the already existing binaries for your platform:

$ ./ingestor_exporter <flags>

From source

Using the standard go install (you must have Go already installed in your local machine):

$ go install github.com/bosh-prometheus/ingestor_exporter
$ ingestor_exporter <flags>

BOSH

It is is intended for this exporter to be able to be deployed using the Prometheus BOSH Release. Some work still needs to be done around this.

Usage

Flags

FlagsRequiredDescription
helpNoDisplay help options
versionNoDisplay version

Environment Variables

Environment VariableRequiredDefaultDescription
INGESTOR_PROTOCOLNohttpIngestor protocol
INGESTOR_HOSTNAMENo127.0.0.1Ingestor Hostname
INGESTOR_PORTNo8080Ingestor Port
INGESTOR_PATHNo/stats/appIngestor Path
INGESTOR_SKIP_SSLNofalseIngestor option to skip SSL
INGESTOR_RESPONSE_TIMEOUT_SECONDSNo10Ingestor Response Timeout in seconds
INGESTOR_EXPORTER_METRICS_ENDPOINTNo/metricsIngestor Exporter Metrics Endpoint
INGESTOR_EXPORTER_PORTNo9495Ingestor Exporter Port
INGESTOR_METRICS_ENVIRONMENTYes""Name of environment ingestor runs in

Metrics

MetricDescriptionLabels
consume_totalMessages receivedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
consume_fail_totalMessages failed to be consumedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
consume_http_start_stop_totalHttpStartStop messages receivedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
consume_value_metric_totalValueMetric messages receivedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
consume_counter_event_totalCounterEvent messages receivedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
consume_log_message_totalLog messages receivedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
consume_error_totalError messages receivedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
consume_container_metric_totalContainerMetric messages receivedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
consume_unknown_totalUnknown type messages receivedingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
slow_consumer_alert_totalSlow consumer alerts emitted by noaaingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
publish_totalMessagesingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
publish_fail_totalNumber of dropped messagesingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
ignored_totalMessages dropped due to no forwarding ruleingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
forwarded_totalMessagesingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
subinupt_bufferUsed to count number of current buffer on subInputingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment
instance_idID for nozzle instance. This is used to identify stats from different instancesingestor_protocol,ingestor_hostname,ingestor_port,ingestor_path,environment

Contributing

We welcome any contributions. For any proposed changes, please fork the project on GitHub and open Pull Requests.

License

BSD 3, see LICENSE.