timchenxiaoyu / mirth_channel_exporter

Exports channel information from mirth instance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mirth Channel Exporter

Export Mirth Connect channel statistics to Prometheus.

Metrics are retrieved using the Mirth Connect REST API. This has only been tested with Mirth Connect 3.7.1, and it should work with version after 3.7.1.

To run it:

go build
./mirth_channel_exporter [flags]

Exported Metrics

Metric Description Labels
mirth_up Was the last Mirth CLI query successful
mirth_messages_received_total How many messages have been received channel
mirth_messages_filtered_total How many messages have been filtered channel
mirth_messages_queued How many messages are currently queued channel
mirth_messages_sent_total How many messages have been sent channel
mirth_messages_errored_total How many messages have errored channel

Flags

./mirth_channel_exporter --help
Flag Description Default
log.level Logging level info
web.listen-address Address to listen on for telemetry :9141
web.telemetry-path Path under which to expose metrics /metrics

Env Variables

Use a .env file in the local folder, or /etc/sysconfig/mirth_channel_exporter

MIRTH_ENDPOINT=https://mirth-connect.yourcompane.com
MIRTH_USERNAME=admin
MIRTH_PASSWORD=admin

Notice

This exporter is inspired by the consul_exporter and has some common code. Any new code here is Copyright © 2020 TeamZero, Inc. See the included LICENSE file for terms and conditions.

About

Exports channel information from mirth instance.

License:Apache License 2.0


Languages

Language:Go 99.0%Language:Makefile 1.0%