Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this example, we’re going to track the distribution of messages by MSH-4 (Sending Facility) and create both pie and line charts. Let’s assume the following channel, which receives messages over a network.

image-20241107-174657.png

We want our device to track the value from MSH-4 (sending facility). To do this, add a new line item by clicking the Add Metric button:

...

Next, double-click in the Name column and enter SendingFacility. This is the label used in Prometheus/Grafana. Next, enter the HL7 path into the Expression column.

...

Ensure the HL7v2 metric is enabled, and run some messages through the test channel.

...

You should be able to visit Grafana and create the following visualizations: