Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

airslie/mirth_channel_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 76.7%
  • Dockerfile 22.5%
  • Makefile 0.8%