HL7 Inbound

HL7 Inbound

This is a simple dashboard showing connection counts to listeners. You can use queue metrics to determine size and composition of messages within a channel.

JSON

{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "10.1.1" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "table", "name": "Table", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "description": "A table showing the number of HL7 connections per channel", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "locale" }, "overrides": [ { "matcher": { "id": "byName", "options": "Active Connections" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "basic", "type": "color-background" } }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] } } ] }, { "matcher": { "id": "byName", "options": "Channel" }, "properties": [ { "id": "links", "value": [ { "targetBlank": true, "title": "View historical data", "url": "/d/MXbwwZ3nk/hl7-inbound-connections-by-channel?var-instance=${__data.fields[0]}&var-group=${__data.fields[1]}&var-tab=${__data.fields[2]}&var-channel=${__value.raw}" } ] } ] }, { "matcher": { "id": "byName", "options": "Last Queued" }, "properties": [ { "id": "unit", "value": "dtdurations" } ] }, { "matcher": { "id": "byName", "options": "View In Cxn" }, "properties": [ { "id": "links", "value": [ { "title": "", "url": "cxn://${__data.fields[0]}?g=${__data.fields[1]}&t=${__data.fields[2]}&c=${__value.raw}" } ] } ] }, { "matcher": { "id": "byName", "options": "Channel State" }, "properties": [ { "id": "mappings", "value": [ { "options": { "0": { "color": "red", "index": 0, "text": "Stopped" }, "1": { "color": "green", "index": 1, "text": "Running" } }, "type": "value" } ] }, { "id": "custom.cellOptions", "value": { "type": "color-text" } } ] } ] }, "gridPos": { "h": 16, "w": 24, "x": 0, "y": 0 }, "id": 2, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "10.1.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, "expr": "connexion_hl7inbounddevice_active_connections{instance=\"$instance\"} * on(ChannelKey) group_left connexion_channel_running_state", "format": "table", "hide": false, "instant": true, "range": false, "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, "expr": "connexion_hl7inbounddevice_active_connections{instance=\"$instance\"} ", "format": "table", "hide": false, "instant": true, "range": false, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, "expr": "connexion_hl7inbounddevice_active_connections{instance=\"$instance\"} + on(ChannelKey) group_left\r\nconnexion_channel_last_message_in_seconds{QueueType=\"Q\"}", "format": "table", "hide": false, "instant": true, "range": false, "refId": "B" } ], "title": "HL7 Inbound Connection Status", "transformations": [ { "id": "seriesToColumns", "options": { "byField": "ChannelKey" } }, { "id": "organize", "options": { "excludeByName": { "Channel 2": true, "Channel 3": false, "ChannelKey": true, "Group 2": true, "Group 3": true, "QueueType": true, "Tab 2": true, "Tab 3": true, "Time": true, "Time 2": true, "Time 3": true, "__name__": true, "__name__ 1": true, "__name__ 2": true, "instance": false, "instance 1": false, "instance 2": true, "instance 3": true, "job": true, "job 1": true, "job 2": true, "job 3": true }, "indexByName": { "Channel 1": 4, "Channel 2": 12, "Channel 3": 9, "ChannelKey": 0, "Group 1": 2, "Group 2": 13, "Group 3": 19, "Tab 1": 3, "Tab 2": 14, "Tab 3": 20, "Time 1": 5, "Time 2": 11, "Time 3": 18, "Value #A": 7, "Value #B": 8, "Value #C": 6, "__name__": 17, "instance 1": 1, "instance 2": 15, "instance 3": 21, "job 1": 10, "job 2": 16, "job 3": 22 }, "renameByName": { "Channel 1": "Channel", "Channel 2": "", "Channel 3": "View In Cxn", "Time 1": "", "Time 2": "", "Value": "Connection Count", "Value #A": "Active Connections", "Value #B": "Last Queued", "Value #C": "Channel State", "instance 1": "Server", "job": "", "job 2": "", "job 3": "" } } } ], "type": "table" } ], "refresh": "5s", "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [ { "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "definition": "label_values(instance)", "hide": 0, "includeAll": false, "label": "Server", "multi": false, "name": "instance", "options": [], "query": { "query": "label_values(instance)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-5m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "HL7 Inbound Connections Table", "uid": "hff7wZ3nk", "version": 2, "weekStart": "" }