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]
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 |
./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 |
config.file-path | Optional environment file path | None |
Use a .env file in the local folder, /etc/sysconfig/mirth_channel_exporter, or use the --config.file-path command line flag to provide a path to your environment file
MIRTH_ENDPOINT=https://mirth-connect.yourcompane.com
MIRTH_USERNAME=admin
MIRTH_PASSWORD=admin
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.